After some testing all measurements are being reported correctly. Then I found an updated script by Tom Albers using the correct Netatmo API calls. Hubot script to alert whenever it starts and stops raining, in realtime. 1.0.6 Published 3 years ago hubot-rain-alert. I had some problems getting the rain reporting to work. wundergroundnode, wunderground-api, node-weatherunderground, reallySimpleWeather, wunderground-client, weather-underground-node, wunderground-cli, wun. Good luck and let me know if you run into any problems. This sends all normal output to /dev/null and puts any error messages in your file at location "some filepath that you choose". */5 * * * * /usr/bin/curl 1>/dev/null 2>/"some filepath that you choose" Instead of just running the script, you might want to send any errors the script encounters to a file with redirection like this: To execute the script every 5 minutes and send the data to Wunderground. I put the script in /var/www/netatmo and added this line to the crontab: Having added my credentials I stored the PHP file on my Raspberry Pi that's used for controlling the exterior lights and monitoring my boiler. It's completely ready for use, you only have to add your Netatmo and Wunderground credentials and you're done! After being interrupted by a phone call I searched the web some more and found this script: . So I started writing a script in my favourite language: Python. Having played with my Raspberry Pi before I knew you can access Netatmo's database using their API. I also own a Netatmo weather station so I started searching for a way to transfer the Netatmo data to Wunderground at a regular time interval. Somewhere in the user documentation I found you can add Wunderground temperature data to your solar data. The output of my solar panels is on PVOutput (more on that in a future post) and I wanted to add the local temperature to the data that is being collected/stored on PVOutput.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |