{"id":7264,"date":"2016-10-18T08:38:23","date_gmt":"2016-10-18T12:38:23","guid":{"rendered":"http:\/\/starlightcascade.ca\/blog\/?p=7264"},"modified":"2016-10-18T08:39:25","modified_gmt":"2016-10-18T12:39:25","slug":"weatherpi-issues","status":"publish","type":"post","link":"https:\/\/starlightcascade.ca\/blog\/2016\/10\/weatherpi-issues\/","title":{"rendered":"WeatherPi issues"},"content":{"rendered":"<figure id=\"attachment_5989\" aria-describedby=\"caption-attachment-5989\" style=\"width: 275px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/starlightcascade.ca\/blog\/wp-content\/uploads\/2014\/10\/pi.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/starlightcascade.ca\/blog\/wp-content\/uploads\/2014\/10\/pi.jpg\" alt=\"raspberry pi\" width=\"275\" height=\"183\" class=\"size-full wp-image-5989\" srcset=\"https:\/\/starlightcascade.ca\/blog\/wp-content\/uploads\/2014\/10\/pi.jpg 275w, https:\/\/starlightcascade.ca\/blog\/wp-content\/uploads\/2014\/10\/pi-150x99.jpg 150w\" sizes=\"auto, (max-width: 275px) 100vw, 275px\" \/><\/a><figcaption id=\"caption-attachment-5989\" class=\"wp-caption-text\">raspberry pi<\/figcaption><\/figure>\n<p>The Raspberry Pi called Weatherpi, has been out of action the last few days.  Turned out there were some power issues and in some fashion the database was corrupted with a bad datetimestamp in the future and nothing would upload after that.<br \/>\nAfter a lot of troubleshooting, including wiping the weather pi and reinstalling the Jessie Raspbian distribution and weewx package, and power cycling the davis vantage vue weather  station receiver, the system is finally up and running again. <\/p>\n<p>The last action seems to have been the decisive one,  deleting the database file at \/var\/lib\/weewx\/weewx.sdb<br \/>\nThe exact steps were something like this:<br \/>\nweather station receiver remained up and running<br \/>\nsudo service weewx stop<br \/>\nsudo rm \/var\/lib\/weewx\/weewx.sdb<br \/>\nsudo service weewx start<br \/>\npresto! up and running, creating local data and web files, uploading to the weather underground as well.<\/p>\n<p>The raspberry pi is now also connected to a UPS (uninterruptible power supply) and hopefully will not have any more issues.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Raspberry Pi called Weatherpi, has been out of action the last few days. Turned out there were some power issues and in some fashion the database was corrupted with a bad datetimestamp in the future and nothing would upload after that. After a lot of troubleshooting, including wiping the weather pi and reinstalling the [&hellip;]<\/p>\n","protected":false},"author":494,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,16],"tags":[],"class_list":["post-7264","post","type-post","status-publish","format-standard","hentry","category-tech","category-weather"],"_links":{"self":[{"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/posts\/7264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/users\/494"}],"replies":[{"embeddable":true,"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/comments?post=7264"}],"version-history":[{"count":3,"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/posts\/7264\/revisions"}],"predecessor-version":[{"id":7267,"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/posts\/7264\/revisions\/7267"}],"wp:attachment":[{"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/media?parent=7264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/categories?post=7264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/tags?post=7264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}