|
Post by gb0101010101 on Nov 10, 2021 18:05:43 GMT -8
I'm helping a friend finally setup his SkyWeather v1 kit that he bought ages ago.
----
Confirmed that he has v1 kit using:
and the manual v1.7 that has parts pictures:
----
He can't find a SD card that has the SkyWeather software for Raspberry Pi. I searched high and lo but could not find a download of a Raspberry PI OS image that has everything pre-configured. Does SwitchDoc provide download of an OS image that can be written to SD card?
----
I tried creating a new SD card by downloading Raspberry Pi OS Lite Bullseye
Got this booting but could not get your GitHub code to work:
The code appears to be using Python 2 which is no longer supported. I installed Python2, and set it as default, but even then I could not install python2 packages because they have been removed. The instruction is the README.md no longer work.
e.g. sudo apt-get install python-smbus -> Package 'python-smbus' has no installation candidate
Is there a Github source for SkyWeather v1 that works with Python 3?
----
Then I noticed that you have SkyWeather2
Does SkyWeather2 GitHub code work with SkyWeather1 hardware?
----
I also found your 32GB SD card in the store:
This lists "SkyWeather" in the "Contents of the Card" bullet points.
Can this be downloaded? What version of Raspberry PI OS is this running? What version of Python is this running?
I really don't want to use deprecated/unsecure code to run this but will do it if this is the last option. Before I go to the trouble can you let me know if SkyWeather v1 code supports MQTT?
----
Questions Summarized: 1. Does SwitchDoc provide download of an OS image that can be written to SD card? 2. Is there a Github source for SkyWeather v1 that works with Python 3? 3. Does SkyWeather2 code work with SkyWeather1 hardware?
4. Does SkyWeather1 support MQTT? 5. 32GB SD in store: image file available for download? 5. 32GB SD in store: what version of OS is this running? 5. 32GB SD in store: what version of Python is this running?
Please answer all of the summarized questions so I can help my friend get his weather station set up. Thanks very much.
|
|
|
Post by SDL on Nov 11, 2021 15:28:36 GMT -8
The SD Card supports only a Python2 version of SkyWeather.
However, Someone on this board did a port so search around to find that.
2) No, SkyWeather2 does not work with SkyWeather1
3) You need to buy the card, we don't see an image.
4) Buster
5) Python2 and Python3 are on the SD Card.
BP
|
|
|
Post by gb0101010101 on Nov 13, 2021 10:10:42 GMT -8
Well its disappointing to hear that Python 3 is not supported. Python 2.7 reached the end of its life on January 1st, 2020. I tried searching this board for a Python 3 port but could not find a link to code. I found one user who said they would work on a port but then did not provide a link to the ported code. I had a very hard time getting the SkyWeather code to work using the README.md instructions on your github page as many things were omitted when using a new SD card image. I have updated the README.md file and created a pull request: github.com/gb0101010101/SDL_Pi_SkyWeathergithub.com/switchdoclabs/SDL_Pi_SkyWeather/pull/3
|
|
|
Post by gb0101010101 on Nov 15, 2021 21:14:33 GMT -8
Can SDL provide a link to Github or other code souce that works with Python 3?
|
|
|
Post by SDL on Nov 16, 2021 18:50:22 GMT -8
Someone on this board has done this job. I'm not sure who it was. I'll do some searching and see if I can locate the post.
BTW, end of live does not mean it will quit working. Latest versions of the OS have Python2.7 on them. You may have to dig around for it.
BP
|
|
|
Post by gb0101010101 on Nov 20, 2021 20:51:28 GMT -8
Someone on this board has done this job. I'm not sure who it was. I'll do some searching and see if I can locate the post. So I finally found the post again where user renegade mentioned port to Python3: BTW, end of live does not mean it will quit working. Latest versions of the OS have Python2.7 on them. You may have to dig around for it. Latest Raspberry Pi OS Bullseye Lite does not have Python 2.7 by default. You can force install it but certain Python 2.x packages required by SkyWeather no longer have valid sources and cannot be installed. renegade mentioned this in his post in July. I also experienced this with: sudo apt install python-smbus Result is "package 'python-smbus' has no installation candidate". 'python2-smbus' does not exist either. 'python3-smbus' exists but is not compatible. So in this case EOL (End Of Life) does mean SkyWeather stops working. Also its important to note that EOL means no more security updates. This is particularly worrying with SkyWeather where the manual instructs users to run it as 'root' using a trusted wlan/lan connection. sudo python SkyWeather.py That just screams "exploit me" using a vulnerable unsupported python package that has full access to internal network. EOL warning is there for a reason and means "stop using me now". This was stated at least a year in advance (Jan 2019) before Python2 reached EOL (Jan 2020).
If someone has made a port to Python3 then it should be top priority post on your SkyWeather forum with links and instructions on how to upgrade like:
or
|
|
|
Post by SDL on Nov 21, 2021 14:39:06 GMT -8
Fair enough. We have no plans to port SkyWeather to Python3.
BTW, Bullseye is NOT supported by SkyWeather or SkyWeather2. They don't have Python2 or Python3 camera support. When they do release it, then we will move the SD Card to Bullseye.
BP
|
|
|
Post by gb0101010101 on Dec 11, 2021 18:52:37 GMT -8
Any chance of getting my documentation pull request accepted? github.com/switchdoclabs/SDL_Pi_SkyWeather/pull/3I spent a lot of time building & testing the process to create a new SD card for SkyWeather1, even more documenting it, so would like to get the docs updated as I think it will greatly help others if/when their Raspberry Pi SD card gets corrupted, or they need to be rebuilt from scratch.
Let me know if you would like me to change anything?
|
|
|
Post by SDL on Dec 12, 2021 11:47:38 GMT -8
I'll ask John to do this today.
BP
|
|
smurphy
Full Member
Posts: 169
Raspberry Pi: Yes
Other Device: many ...
|
Post by smurphy on Dec 13, 2021 0:46:20 GMT -8
I have had a look at the SkyWeather code a little, and noticed that even if you don't use the mysql/mariadb, you need to load the dependencies. Eventually the code should be adapted. If the mariadb is configured and enabled, then load the dependencies. Currently, I have my own git repo as there are too many things I changed/adapted for my setup to reduce resource usage, and running code size. But in the end, I hope for a Python 3 version before adding all the changes over.
|
|