mlanser
New Member
Posts: 7
Raspberry Pi: Yes
|
Post by mlanser on Jun 7, 2022 15:59:40 GMT -8
Hello Sopwith,
I posted an update earlier, but it seems the system somehow swallowed it and/or user error ... argh
Anyway, I had to make some changes to your process/scripts to make it work:
1) Importing "WeatherSenseWireless.sql" -- I had to comment out the "ALTER" statements for the "Timestamp fix" and I had to add the following 2 lines at the top:
CREATE DATABASE IF NOT EXISTS WeatherSenseWireless; USE WeatherSenseWireless;
2) Running "testSkyCamera.py" -- I had to whitelist the "https://skyweather.weatherstem.com/" URL as my Netgear Nighthawk router had blocked it thinking that it was for Phishing.
Now all tests run fine. But I haven't configured the rest of the system as my day job keeps interfering with my play time ;-)
Thanks ... -Martin.
|
|
Sopwith
Junior Member

"If it works out of the box - what fun is that?"
Posts: 69
Raspberry Pi: Yes
Other Device: Pico Pi
|
Post by Sopwith on Jun 8, 2022 6:30:48 GMT -8
Martin,
It sounds like you used version 1.4 of my script to create your SkyWeather2 instance. If so, then you do not have databases with the correct schema. Version 1.5 fixes this.
If you did use version 1.4, I suggest you start over and use v.1.5.
Sopwith
|
|
mlanser
New Member
Posts: 7
Raspberry Pi: Yes
|
Post by mlanser on Jun 8, 2022 7:15:32 GMT -8
Martin, It sounds like you used version 1.4 of my script to create your SkyWeather2 instance. If so, then you do not have databases with the correct schema. Version 1.5 fixes this. If you did use version 1.4, I suggest you start over and use v.1.5. SopwithYou're right, I used v1.4. No probs. I'll try it again.
Thanks ... -Martin.
|
|
mlanser
New Member
Posts: 7
Raspberry Pi: Yes
|
Post by mlanser on Jun 9, 2022 7:32:44 GMT -8
Sopwith, quick follow-up: I tried v1.5 and it seems to install fine and without any changes. Also, all tests ran fine. I’m still tinkering with overall configuration and set-up and should be completely up & running in next few days … assuming I get some free time ;-) Thanks … -Martin.
|
|
|
Post by mauriceatkinson on Aug 16, 2022 4:05:10 GMT -8
Sopwith I tried your latest install script and all looked good until the very end when I get this error message:
pi@skyweather2:~/SDL_Pi_Skyweather2 $ sudo python3 SkyWeather2.py ./SkyWeather2.JSON File exists using updateWebConfig
########################################################## SkyWeather2 Weather Station Version 027.6 - SwitchDoc Labs
Program Started at:2022-08-16 19:00:25 ##########################################################
Starting pigpio daemon b'' b'' Traceback (most recent call last): File "/home/pi/SDL_Pi_Skyweather2/SkyWeather2.py", line 254, in <module> bus = SMBus(1) FileNotFoundError: [Errno 2] No such file or directory pi@skyweather2:~/SDL_Pi_Skyweather2 $
My current hardware install does not have the HAT installed, so I am not sure if this is the problem? regards Maurice
|
|
Sopwith
Junior Member

"If it works out of the box - what fun is that?"
Posts: 69
Raspberry Pi: Yes
Other Device: Pico Pi
|
Post by Sopwith on Aug 16, 2022 6:16:10 GMT -8
Maurice,
The SW2 code requires the Hat be attached to the Pi or it will not work. The script failed because it could not find the Hat hardware.
Sopwith
|
|
|
Post by caspar on Sept 6, 2022 8:31:10 GMT -8
Thank you for the nice work with the guide and script. I did run into a problem (using a Pi4 with the 32bit Buster OS), that the script exits with a error regarding a missing mysql_config - googling it i did a "sudo apt-get install libmariadbclient-dev" and afterwards the script run through without errors.
Cheers
Caspar
|
|
ldawid
New Member
Posts: 6
Raspberry Pi: Yes
|
Post by ldawid on Mar 30, 2023 7:06:23 GMT -8
Good morning. I'm messing with the script  . I get this result: iLooking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting mysqlclient Downloading https://files.pythonhosted.org/packages/50/5f/eac919b88b9df39bbe4a855f136d58f80d191cfea34a3dcf96bf5d8ace0a/mysqlclient-2.1.1.tar.gz (88kB) 100% |████████████████████████████████| 92kB 681kB/s Complete output from command python setup.py egg_info: /bin/sh: 1: mysql_config: not found /bin/sh: 1: mariadb_config: not found /bin/sh: 1: mysql_config: not found mysql_config --version mariadb_config --version mysql_config --libs Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-srwegxu_/mysqlclient/setup.py", line 15, in <module> metadata, options = get_config() File "/tmp/pip-install-srwegxu_/mysqlclient/setup_posix.py", line 70, in get_config libs = mysql_config("libs") File "/tmp/pip-install-srwegxu_/mysqlclient/setup_posix.py", line 31, in mysql_config raise OSError("{} not found".format(_mysql_config_path)) OSError: mysql_config not found ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-srwegxu_/mysqlclient/ ===================================================================================== --- This script did not complete successfully. Check error messages and edit script. --- Error message: --- Error installing mysqlclient. ===================================================================================== pi@raspberrypi:~ $
System: Placed on Raspberry 3B+ Version of the script: 1.5 What are these errors caused by? Thank you for all your help. Regards ... Leszek
|
|
|
Post by mauriceatkinson on Mar 30, 2023 7:55:41 GMT -8
Look at the message from Casper as this normally fixes it for me
|
|
ldawid
New Member
Posts: 6
Raspberry Pi: Yes
|
Post by ldawid on Mar 30, 2023 8:26:39 GMT -8
Thank you for your answer. Action indicated: nothing improved in installing the script. It still shows the installation error mentioned above. I keep searching ...
|
|
ldawid
New Member
Posts: 6
Raspberry Pi: Yes
|
Post by ldawid on Mar 30, 2023 10:57:50 GMT -8
Thank you @ mauriceatkinson for the motivation to search. It worked. I found a solution on the internet. In my case I had to execute: sudo apt update
sudo apt install python3-mysqldb
subsequently: sudo apt update
sudo apt full-upgrade rebootNext - installation of the skyweather2 script, and the message: successfull install says it all. Regards ... Leszek
|
|