DJAkbar / cloudy-a

A simple script for light animations for two LED strips according to the weather forecast
33 stars 9 forks source link

cloudy-a

A simple script for light animations for two LED strips according to the weather forecast. For an example see Youtube
Instructions for use: Here is a short write-up of some instructions to make your own DIY weather forecast cloud lamp.
I have done this with a Raspberry Pi 3 since there were no Pi Zero’s to be bought anywhere. But since this is probably a bit overkill for this project and right now they seem to be in stock again I would recommend trying this with a Raspberry Pi Zero. If you do, make sure to let us know if it’s working! This tutorial will reference other tutorials as well, since I do not see the need to write again something others have described in a much better way than me. Some things should be set-up already:

So what do you need:

Ok, so what do you need to do? This:

Then I bought a cheap timeclock because I don’t want the lamp to be switched on all the time, but obviusly this is up to you. The program is set up so that it will finish the cycle of animation about every hour. It will then check for the forecast again and start the according animation. Because I did’t want to bring multithreadinf into the project I have set the cycles of the animations to the number of iterations. Since a lot of these depend on randomly generated cycles, it will never be an exact hour. If you need to check for the real weather forecast every hour, you will have to change the code yourself.

Anyway, now everything should be finished and you have a working weather forecast cloud lamp. I want to stress again that I can not be held responsible for any damages of injuries that might occur in the making or running of this project. Of course I can also not guarantee that it will work for you even if you follow all the steps correctly. I am not a programmer and the code is probably quite messy and ineficcient. If you have suggestions I would be happy to hear them. I will try to answer questions but don’t count on it. Now I would be very happy to see your creations!