Data platform · Public repository
From exported spreadsheet to monthly indicator, without the data leaving the computer
- What it solves
- n8n imports Airbnb and Booking spreadsheets into SQL Server every day, Python queries them and a Dash dashboard shows the indicators. Only monthly totals per platform reach the public site.
- My role
- Design, implementation and documentation of the platform.
Platform facts and contents
Facts
- Ingestion
- n8n in Docker · daily run at 09:00 or manual
- Storage
- SQL Server · one database per project · transactional loads
- Query and display
- Python · Dash (local) · Plotly (public page)
- Publishing
- GitHub Actions → GitHub Pages, monthly aggregates only
- Documentation
- Operations guide (in Spanish)
- Public demo
- juliouq.github.io/plataforma-analitica-local
- Code
- GitHub
The problem
Rental platforms let you export bookings and payouts as spreadsheets, each with its own columns, definitions and dates. Combining those files by hand every month is slow and error-prone, and uploading them to an external service would expose guest and booking data.
The data flow
On the local computer
- ExcelAirbnb and Booking exports in a folder
- n8nSHA-256 fingerprint, full-file validation
- SQL ServerTransactional load with MERGE · aggregates view
- PythonShared query with decimal amounts
- DashLocal dashboard with filters
Publishing
- Aggregates JSONMonthly totals per platform only
- GitHub PagesPage rebuilt by GitHub Actions
Own diagram based on the repository’s operations guide. Individual records never leave the computer.
Ingestion with n8n
A workflow finds the spreadsheets in a local folder, recognises the platform from the headers, computes a SHA-256 fingerprint so the same file is never loaded twice, and validates the whole content: currency, dates, amounts, nights and each payout against its bookings. A single error rejects the whole file with a clear reason.
Loading into SQL Server
The batch reaches a stored procedure as a JSON parameter. SQL Server validates it again and loads it in a single transaction with
MERGEon the booking or payout key: all or nothing. An application lock prevents two simultaneous loads, and every run is logged without personal data.Querying with Python
A shared module queries a monthly aggregates view and handles amounts as decimals, rounded to cents only for display. The same module feeds the local dashboard and the public export.
Dash dashboard
Locally, the dashboard filters by platform and period, shows labelled indicators, a monthly chart of net income per platform and a table, and can re-query SQL Server.
Publishing aggregates
A script exports only monthly totals per platform to a JSON file; when it is pushed, GitHub Actions rebuilds the public page from that single file.
What the public demo shows
The page published on GitHub Pages shows the real monthly indicators from the latest export: bookings, nights, gross amount, platform commissions, payment fees, net bookings and payouts, per platform and month, with a platform filter, an interactive chart and a table. It includes no individual bookings, guests or booking references, which exist only on the local computer. When I checked it for this site (25/11/2026) it was available. The page is in Spanish.
The repository also includes a demo with made-up data (20 fictitious payments for four properties in a CSV) to test the load end to end without real data.
Limitations
- The scheduled import only runs if Docker and SQL Server are running at 09:00; if the computer is off, that run is lost.
- It downloads nothing from the platforms: it processes the spreadsheets left in the folder.
- It only supports euros and the documented export formats of Airbnb (Payouts) and Booking (Reservations).
- The public page is updated by hand, when the aggregates are exported and pushed.
Authorship and tools
Third-party tools
- n8n (in Docker), SQL Server Developer, Python 3.13, Dash and Plotly.
- GitHub Actions and GitHub Pages for the public page.
My work
- Designing the flow, n8n workflows, SQL Server schema and procedures, Python queries and dashboards.
- Operations documentation and a demo with fictitious data.