Tuesday, 31st August 2021
TIL
Calculating the AQI based on the Purple Air API for a sensor
— [Purple Air](https://www.purpleair.com/) sensors have an API at `https://www.purpleair.com/map.json?show=SENSOR-ID-HERE`, which returns JSON that looks something like this:
TIL
Using the Chrome DevTools console as a REPL for an Electron app
— I figured out how to use the Chrome DevTools to execute JavaScript interactively inside the Electron main process. I always like having a REPL for exploring APIs, and this means I can explore the Electron and Node.js APIs interactively.