This is a python script to get a subset of data that the bloomsky API provides and push them to keen.io. You can use it to store outside temperature, humidity, etc in keen.io to analyze it in the future.
python getBloomSky.py --config /path/to/config.json
The required libraries are in the requirements.txt file.
You also need to create a file called config.json and put it in the same directory as getBloomSky.py file.
And last but not least, you need a keen.io account and a project.
You can find an example config.json.example file in the repo
That's it! ;)
-
Wait what? Why are you converting units? Don't you know that bloomsky has an SI API?
I do know, but the SI unit returns Pressure as an integer, which ends up plotting the Pressure graphs as increments of 1. That doesn't look pretty :( (Like this chart below.)
-
Why is this written like a batch file?
I use this to pull data every 5 mins with a cronjob. It just works! :)