Hacker News

chr15m
Show HN: Print the daily weather forecast on a thermal receipt printer github.com

I wrote this simple Python script that prints the daily weather forecast on those cheap thermal receipt printers you can get online for under fifty bucks. It fetches weather data, converts the icons to something printable, and outputs everything in ESC/POS format so you can pipe it directly to /dev/USB/lp0.

Nothing fancy, i just thought it would be nice to have a physical weather printout each morning.

You can configure it with your GPS coordinates and timezone, and stick it in a cron job.

Enjoy!


orphea2 days ago

Please be aware that some thermal paper is not safe: https://www.pca.state.mn.us/business-with-us/bpa-and-bps-in-...

chr15mop2 days ago

From the link: "Handle receipts as little as possible"

Some good tips there. Will bear that in mind, thanks!

hn-front (c) 2024 voximity
source