The best "oops" I ever did

147 views
Skip to first unread message

etji...@gmail.com

unread,
Mar 15, 2021, 9:28:57 PM3/15/21
to weewx-user
No questions right now. Just felt like sharing some good fortune. The TLDR: I upgraded on accident and everything is working great!
 
I had been running weewx 3.9.2 on a raspberry pi 4 for quite some time. I knew that at some point I would need to make the jump to 4.x, but everything was running so smoothly. I had originally installed weewx with the belchertown skin using some instructions I found while searching for a way to connect my vantage pro 2 to a raspberry pi.
 
As I perused the documentation on upgrading weewx, I really wasn't sure if I had installed with a setup.exe or some other method. I had pretty much decided that at some point, I would simply save off the database and and config files and do a clean install of 4.x.
 
Fast forward to now:  I accidentally upgraded weewx by doing a sudo yum full-upgrade. When I saw it happen, I cringed. I had visions of pulling the rest of my hair out trying to get all the parts working again (weewx/skins/mqtt). To my surprise, there was very little reconfiguration that had to be done!
 
Sure, I had to copy some settings into the 4.4 weewx config. I installed the latest Belchertown skin and reconfigured the settings for that. Then added my mqtt setting back in, and boom!
 
Since luck was with me, I decided to import 8 years worth of WU data using the wee_import utility. I had tried with 3.92 but had no luck. The 4.4 wee_import worked perfectly the first time! It took a while, and I had to break it into 6 month chunks, but it worked!  I also had to update my api key once on the WU site. Not sure if I exceeded the number of calls allowed or it was something else, but regenerating a new key allowed me to finish.
 
I've had to clean up quite a bit of bad data that has been sitting in WU-land for the last decade, but the instructions in the weewx wiki were clear and easy to follow.
 
The only thing left to do is to make python 3 the default and load the necessary dependencies. 
 
I just want to thank all the "experts" in this group who have both amazing knowledge and, more importantly, unceasing patience!  So many groups are full of condescending "experts" who would rather make you feel like an idiot than share their time and expertise. Hats off to all of you!
 
Ernie 

Ernest Jillson

unread,
Mar 26, 2021, 10:30:32 PM3/26/21
to weewx...@googlegroups.com
I am now on python version 3 with weewx 4.4. 
 
If anyone is reading this thread, let me just say this. I'm pretty linux literate and actually work in the IT field. The number of threads here with upgrade failures (weewx 3.x to weewx 4.x or python2 to python3) actually had me pretty rattled. Remember: Only the users that had issues post here for help. There are many more who have not had issues, and so don't post. Give it a try!  Advice:
 
1) Follow the docs at weewx.com.  They will guide you. Will it cover every possible issue? Probably not. But it will:
     a) Show you how to backup your existing configuration in case of major failure
     b) Point you to this forum for very friendly help and advice.
 
2) Don't forget to update your extensions and skins when going from Python2 to Python3. MQTT is a big one. If your favorite skin hasn't been ported to python3, you may have to try to port it yourself, or look for another skin. I personally recommend Belchertown by Pat O'Brian. As of this date, he is still making improvements.
 
3) Look at your logs. They pretty much point right to the problem. In weewx 4.x, it's /var/log/syslog.  I had issues with MQTT. Search the forums. I found the answer in about a minute and downloaded the correct python3 version of weewx-mqtt and installed it.
 
4) Still not working? Post your weewx.conf and logs (remove any passwords and other private info). You WILL get help.
 
I wish Tom would accept donations for this great piece of software. To think I was running a whole windows PC with Weatherlink and Virtual Weather Station for so many years, when I could have been doing all this on a raspberry pi with free software.
 
Have a great weekend!


--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/1e98776a-da6b-48de-a0c0-68ce027d424en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages