|
Post by Powderjockey on Aug 22, 2021 12:21:45 GMT -8
man, it seems I'm always having some kind of trouble with it weather station. Upon rebooting today I get the following error:
sudo python SkyWeather.py (0.0, 0, 0) () visible= 0 ('Pi Camera Revision', u'ov5647') deviceID = 0x0 Traceback (most recent call last): File "SkyWeather.py", line 486, in <module> ds3231.read_datetime() File "./RTC_SDL_DS3231/SDL_DS3231.py", line 153, in read_datetime self._read_minutes(), self._read_seconds(), 0, tzinfo=tzinfo) ValueError: month must be in 1..12 tested with:
python testSDL_DS3231.py
Test SDL_DS3231 Version 1.0 - SwitchDoc Labs
Program Started at:2021-08-22 14:26:16
----------------- ----------------- Test the AT24C32 EEPROM ----------------- writing first 10 addresses with random data address = 0 writing value=23 address = 1 writing value=204 address = 2 writing value=156 address = 3 writing value=126 address = 4 writing value=103 address = 5 writing value=67 address = 6 writing value=241 address = 7 writing value=52 address = 8 writing value=157 address = 9 writing value=193 ----------------- reading first 10 addresses address = 0 value = 0 address = 1 value = 0 address = 2 value = 0 address = 3 value = 0 address = 4 value = 0 address = 5 value = 0 address = 6 value = 0 address = 7 value = 0 address = 8 value = 0 address = 9 value = 0 ----------------- -----------------
Raspberry Pi= 2021-08-22 14:26:18 Traceback (most recent call last): File "testSDL_DS3231.py", line 69, in <module> print "DS3231=\t\t%s" % ds3231.read_datetime() File "/home/pi/SDL_Pi_SkyWeather/RTC_SDL_DS3231/SDL_DS3231.py", line 153, in read_datetime self._read_minutes(), self._read_seconds(), 0, tzinfo=tzinfo) ValueError: month must be in 1..12
|
|
|
Post by SDL on Aug 22, 2021 15:49:38 GMT -8
I'd say your battery has died on the DS3231 and your time is lost. Try setting the time on the device.
BP
|
|
|
Post by Powderjockey on Aug 23, 2021 5:34:50 GMT -8
I'd say your battery has died on the DS3231 and your time is lost. Try setting the time on the device. BP Is there a battery on the Pi? When I run "date", it returns the proper date and time of day. I'm not sure I have a DS3231 installed on the weather station. Where is it located SkyWeather1?
|
|
|
Post by Powderjockey on Aug 23, 2021 11:27:34 GMT -8
I added this dtoverlay=i2c-rtc,ds3231 to the /boot/config.txt and the ds3231 error has diappeared, but now it gives me this error:
pi@SkyWeather:~/SDL_Pi_SkyWeather $ sudo python SkyWeather.py (0.0, 0, 0) () visible= 0 ('Pi Camera Revision', u'ov5647') deviceID = 0x0 Traceback (most recent call last): File "SkyWeather.py", line 515, in <module> bme680 = BME680.BME680(BME680.I2C_ADDR_SECONDARY) File "./BME680/bme680.py", line 443, in __init__ raise RuntimeError('BME680 Not Found. Invalid CHIP ID: 0x{0:02x}'.format(self.chip_id)) RuntimeError: BME680 Not Found. Invalid CHIP ID: 0x00
|
|
|
Post by SDL on Aug 23, 2021 18:48:05 GMT -8
OK. It is having problems finding the BME680. I'm not sure at all what you have done! Sounds like the overlay should come out. Looks wrong to me.
can you run and post the results from:
sudo python testSDL_Pi_TCA9545.py BP
|
|
|
Post by Powderjockey on Aug 24, 2021 9:58:29 GMT -8
OK. It is having problems finding the BME680. I'm not sure at all what you have done! Sounds like the overlay should come out. Looks wrong to me. can you run and post the results from: sudo python testSDL_Pi_TCA9545.py BP Seriously, all I have done to the station in the past 12 months was I changed out the SHT30 and that has been it. When you say overlay, what are you referring to? I'll add the output of sudo python testSDL_Pi_TCA9545.py in a bit. sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: 03 -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- 44 -- -- -- 48 -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- 70: -- -- -- 73 -- -- -- 77 sudo python testSDL_Pi_TCA9545.py
Test SDL_Pi_TCA9545 Version 1.0 - SwitchDoc Labs
Sample uses 0x73 Program Started at:2021-08-24 13:37:23
-----------BUS 0------------------- tca9545 control register B3-B0 = 0x1 ignore Interrupts if INT3' - INT0' not connected tca9545 control register Interrupts = 0x0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: 03 -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- 44 -- -- -- 48 -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- 70: -- -- -- 73 -- -- -- 77
-----------------------------------
-----------BUS 1------------------- tca9545 control register B3-B0 = 0x2 ignore Interrupts if INT3' - INT0' not connected tca9545 control register Interrupts = 0x0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: 03 -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- 70: -- -- -- 73 -- -- -- --
-----------------------------------
-----------BUS 2------------------- tca9545 control register B3-B0 = 0x4 ignore Interrupts if INT3' - INT0' not connected tca9545 control register Interrupts = 0x0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: 03 -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- 70: -- -- -- 73 -- -- -- --
-----------------------------------
-----------BUS 3------------------- tca9545 control register B3-B0 = 0x8 ignore Interrupts if INT3' - INT0' not connected tca9545 control register Interrupts = 0x0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: 03 -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- 29 -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- 70: -- -- -- 73 -- -- -- --
-----------------------------------
|
|
|
Post by SDL on Aug 24, 2021 14:01:19 GMT -8
I added this dtoverlay=i2c-rtc,ds3231 to the /boot/config.txt and the ds3231 error has diappeared, but now it gives me this error: pi@SkyWeather:~/SDL_Pi_SkyWeather $ sudo python SkyWeather.py (0.0, 0, 0) () visible= 0 ('Pi Camera Revision', u'ov5647') deviceID = 0x0 Traceback (most recent call last): File "SkyWeather.py", line 515, in <module> bme680 = BME680.BME680(BME680.I2C_ADDR_SECONDARY) File "./BME680/bme680.py", line 443, in __init__ raise RuntimeError('BME680 Not Found. Invalid CHIP ID: 0x{0:02x}'.format(self.chip_id)) RuntimeError: BME680 Not Found. Invalid CHIP ID: 0x00 Here is what you said you changed. BP
|
|
|
Post by Powderjockey on Aug 25, 2021 18:20:48 GMT -8
I added this dtoverlay=i2c-rtc,ds3231 to the /boot/config.txt and the ds3231 error has diappeared, but now it gives me this error: pi@SkyWeather:~/SDL_Pi_SkyWeather $ sudo python SkyWeather.py (0.0, 0, 0) () visible= 0 ('Pi Camera Revision', u'ov5647') deviceID = 0x0 Traceback (most recent call last): File "SkyWeather.py", line 515, in <module> bme680 = BME680.BME680(BME680.I2C_ADDR_SECONDARY) File "./BME680/bme680.py", line 443, in __init__ raise RuntimeError('BME680 Not Found. Invalid CHIP ID: 0x{0:02x}'.format(self.chip_id)) RuntimeError: BME680 Not Found. Invalid CHIP ID: 0x00 Here is what you said you changed. BP yes, reversed this. Lots of the sensors are not showing up in the sudo i2cdetect -y 1 nor sudo python test SDL_Pi_TCA9535. sudo python SkyWeather.py (284.13120000000004, 150, 49) () ('Pi Camera Revision', u'ov5647') ('after bme680', True) as3935 start I/O error(121): Remote I/O error I/O error(121): Remote I/O error tmp= [94, 129, 64, 102, 91, 26] outsideTemperature: 19.6 C outsideHumidity: 40.0 % crcH: 0x1a crcT 0x40 after SHT30
SkyWeather Weather Station Version 055 - SwitchDoc Labs Frustrated. Is there a possibility the PiGrover board is damaged.
|
|
|
Post by SDL on Aug 25, 2021 18:35:46 GMT -8
I don't think it is the Pi2Grover. Too simple of a board. I think it is pi programming. Something you did (I think - I don't know). Do you have a backup SD card?
Post the results of the I2C scans again now.
BP
|
|
|
Post by Powderjockey on Aug 26, 2021 11:23:34 GMT -8
Post the results of the I2C scans again now. BP sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- 29 -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- 73 -- -- -- -- I can blow away the SDL_Pi_SkyWeather folder and start over. I have the original SkyWeather.py file back in place for now. The unit isn't detecting the Lightning Detector so perhaps that is part of the troubles.
|
|
|
Post by SDL on Aug 26, 2021 17:33:32 GMT -8
I don't think SkyWeathe is the problem here. It is something in the OS.
This is the command I need to see:
sudo python testSDL_Pi_TCA9545.py
BP
|
|
|
Post by Powderjockey on Aug 30, 2021 16:52:34 GMT -8
I don't think SkyWeathe is the problem here. It is something in the OS. This is the command I need to see: sudo python testSDL_Pi_TCA9545.py BP pi@SkyWeather:~/SDL_Pi_SkyWeather $ sudo python testSDL_Pi_TCA9545.py
Test SDL_Pi_TCA9545 Version 1.0 - SwitchDoc Labs
Sample uses 0x73 Program Started at:2021-08-30 18:51:38
-----------BUS 0------------------- tca9545 control register B3-B0 = 0x1 ignore Interrupts if INT3' - INT0' not connected tca9545 control register Interrupts = 0x0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- 44 -- -- -- 48 -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- 73 -- -- -- 77
-----------------------------------
-----------BUS 1------------------- tca9545 control register B3-B0 = 0x2 ignore Interrupts if INT3' - INT0' not connected tca9545 control register Interrupts = 0x0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- 73 -- -- -- --
-----------------------------------
-----------BUS 2------------------- tca9545 control register B3-B0 = 0x4 ignore Interrupts if INT3' - INT0' not connected tca9545 control register Interrupts = 0x0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- 73 -- -- -- --
-----------------------------------
-----------BUS 3------------------- tca9545 control register B3-B0 = 0x8 ignore Interrupts if INT3' - INT0' not connected tca9545 control register Interrupts = 0x0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- 29 -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- 73 -- -- -- --
-----------------------------------
|
|
|
Post by Powderjockey on Sept 1, 2021 5:43:43 GMT -8
Today's BUS2 output.
-----------BUS 2------------------- tca9545 control register B3-B0 = 0x4 ignore Interrupts if INT3' - INT0' not connected tca9545 control register Interrupts = 0x0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: 03 04 05 -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30: 30 31 -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- 4c 4d 4e 4f 50: 50 51 52 53 54 55 56 57 58 -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- 72 73 74 75 76 77
|
|
|
Post by Powderjockey on Sept 1, 2021 5:46:22 GMT -8
And starting SkyWeather today
sudo python SkyWeather.py >>>>>>>>>>>>>>>>>>><<<<<<<<<<< TCA9545 I2C Mux Not Present >>>>>>>>>>>>>>>>>>><<<<<<<<<<< ('Pi Camera Revision', u'ov5647') Error accessing 0x48: Check your I2C address Error accessing 0x48: Check your I2C address Type Error I/O error(121): Remote I/O error ('after bme680', False) as3935 start I/O error(121): Remote I/O error I/O error(121): Remote I/O error after SHT30
SkyWeather Weather Station Version 055 - SwitchDoc Labs
Program Started at:2021-09-01 07:44:41
|
|
|
Post by Powderjockey on Sept 14, 2021 11:39:13 GMT -8
Any thoughts on this?
|
|