berne
Junior Member
Posts: 85
|
Post by berne on Apr 26, 2022 7:38:31 GMT -8
My RPi Model 3 b occasionally freezes as it is running the Skyweather software. I installed a smart switch on the outlet where it gets power and was power cycling the switch when I saw that it was not working correctly. I then wrote python code for another RPi that runs on my home network that would SMS me using Twilio, that the Skyweather2 RPi was no longer responding to pings. I finally was able to close the control loop by using tinytuya to connect to my smart switch over my local network and do the power cycle automatically. The code for this is now on Github at github.com/BerneStober/Weather-station-power-cycle-w-Twilio- . You will need to google twilio to get a user id and also develop a user id at iot.tuya.com and get access to your devices there to find the local key on your smart switch if you want to use this code. There are very good blog posts on the interwebs on how to do all this. Any advice on improving the code or further troubleshooting why my RPi keeps freezing (roughly about 5 times a week) would be appreciated. I have not updated my skyweather2 software since purchase back in Oct 21. Would any of the bug fixes since then help resolve this freezing issue? (Have been waiting for you to fix the weather rack reset rainfall bug before updating, but its still open) Thx.
|
|
|
Post by SDL on Apr 26, 2022 11:00:39 GMT -8
Well, probably not. Your solution sounds pretty good to me.
Update the rtl_433 code and the SkyWeather2 code to be up on the latest fixes.
Is it really a Pi3? And not a Pi3+?
Buying a newer 4B will probably solve the problem, if it is a Pi3.
BP
|
|