# Define some variables for this script first.ĭEBUG = "no" # Don't dump/log debugging infoĭata = # A dictionary to store stuff - needs to be global scope, coz I'm lazy #This code uses a few libraries - could probably reduce this to subsets within these.but moving on. # Pushes Netatmo data to Weather Underground Everything you may need to edit to get things working has " CHANGEME". Here's the redacted script for your comedic or utility value ( also see below). There is a little bit of set up involved where you need to collect the station credentials from Weather Underground and set up a developer account with Netatmo, but the URLs required are all documented in the code. I even documented the conversion functions! There are a number of checks throughout the code to make sure Netatmo was reachable and the upload to Weather Underground was successful, but it's all documented in the code. Send the converted values off to Weather Underground. Poll Netatmo, and grab my latest measurementsĬonvert all that nice metric, JSON data into nasty imperial values So instead, I broke out the Python hammer and wrote a simple "ETL" (export, transform, load) script which simply does the following: Like some of the other coding projects I've done of late, I'm trying to break my nasty bash habit, and frankly, this job really would have been a huge pain in bash anyway. Well, it has been 18 months and Netatmo is still no closer to sorting their crap out with Weather Underground, so I gave up and made a "DIY" solution! About 18 months ago I lashed out and bought a Netatmo weather station partly on the promise it would eventually send data to my neglected Weather Underground profile. Long story short that weather station hardware died. A long time ago, I had a weather station at home dutifully sending data to my Weather Underground profile.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |