It's currently very hot in Belgium, and I've been struggeling finding the best time to open my windows. It's a bad idea to open them when it's still hotter outside compared to inside. You can ofcourse check the weather online, compare it to a thermometer inhouse and do a mental calculation, but that all feels very archiac so instead I've chosen to spend 2 hours of my time hacking at a Genuino / Raspberry Pi project.
The Genuino has 3 leds (Green, Yellow, Blue) and a temperature sensor. It's connected to the Raspberry Pi by a serial USB connection. I wrote a small program for the Genuino that listens to commands on the serial port and returns results when required.
On the Raspberry I have a simple Python program that reads the temperature from the OpenWeatherMap API, gets the temperature value from the Genuino, does some calculations with it and then it sets the leds according to the temperature difference.
So there we are: every time the led is green I can open all my windows, if it's orange I need to wait a bit more, and if it's red I keep everything closed.
It was fun to hack something together so quickly with the tools and tutorials found online for both Raspberry Pi and the Genuino Uno. I think I'll try to add a screen someday, but it serves its purpose at the moment.