{"id":3125,"date":"2017-12-09T22:59:46","date_gmt":"2017-12-10T06:59:46","guid":{"rendered":"http:\/\/www.little.org\/blog\/?p=3125"},"modified":"2026-10-12T16:53:44","modified_gmt":"2026-10-12T23:53:44","slug":"weather-station-v2","status":"publish","type":"post","link":"https:\/\/www.little.org\/blog\/2017\/12\/09\/weather-station-v2\/","title":{"rendered":"Weather station v2"},"content":{"rendered":"<p>The weather station has a new home for its data. It used to log to <a href=\"https:\/\/io.adafruit.com\">adafruit.io<\/a>. Now it logs to my own internal server. Nobody else gets a copy of my backyard temperature, which is probably for the best.<\/p>\n<p>The setup is a Raspberry Pi reading from a <a href=\"https:\/\/www.sparkfun.com\/sparkfun-arduino-iot-weather-station.html\">SparkFun weather station kit<\/a>. It logs wind speed, wind direction, temperature, humidity and barometric pressure, plus a few things like dew point that get calculated from the other numbers.<\/p>\n<p>Why move? Control, mostly. I also get uncomfortable when I&#8217;m first starting a project, because I don&#8217;t want to send garbage to someone else. And when you&#8217;re first starting a project, garbage is most of what you have.<\/p>\n<p>Which brings me to the notes for myself. While testing I generated a lot of bad data, and to get rid of it I just dropped the measurements from InfluxDB. The database name isn&#8217;t critical (I called mine weatherstation), so swap in whatever you used.<\/p>\n<ol>\n<li>Launch the shell: <code>influx<\/code><\/li>\n<li>Pick the database to work in: <code>use weatherstation<\/code><\/li>\n<li>List what&#8217;s in there: <code>show series<\/code><\/li>\n<li>Drop a measurement: <code>drop measurement \"temperature\"<\/code><\/li>\n<\/ol>\n<p>Repeat that last line for each measurement that has junk in it. Gone. Clean slate&#8230; until the next round of testing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The weather station has a new home for its data. It used to log to adafruit.io. Now it logs to my own internal server. Nobody else gets a copy of my backyard temperature, which is probably for the best. The setup is a Raspberry Pi reading from a SparkFun weather station kit. It logs wind\u2026<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[4],"tags":[],"class_list":["post-3125","post","type-post","status-publish","format-standard","hentry","category-idle"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/posts\/3125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/comments?post=3125"}],"version-history":[{"count":1,"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/posts\/3125\/revisions"}],"predecessor-version":[{"id":3428,"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/posts\/3125\/revisions\/3428"}],"wp:attachment":[{"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/media?parent=3125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/categories?post=3125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/tags?post=3125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}