Skip to content
All projects

Data site · October 2026 Live

Tristómetro Nacional

The daily index of Chilean sadness in 20 cities, from Arica to Punta Arenas: weather, smog, news, the dollar, holidays, payday, daylight and football in one number from 0 to 100.

39Chile hoy

  • Coyhaique47
  • Concepción42
  • Santiago40
  • Iquique32

What it is

Every day, the Tristómetro gathers the weather, wind, smog, headlines, the dollar, holidays (regional ones too), the days left until payday, the hours of daylight and football, and turns them into a number from 0 to 100 per city. Chile’s index is the plain average of the cities, because Santiago is not Chile.

At 8:00 it posts the bulletin on its own to Bluesky, Instagram, Facebook and X, with hooks that depend on the day: records, a national team match, the first rain in Santiago or the days before payday.

20cities, from Arica to Punta Arenas
4networks with a daily bulletin
10 minminutes between updates
62automated tests

What I built

  • A Worker that pulls weather, air quality, the dollar, holidays, headlines from seven national outlets and the regional press
  • An automatic daily bulletin on Bluesky, Instagram, Facebook and X
  • A page for each city, city-vs-city duels, a map of Chile, history and records
  • An “And you, how are you?” poll, sad classics and a widget for media outlets
  • Every shared link shows the day’s number: 101 images, one per value
  • A daily check that sends an email if a source or a bot stops working

The hard parts

01

Ten milliseconds

The free plan allows 10 ms of CPU per run: the work is split into three shifts every 10 minutes, and if a source fails, its last good value is used.

02

One visit, one request

The page arrives with the bulletin, the history and the suggested city already inside; the poll is fetched only when it scrolls into view, and it reads totals, not individual votes.

03

Posting without overpaying

On X, a post with a link costs thirteen times more: there it goes out as text only, with Chile and the cities as hashtags and a question at the end.

↑↓ move↵ openEsc close