kiwx
Junior Member

Posts: 65
|
Post by kiwx on May 31, 2022 16:38:57 GMT -8
Well...get past one and run smack into another with the same error, but the same fix doesn't work....SMH
|
|
kiwx
Junior Member

Posts: 65
|
Post by kiwx on Jun 12, 2022 12:58:28 GMT -8
Made it a bit further. Now running to the AS3935 setup
|
|
kiwx
Junior Member

Posts: 65
|
Post by kiwx on Jun 12, 2022 16:32:10 GMT -8
I have it working now. There is one error in the scheduler that I need to work out, but everything is running and reporting to Blynk
|
|
|
Post by rodskyweather on Jun 15, 2022 10:28:17 GMT -8
When I try to run make in the pigpio-develop directory I get this error: /SkyWeather-Python3-MySQL/pigpio-develop $ sudo make gcc -shared -pthread -Wl,-soname,libpigpio.so.1 -o libpigpio.so.1 pigpio.o command.o pigpio.o: file not recognized: file format not recognized collect2: error: ld returned 1 exit status make: *** [Makefile:139: libpigpio.so] Error 1 aj@aj-skyweather:/SkyWeather-Python3-MySQL/pigpio-develop $ solved the issue with a "sudo make clean" first, then "make"
|
|
kiwx
Junior Member

Posts: 65
|
Post by kiwx on Jun 22, 2022 19:07:27 GMT -8
I have fix SHT30 issues, AirQualitySensors (MP503), and scheduler (had to add a timezone configuration). I have also added last hour rain fall amount, rain rate, and dew point.
Seems my wind direction is stuck now as it always reads "N"....hmmmm
|
|
kiwx
Junior Member

Posts: 65
|
Post by kiwx on Jul 12, 2022 17:31:21 GMT -8
I have fixed the wind direction code by reverting back to the original WeatherRack python files. I will need to update it back to python3 format and hopefully not create the same problem again.
|
|
kiwx
Junior Member

Posts: 65
|
Post by kiwx on Jul 18, 2022 17:34:55 GMT -8
Working on adding a forecast summary from weatherapi.org to include:
high temp low temp conditions percent chance of rain/snow
schedule a couple of calls per day update blink with summary
|
|
|
Post by Powderjockey on Jul 26, 2022 15:31:17 GMT -8
Giving the pythons scripts a go and receiving this error after a bit of a start up.
Entering blynkInit debug mode: False Traceback (most recent call last): File "/home/pi/SkyWeather-Python-3/pclogging.py", line 54, in log con = mdb.connect(config.MySQL_Address, config.MySQL_User, config.MySQL_Password, config.MySQL_Database2); AttributeError: module 'conflocal' has no attribute 'MySQL_Database2'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "SkyWeather.py", line 1570, in <module> pclogging.log(pclogging.INFO, __name__, "SkyWeather Startup Version"+config.SWVERSION ) File "/home/pi/SkyWeather-Python-3/pclogging.py", line 74, in log cur.close() UnboundLocalError: local variable 'cur' referenced before assignment
|
|
|
Post by Powderjockey on Aug 6, 2022 17:32:01 GMT -8
Making small and slow progress in python3 software thing. Went thru all of the "test" scripts and all seem to work after a day of tweaking to make work work with the python3.
I am getting this error:
Entering blynkInit debug mode: False Traceback (most recent call last): File "SkyWeather.py", line 1570, in <module> pclogging.log(pclogging.INFO, __name__, "SkyWeather Startup Version"+config.SWVERSION ) File "/home/pi/SkyWeather-Python-3/pclogging.py", line 54, in log con = mdb.connect(config.MySQL_Address, config.MySQL_User, config.MySQL_Password, config.MySQL_Database2); TypeError: __init__() takes 1 positional argument but 5 were given This error shows up after start up as follows:
sudo python3 SkyWeather.py TSL2591 Init Complete: LUX: 0.000000 W/(m*m),FULL: 0, IR: 0 tmp= [94, 160, 247, 117, 17, 191] outsideTemperature: 19.7 C outsideHumidity: 45.7 % crcH: 0xbf crcT 0xf7 SHT3x Init Complete
SkyWeather Weather Station Version 055-sk - SwitchDoc Labs
Program Started at:2022-08-06 19:25:42
------------------------------------ I2C Mux - TCA9545 : Present BME680 : Present BMP280 : Not Present SkyCam : Not Present DS3231 : Not Present HDC1080 : Not Present SHT30 : Present AM2315 : Not Present ADS1015 : Not Present ADS1115 : Present AS3935 : Not Present OLED : Not Present SunAirPlus/SunControl : Not Present SolarMAX : Not Present VEML6070 UV Sensor : Not Present SI1145 Sun Sensor : Not Present TSL2591 Sun Sensor : Present DustSensor : Present WXLink : Not Present Dual SolarMAX/WXLink : Not Present UseBlynk : Present UseMySQL : Present Check WLAN : Present WeatherUnderground : Present UseWeatherStem : Not Present ------------------------------------ I have a $500.00 brick on a test bench that spends more time in the house that actually reporting the weather. Python2 won't work and neither does python3. Lots disappointed!
|
|
kiwx
Junior Member

Posts: 65
|
Post by kiwx on Aug 7, 2022 6:35:02 GMT -8
hmmmm. does yours have this?
if (config.enable_MySQL_Logging == True): import MySQLdb as mdb
my con statement looks different than yours. Are you sure its SkyWeather v1?
con = mdb.connect('localhost', 'root', config.MySQL_Password, 'SkyWeather');
|
|
|
Post by Powderjockey on Aug 7, 2022 15:05:51 GMT -8
if (config.enable_MySQL_Logging == True): import pymysql pymysql.install_as_MySQLdb() import MySQLdb as mdb I'm very sure it SkyWeather v1. The above is from the SkyWeather.py python3 version that I am trying to get up and running.
|
|
kiwx
Junior Member

Posts: 65
|
Post by kiwx on Aug 7, 2022 16:04:29 GMT -8
I had to do this command to get python3 working with mysql
Sudo apt install python3-mysqldb
I don't know anything about pymysql but it obviously has different init startups than mysqldb
|
|
|
Post by doxidad on Aug 7, 2022 16:06:40 GMT -8
Did you install python3-mysqldb ?
|
|
|
Post by Powderjockey on Aug 8, 2022 11:34:09 GMT -8
Did you install python3-mysqldb ? Yes it is installed.
|
|
|
Post by Powderjockey on Aug 10, 2022 18:20:03 GMT -8
Ok, making slow progress. The previous errors seemed to have been proper access to the mysql program, re-ran sudo mysql_secure_installation and allowing remote access, since it technically is using ssh/vnc.
Now, I had to add a couple of items to the conflocal.py file to show them as a config item.
MP503_Present = False WatchDog_Present = False
Now I'm getting an error and I'm very sure it has to do with mysql. One of the schemas is missing a table item called Tanks_log. Not sure how to add this, but I will poke around.
Weather Sampling ----------------- trying database Connected to database: query=INSERT INTO Tanks_Log(T, TT, T1, T2, T3, T4 ) VALUES (CURRENT_TIMESTAMP,30.11, 68.76, 52.23, 0.00, 0.00) Error 1146: Table 'SkyWeather.Tanks_Log' doesn't exist --Sending Data to WeatherUnderground-- success
I'm not getting any reading for the wind either. B Trend not show.
Any thoughts on that?
Thanks
Scott
|
|