|
Post by SDL on Nov 26, 2018 17:04:55 GMT -8
|
|
|
Post by triggerfish on Nov 27, 2018 6:18:06 GMT -8
What is the best way to upgrade my 3.03 to 3.10?
|
|
|
Post by triggerfish on Nov 27, 2018 11:21:01 GMT -8
Still get errros on the AM2315 Rain in past 60 minutes= 0.0 ----------------- Weather Sampling ----------------- ----------------- 'NoneType' object has no attribute '__getitem__' File "/usr/local/lib/python2.7/dist-packages/apscheduler/executors/base.py", line 125, in run_job retval = job.func(*job.args, **job.kwargs) File "/home/pi/SDL_Pi_GroveWeatherPi/GroveWeatherPi.py", line 1262, in sampleAndDisplay sampleWeather() File "/home/pi/SDL_Pi_GroveWeatherPi/GroveWeatherPi.py", line 1106, in sampleWeather ToutsideHumidity, ToutsideTemperature, crc_check = am2315.read_humidity_temperature_crc() File "./SDL_Pi_AM2315/AM2315.py", line 127, in read_humidity_temperature_crc self._read_data() File "./SDL_Pi_AM2315/AM2315.py", line 88, in _read_data self.humidity = ((tmp[2] << 8) | tmp[3]) / 10.0
------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog-------
|
|
|
Post by SDL on Nov 27, 2018 12:21:52 GMT -8
Peter,
That is an interesting error. How often does this happen?
It says that the AM2315 object has gone away. Does it continue to do this until you reset it? I can trap and fix this.
We are still improving the AM2315 driver, so there will be another release in the not to distant feature.
BP
|
|
|
Post by triggerfish on Nov 27, 2018 23:38:54 GMT -8
I installed yesterday afternoon (for me then CET) And got the error five times. So far it occurs once in every new logfile:
log/IBADHOEV14_2018-11-27_19.49.52.log:'NoneType' object has no attribute '__getitem__' log/IBADHOEV14_2018-11-27_20.06.10.log:'NoneType' object has no attribute '__getitem__' log/IBADHOEV14_2018-11-27_22.23.53.log:'NoneType' object has no attribute '__getitem__' log/IBADHOEV14_2018-11-28_00.04.17.log:'NoneType' object has no attribute '__getitem__' log/IBADHOEV14_2018-11-28_07.10.31.log:'NoneType' object has no attribute '__getitem__'
A quick look shows it occurring between about two minutes after program start until about ten minutes after start... The program continues on, however... Before the error I see logging of the AS3935, DS3231, the wundergroud upload. I see SunAir sampling header, but no data. After the error this stops and I just see Patting the dog and a time tick every minute. It seems to insert data in the database evry now and then... Start of logfile:
deviceID = 0x1050 visible= 0 as3935 present at 0x02 outsideTemperature: 3.5 C outsideHumidity: 88.0 % crc: 0xaeb1
GroveWeatherPi Solar Powered Weather Station Version 3.10 - SwitchDoc Labs
Program Started at:2018-11-28 07:11:00
---------------------- I2C Mux - TCA9545: Present BMP280: Present DS3231: Present HDC1080: Present HTU21DF: Not Present AM2315: Present ADS1015: Not Present ADS1115: Present AS3935: Present OLED: Present SunAirPlus: Present Sunlight Sensor: Present WXLink: Not Present
UseBlynk: Present UseMySQL: Present Check WLAN: Present WeatherUnderground: Present ---------------------- ----------------- SunAirPlus Sampling ----------------- ----------------- Sample and Display ----------------- ----------------- Weather Sampling ----------------- ----------------- --Sending Data to WeatherUnderground-- cws=| 2.26905867471 myURL= ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=270&windspeedmph=1.42&humidity=93&tempf=39.56&dewptf=37.08&rainin=0.00&baromin=30.07&indoortempf=42.69&indoorhumidity95.29=&software=GroveWeatherPi https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=270&windspeedmph=1.42&humidity=93&tempf=39.56&dewptf=37.08&rainin=0.00&baromin=30.07&indoortempf=42.69&indoorhumidity95.29=&software=GroveWeatherPi success
GET sent ----------------- SunAirPlus Sampling ----------------- ----------------- ----------------- ----------------- Raspberry Pi= 2018-11-28 07:11:08 DS3231= 2018-11-28 07:11:08 DS3231 Temperature= 6.00 C ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ----------------- Sample and Display Done ----------------- ----------------- Scheduled Jobs ----------------- Jobstore default: patTheDog (trigger: interval[0:00:10], next run at: 2018-11-28 07:11:24 CET) sampleAndDisplay (trigger: interval[0:00:30], next run at: 2018-11-28 07:11:44 CET) tick (trigger: interval[0:01:00], next run at: 2018-11-28 07:12:14 CET) checkForButtons (trigger: interval[0:01:00], next run at: 2018-11-28 07:12:14 CET) writeWeatherRecord (trigger: interval[0:05:00], next run at: 2018-11-28 07:16:14 CET) writePowerRecord (trigger: interval[0:05:00], next run at: 2018-11-28 07:16:14 CET) updateRain (trigger: interval[0:05:00], next run at: 2018-11-28 07:16:14 CET) checkForShutdown (trigger: interval[0:05:00], next run at: 2018-11-28 07:16:14 CET) doAllGraphs (trigger: interval[0:15:00], next run at: 2018-11-28 07:26:14 CET) barometricTrend (trigger: interval[0:15:00], next run at: 2018-11-28 07:26:14 CET) WLAN_check (trigger: interval[0:30:00], next run at: 2018-11-28 07:41:14 CET) rebootPi (trigger: cron[day='2-30/2', hour='0', minute='4'], next run at: 2018-11-30 00:04:00 CET) ----------------- ------Patting The Dog------- ------Patting The Dog------- ----------------- Sample and Display ----------------- ------Patting The Dog------- ----------------- Weather Sampling ----------------- ----------------- --Sending Data to WeatherUnderground-- cws=| 7.85025595872 myURL= ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=0&windspeedmph=4.91&humidity=93&tempf=39.56&dewptf=37.15&rainin=0.00&baromin=30.07&indoortempf=42.69&indoorhumidity95.29=&software=GroveWeatherPi https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=0&windspeedmph=4.91&humidity=93&tempf=39.56&dewptf=37.15&rainin=0.00&baromin=30.07&indoortempf=42.69&indoorhumidity95.29=&software=GroveWeatherPi success
GET sent ----------------- SunAirPlus Sampling ----------------- ----------------- ----------------- ----------------- Raspberry Pi= 2018-11-28 07:11:46 DS3231= 2018-11-28 07:11:46 DS3231 Temperature= 6.00 C
Near the error:
------Patting The Dog------- ----------------- Weather Sampling ----------------- ----------------- 'NoneType' object has no attribute '__getitem__' File "/usr/local/lib/python2.7/dist-packages/apscheduler/executors/base.py", line 125, in run_job retval = job.func(*job.args, **job.kwargs) File "/home/pi/SDL_Pi_GroveWeatherPi/GroveWeatherPi.py", line 1262, in sampleAndDisplay sampleWeather() File "/home/pi/SDL_Pi_GroveWeatherPi/GroveWeatherPi.py", line 1106, in sampleWeather ToutsideHumidity, ToutsideTemperature, crc_check = am2315.read_humidity_temperature_crc() File "./SDL_Pi_AM2315/AM2315.py", line 127, in read_humidity_temperature_crc self._read_data() File "./SDL_Pi_AM2315/AM2315.py", line 88, in _read_data self.humidity = ((tmp[2] << 8) | tmp[3]) / 10.0
------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-28 07:16:14.358331 ------Patting The Dog------- trying database before query query=INSERT INTO WeatherData(TimeStamp,as3935LightningCount, as3935LastInterrupt, as3935LastDistance, as3935LastStatus, currentWindSpeed, currentWindGust, totalRain, bmp180Temperature, bmp180Pressure, bmp180Altitude, bmp180SeaLevel, outsideTemperature, outsideHumidity, currentWindDirection, currentWindDirectionVoltage, insideTemperature, insideHumidity) VALUES(UTC_TIMESTAMP(), 0.000, 0.000, 0.000, "", 7.360, 38.043, 0.000, 6, 101.732, -33.830, 101.816, 4.100, 93.400, 0.000, 3.562, 5.940, 95.685) trying database Rain in past 60 minutes= 0.0 query=INSERT INTO Sunlight(TimeStamp, Visible, IR, UV, UVIndex) VALUES(UTC_TIMESTAMP(), 0, 0, 0, 0.000) before query query=INSERT INTO PowerSystem(TimeStamp, batteryVoltage, batteryCurrent, solarVoltage, solarCurrent, loadVoltage, loadCurrent, batteryPower, solarPower, loadPower, batteryCharge) VALUES (UTC_TIMESTAMP (), 3.860, -115.600, 0.016, -0.000, 4.976, 153.200, -0.446, -0.000, 0.762, 64.514) ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-28 07:17:14.357037 ------Patting The Dog------- exception in blynkStatusUpdate HTTPConnectionPool(host='blynk-cloud.com', port=80): Max retries exceeded with url: /d6a4544018c64a9ea56d99787e33971e/get/V8 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0xb2d60bd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)) ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-28 07:18:14.358303 ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-28 07:19:14.358297 ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-28 07:20:14.358301
And further below:
------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-28 07:40:14.358081 ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-28 07:41:14.358406 ------Patting The Dog------- trying database before query query=INSERT INTO WeatherData(TimeStamp,as3935LightningCount, as3935LastInterrupt, as3935LastDistance, as3935LastStatus, currentWindSpeed, currentWindGust, totalRain, bmp180Temperature, bmp180Pressure, bmp180Altitude, bmp180SeaLevel, outsideTemperature, outsideHumidity, currentWindDirection, currentWindDirectionVoltage, insideTemperature, insideHumidity) VALUES(UTC_TIMESTAMP(), 0.000, 0.000, 0.000, "", 7.360, 38.043, 0.000, 6, 101.732, -33.830, 101.816, 4.100, 93.400, 0.000, 3.562, 5.940, 95.685) query=INSERT INTO Sunlight(TimeStamp, Visible, IR, UV, UVIndex) VALUES(UTC_TIMESTAMP(), 0, 0, 0, 0.000) trying database Rain in past 60 minutes= 0.0 BarometerLightningGraph source:test days:10 ('sleeping seconds:', 0) BarometerLightningGraph running now before query query=INSERT INTO PowerSystem(TimeStamp, batteryVoltage, batteryCurrent, solarVoltage, solarCurrent, loadVoltage, loadCurrent, batteryPower, solarPower, loadPower, batteryCharge) VALUES (UTC_TIMESTAMP (), 3.860, -115.600, 0.016, -0.000, 4.976, 153.200, -0.446, -0.000, 0.762, 64.514) trying database query= SELECT TimeStamp, bmp180SeaLevel, as3935LastInterrupt, as3935LastDistance FROM WeatherData where now() - interval 240 hour < TimeStamp ('count of t=', 2660) checking WLAN: ping_ret=0 WLAN_check_flg=0 WLAN is OK ------Patting The Dog------- BarometerLightningGraph finished now TemperatureHumidityGraph source:test days:10 ('sleeping seconds:', 0) TemperatureHumidityGraph running now trying database query= SELECT TimeStamp, bmp180Temperature, outsideTemperature, outsideHumidity, insideHumidity FROM WeatherData where now() - interval 240 hour < TimeStamp ('count of t=', 2660) ------Patting The Dog------- currentTime=192 DEBOUNCE-count=4600 currentTime=894 DEBOUNCE-count=4600 ------Patting The Dog------- currentTime=197 DEBOUNCE-count=4609 currentTime=245 DEBOUNCE-count=4609 currentTime=284 DEBOUNCE-count=4620 currentTime=696 DEBOUNCE-count=4620 TemperatureHumidityGraph finished now PowerCurrentGraph source:test days:10 delay:0 ('sleeping :', 0) PowerCurrentGraph running now ------Patting The Dog------- trying database ('count of t=', 2659) ------Patting The Dog------- currentTime=135 DEBOUNCE-count=4667 PowerCurrentGrapGraph finished now PowerVoltageGraph source:test days:10 delay:0 ('sleeping :', 0) PowerVoltageGraph running now trying database ('count of t=', 2659) Tick! The time is: 2018-11-28 07:42:14.355977 ------Patting The Dog------- PowerVoltageGraph finished now ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-28 07:43:14.358442 ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-28 07:44:14.358492 ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-28 07:45:14.358375 ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-28 07:46:14.358380 ------Patting The Dog------- It seems that after the error things indeed go wrong.
|
|
|
Post by triggerfish on Nov 27, 2018 23:56:15 GMT -8
After the last reboot AM2315 is not recognized Program Started at:2018-11-28 08:41:23
---------------------- I2C Mux - TCA9545: Present BMP280: Present DS3231: Present HDC1080: Present HTU21DF: Not Present AM2315: Not Present <<<<<===== ADS1015: Not Present ADS1115: Present
|
|
|
Post by triggerfish on Nov 28, 2018 1:50:28 GMT -8
OK, officially recurring. After the error things stop working. Until the error occurs the system is reporting normally, after the error things come to an halt. Blynk flatlines also.
|
|
|
Post by SDL on Nov 28, 2018 5:49:43 GMT -8
Peter,
Good information. I have not replicated the error. I am running tests now. I can fix it, but I really want to duplicate it.
Just released 3.11: November 28, 2018 - Version 3.11 Further improved AM2315, fixed startup glitch with English/Metric units, fixed Rain Status
Note: This release does NOT address the problem above. I'm starting the test.
BP
|
|
|
Post by SDL on Nov 28, 2018 6:55:42 GMT -8
Peter,
Let's do one more thing. I believe this is a problem having to do with the device hanging. You have to power it on and off to get it responding correct? I have not seen that problem here.
Using version 3.11, go into the directory:
/SDL_Pi_GroveWeatherPi/SDL_Pi_AM2315
and edit AM2315.py
and change
AM2315DEBUG = False to
AM2315DEBUG = True
and restart the program.
You will start to see things like this:
AM2315temperature= 20.7 AM2315humdity= 35.9 AM2315crc= 40705 AM2315c= 40705 AM2315 Stats: (g,br,bc) (141, 0, 0) g = good reads br = bad reads (like way too much of a difference between reads) bc = bad CRC checks
When you have the error again, capture about 100 lines above to the last successful reading down through your error and post. That will help me.
BP
|
|
|
Post by triggerfish on Nov 28, 2018 9:04:48 GMT -8
Peter, Let's do one more thing. I believe this is a problem having to do with the device hanging. You have to power it on and off to get it responding correct? I have not seen that problem here. Well, I may not have been clear on that. I do not need to power it off and on again. Just rebooting will sometimes see the device, sometimes not. Then I just kill the process and start it useing the line in /etc/rc.local. Somtimes it pickes up, somtimes I have to do it again.
I set debug to true and started the program...
|
|
|
Post by triggerfish on Nov 29, 2018 1:25:45 GMT -8
It just starts with a bunch of errors deviceID = 0x1050 visible= 0 as3935 present at 0x02 An exception of type IOError occurred. Arguments: (121, 'Remote I/O error') Traceback (most recent call last): File "./SDL_Pi_AM2315/AM2315.py", line 65, in _read_data tmp = self._device.readList(AM2315_READREG,8) File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/I2C.py", line 136, in readList results = self._bus.read_i2c_block_data(self._address, register, length) File "build/bdist.linux-armv7l/egg/Adafruit_PureIO/smbus.py", line 215, in read_i2c_block_data ioctl(self._device.fileno(), I2C_RDWR, request) IOError: [Errno 121] Remote I/O error
AM2315readCount = 0 An exception of type IOError occurred. Arguments: (121, 'Remote I/O error') Traceback (most recent call last): File "./SDL_Pi_AM2315/AM2315.py", line 63, in _read_data self._device.writeList(AM2315_READREG,[0x00, 0x04]) File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/I2C.py", line 129, in writeList self._bus.write_i2c_block_data(self._address, register, data) File "build/bdist.linux-armv7l/egg/Adafruit_PureIO/smbus.py", line 294, in write_i2c_block_data self._device.write(data) IOError: [Errno 121] Remote I/O error
AM2315readCount = 1 An exception of type IOError occurred. Arguments: (121, 'Remote I/O error') Traceback (most recent call last): File "./SDL_Pi_AM2315/AM2315.py", line 63, in _read_data self._device.writeList(AM2315_READREG,[0x00, 0x04]) File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/I2C.py", line 129, in writeList self._bus.write_i2c_block_data(self._address, register, data) File "build/bdist.linux-armv7l/egg/Adafruit_PureIO/smbus.py", line 294, in write_i2c_block_data self._device.write(data) IOError: [Errno 121] Remote I/O error
AM2315readCount = 2 AM2315temperature= 10.6 AM2315humdity= 91.9 AM2315crc= 28608 AM2315c= 28608 outsideTemperature: 10.6 C outsideHumidity: 91.9 % crc: 0x6fc0
GroveWeatherPi Solar Powered Weather Station Version 3.11 - SwitchDoc Labs
Program Started at:2018-11-29 09:43:50
---------------------- I2C Mux - TCA9545: Present BMP280: Present DS3231: Present HDC1080: Present HTU21DF: Not Present AM2315: Present ADS1015: Not Present ADS1115: Present AS3935: Present OLED: Present SunAirPlus: Present Sunlight Sensor: Present WXLink: Not Present
UseBlynk: Present UseMySQL: Present Check WLAN: Present WeatherUnderground: Present ---------------------- currentTime=209 DEBOUNCE-count=11 ----------------- SunAirPlus Sampling ----------------- currentTime=206 DEBOUNCE-count=19 ----------------- Sample and Display ----------------- ----------------- Weather Sampling ----------------- ----------------- AM2315temperature= 10.5 AM2315humdity= 92.0 AM2315crc= 28080 AM2315c= 28080 --Sending Data to WeatherUnderground-- cws=| 8.6069455868 myURL= ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=315&windspeedmph=5.38&humidity=92&tempf=50.90&dewptf=48.02&rainin=0.00&baromin=29.88&indoortempf=53.18&indoorhumidity100.00=&software=GroveWeatherPi https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=315&windspeedmph=5.38&humidity=92&tempf=50.90&dewptf=48.02&rainin=0.00&baromin=29.88&indoortempf=53.18&indoorhumidity100.00=&software=GroveWeatherPi success
GET sent ----------------- SunAirPlus Sampling ----------------- ----------------- ----------------- ----------------- Raspberry Pi= 2018-11-29 09:43:56 DS3231= 2018-11-29 09:43:56 DS3231 Temperature= 12.00 C ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ----------------- Sample and Display Done ----------------- ----------------- Scheduled Jobs ----------------- Jobstore default: patTheDog (trigger: interval[0:00:10], next run at: 2018-11-29 09:44:12 CET) sampleAndDisplay (trigger: interval[0:00:30], next run at: 2018-11-29 09:44:32 CET) tick (trigger: interval[0:01:00], next run at: 2018-11-29 09:45:02 CET) checkForButtons (trigger: interval[0:01:00], next run at: 2018-11-29 09:45:02 CET) writeWeatherRecord (trigger: interval[0:05:00], next run at: 2018-11-29 09:49:02 CET) writePowerRecord (trigger: interval[0:05:00], next run at: 2018-11-29 09:49:02 CET) updateRain (trigger: interval[0:05:00], next run at: 2018-11-29 09:49:02 CET) checkForShutdown (trigger: interval[0:05:00], next run at: 2018-11-29 09:49:02 CET) doAllGraphs (trigger: interval[0:15:00], next run at: 2018-11-29 09:59:02 CET) barometricTrend (trigger: interval[0:15:00], next run at: 2018-11-29 09:59:02 CET) WLAN_check (trigger: interval[0:30:00], next run at: 2018-11-29 10:14:02 CET) statusRain (trigger: interval[1:00:00], next run at: 2018-11-29 10:44:02 CET) rebootPi (trigger: cron[day='2-30/2', hour='0', minute='4'], next run at: 2018-11-30 00:04:00 CET) ----------------- ------Patting The Dog------- ------Patting The Dog------- ----------------- Sample and Display ----------------- ------Patting The Dog------- ----------------- Weather Sampling ----------------- ----------------- AM2315temperature= 10.5 AM2315humdity= 92.2 AM2315crc= 44305 AM2315c= 44305 --Sending Data to WeatherUnderground-- cws=| 22.7970469346 myURL= ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=247&windspeedmph=14.25&humidity=92&tempf=50.90&dewptf=48.09&rainin=0.00&baromin=29.88&indoortempf=53.18&indoorhumidity100.00=&software=GroveWeatherPi https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=247&windspeedmph=14.25&humidity=92&tempf=50.90&dewptf=48.09&rainin=0.00&baromin=29.88&indoortempf=53.18&indoorhumidity100.00=&software=GroveWeatherPi success
GET sent ----------------- SunAirPlus Sampling ----------------- ----------------- ----------------- ----------------- Raspberry Pi= 2018-11-29 09:44:34 DS3231= 2018-11-29 09:44:35 DS3231 Temperature= 12.00 C ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ----------------- Sample and Display Done ----------------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-29 09:45:02.512032 ----------------- Sample and Display ----------------- ------Patting The Dog------- ----------------- Weather Sampling ----------------- ----------------- An exception of type IOError occurred. Arguments: (121, 'Remote I/O error') Traceback (most recent call last): File "./SDL_Pi_AM2315/AM2315.py", line 65, in _read_data tmp = self._device.readList(AM2315_READREG,8) File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/I2C.py", line 136, in readList results = self._bus.read_i2c_block_data(self._address, register, length) File "build/bdist.linux-armv7l/egg/Adafruit_PureIO/smbus.py", line 215, in read_i2c_block_data ioctl(self._device.fileno(), I2C_RDWR, request) IOError: [Errno 121] Remote I/O error
AM2315readCount = 0 >>>>>>>>>>>>> Bad AM2315 Temperature = 2892.8 >>>>>>>>>>>>> AM2315temperature= 10.5 AM2315humdity= 92.2 AM2315crc= 44305 AM2315c= 44305 --Sending Data to WeatherUnderground-- cws=| 13.4379144357 myURL= ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=247&windspeedmph=8.40&humidity=92&tempf=50.90&dewptf=48.09&rainin=0.00&baromin=29.88&indoortempf=53.18&indoorhumidity100.00=&software=GroveWeatherPi https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=247&windspeedmph=8.40&humidity=92&tempf=50.90&dewptf=48.09&rainin=0.00&baromin=29.88&indoortempf=53.18&indoorhumidity100.00=&software=GroveWeatherPi success
GET sent ----------------- SunAirPlus Sampling ----------------- ----------------- ----------------- ----------------- Raspberry Pi= 2018-11-29 09:45:05 DS3231= 2018-11-29 09:45:05 DS3231 Temperature= 12.00 C ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ----------------- Sample and Display Done ----------------- ------Patting The Dog------- ------Patting The Dog------- ----------------- Sample and Display ----------------- ------Patting The Dog------- ----------------- Weather Sampling ----------------- ----------------- AM2315temperature= 10.5 AM2315humdity= 92.1 AM2315crc= 44513 AM2315c= 44513 --Sending Data to WeatherUnderground-- cws=| 12.4831428393 myURL= ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=247&windspeedmph=7.80&humidity=92&tempf=50.90&dewptf=48.06&rainin=0.00&baromin=29.88&indoortempf=53.18&indoorhumidity100.00=&software=GroveWeatherPi https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=247&windspeedmph=7.80&humidity=92&tempf=50.90&dewptf=48.06&rainin=0.00&baromin=29.88&indoortempf=53.18&indoorhumidity100.00=&software=GroveWeatherPi success
GET sent ----------------- SunAirPlus Sampling ----------------- ----------------- ----------------- ----------------- Raspberry Pi= 2018-11-29 09:45:34 DS3231= 2018-11-29 09:45:35 DS3231 Temperature= 12.00 C ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ----------------- Sample and Display Done ----------------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-29 09:46:02.508818 ----------------- Sample and Display ----------------- ------Patting The Dog------- ----------------- Weather Sampling ----------------- ----------------- An exception of type IOError occurred. Arguments: (121, 'Remote I/O error') Traceback (most recent call last): File "./SDL_Pi_AM2315/AM2315.py", line 63, in _read_data self._device.writeList(AM2315_READREG,[0x00, 0x04]) File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/I2C.py", line 129, in writeList self._bus.write_i2c_block_data(self._address, register, data) File "build/bdist.linux-armv7l/egg/Adafruit_PureIO/smbus.py", line 294, in write_i2c_block_data self._device.write(data) IOError: [Errno 121] Remote I/O error
AM2315readCount = 0 An exception of type IOError occurred. Arguments: (121, 'Remote I/O error') Traceback (most recent call last): File "./SDL_Pi_AM2315/AM2315.py", line 63, in _read_data self._device.writeList(AM2315_READREG,[0x00, 0x04]) File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/I2C.py", line 129, in writeList self._bus.write_i2c_block_data(self._address, register, data) File "build/bdist.linux-armv7l/egg/Adafruit_PureIO/smbus.py", line 294, in write_i2c_block_data self._device.write(data) IOError: [Errno 121] Remote I/O error
AM2315readCount = 1 An exception of type IOError occurred. Arguments: (121, 'Remote I/O error') Traceback (most recent call last): File "./SDL_Pi_AM2315/AM2315.py", line 65, in _read_data tmp = self._device.readList(AM2315_READREG,8) File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/I2C.py", line 136, in readList results = self._bus.read_i2c_block_data(self._address, register, length) File "build/bdist.linux-armv7l/egg/Adafruit_PureIO/smbus.py", line 215, in read_i2c_block_data ioctl(self._device.fileno(), I2C_RDWR, request) IOError: [Errno 121] Remote I/O error
AM2315readCount = 2 >>>>>>>>>>>>> Bad AM2315 Temperature = 2892.8 >>>>>>>>>>>>> 'NoneType' object has no attribute '__getitem__' File "/usr/local/lib/python2.7/dist-packages/apscheduler/executors/base.py", line 125, in run_job retval = job.func(*job.args, **job.kwargs) File "/home/pi/SDL_Pi_GroveWeatherPi/GroveWeatherPi.py", line 1262, in sampleAndDisplay sampleWeather() File "/home/pi/SDL_Pi_GroveWeatherPi/GroveWeatherPi.py", line 1106, in sampleWeather ToutsideHumidity, ToutsideTemperature, crc_check = am2315.read_humidity_temperature_crc() File "./SDL_Pi_AM2315/AM2315.py", line 136, in read_humidity_temperature_crc self._read_data() File "./SDL_Pi_AM2315/AM2315.py", line 97, in _read_data self.humidity = ((tmp[2] << 8) | tmp[3]) / 10.0
------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-29 09:47:02.508752 ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-29 09:48:02.508793 ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-29 09:49:02.508724 ------Patting The Dog------- trying database before query query=INSERT INTO WeatherData(TimeStamp,as3935LightningCount, as3935LastInterrupt, as3935LastDistance, as3935LastStatus, currentWindSpeed, currentWindGust, totalRain, bmp180Temperature, bmp180Pressure, bmp180Altitude, bmp180SeaLevel, outsideTemperature, outsideHumidity, currentWindDirection, currentWindDirectionVoltage, insideTemperature, insideHumidity) VALUES(UTC_TIMESTAMP(), 0.000, 0.000, 0.000, "", 16.559, 58.278, 0.000, 12, 101.085, 19.667, 101.175, 10.500, 92.100, 315.000, 4.233, 11.764, 99.998) trying database query=INSERT INTO Sunlight(TimeStamp, Visible, IR, UV, UVIndex) VALUES(UTC_TIMESTAMP(), 0, 0, 0, 0.000) before query query=INSERT INTO PowerSystem(TimeStamp, batteryVoltage, batteryCurrent, solarVoltage, solarCurrent, loadVoltage, loadCurrent, batteryPower, solarPower, loadPower, batteryCharge) VALUES (UTC_TIMESTAMP (), 3.783, 228.400, 4.608, 3.200, 4.976, 158.000, 0.864, 0.015, 0.786, 48.787) ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-29 09:50:02.509130 ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-29 09:51:02.509105 ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-29 09:52:02.508868 ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-29 09:53:02.509367 ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-29 09:54:02.508692 ------Patting The Dog------- trying database before query query=INSERT INTO WeatherData(TimeStamp,as3935LightningCount, as3935LastInterrupt, as3935LastDistance, as3935LastStatus, currentWindSpeed, currentWindGust, totalRain, bmp180Temperature, bmp180Pressure, bmp180Altitude, bmp180SeaLevel, outsideTemperature, outsideHumidity, currentWindDirection, currentWindDirectionVoltage, insideTemperature, insideHumidity) VALUES(UTC_TIMESTAMP(), 0.000, 0.000, 0.000, "", 16.559, 58.278, 0.000, 12, 101.085, 19.667, 101.175, 10.500, 92.100, 315.000, 4.233, 11.764, 99.998) query=INSERT INTO Sunlight(TimeStamp, Visible, IR, UV, UVIndex) VALUES(UTC_TIMESTAMP(), 0, 0, 0, 0.000) trying database before query query=INSERT INTO PowerSystem(TimeStamp, batteryVoltage, batteryCurrent, solarVoltage, solarCurrent, loadVoltage, loadCurrent, batteryPower, solarPower, loadPower, batteryCharge) VALUES (UTC_TIMESTAMP (), 3.783, 228.400, 4.608, 3.200, 4.976, 158.000, 0.864, 0.015, 0.786, 48.787) ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-29 09:55:02.508693 ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Rain Interrupt Service Routine Rain Interrupt Service Routine Tick! The time is: 2018-11-29 09:56:02.508951 ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-29 09:57:02.509507 ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-29 09:58:02.508737 ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-29 09:59:02.508708 ------Patting The Dog------- trying database trying database before query query=INSERT INTO WeatherData(TimeStamp,as3935LightningCount, as3935LastInterrupt, as3935LastDistance, as3935LastStatus, currentWindSpeed, currentWindGust, totalRain, bmp180Temperature, bmp180Pressure, bmp180Altitude, bmp180SeaLevel, outsideTemperature, outsideHumidity, currentWindDirection, currentWindDirectionVoltage, insideTemperature, insideHumidity) VALUES(UTC_TIMESTAMP(), 0.000, 0.000, 0.000, "", 16.559, 58.278, 0.000, 12, 101.085, 19.667, 101.175, 10.500, 92.100, 315.000, 4.233, 11.764, 99.998) query=INSERT INTO Sunlight(TimeStamp, Visible, IR, UV, UVIndex) VALUES(UTC_TIMESTAMP(), 0, 0, 0, 0.000) before query query=INSERT INTO PowerSystem(TimeStamp, batteryVoltage, batteryCurrent, solarVoltage, solarCurrent, loadVoltage, loadCurrent, batteryPower, solarPower, loadPower, batteryCharge) VALUES (UTC_TIMESTAMP (), 3.783, 228.400, 4.608, 3.200, 4.976, 158.000, 0.864, 0.015, 0.786, 48.787) BarometerLightningGraph source:test days:10 ('sleeping seconds:', 0) BarometerLightningGraph running now trying database query= SELECT TimeStamp, bmp180SeaLevel, as3935LastInterrupt, as3935LastDistance FROM WeatherData where now() - interval 240 hour < TimeStamp ('count of t=', 2654) ------Patting The Dog------- currentTime=738 DEBOUNCE-count=4293 currentTime=141 DEBOUNCE-count=4313 BarometerLightningGraph finished now TemperatureHumidityGraph source:test days:10 ('sleeping seconds:', 0) TemperatureHumidityGraph running now trying database query= SELECT TimeStamp, bmp180Temperature, outsideTemperature, outsideHumidity, insideHumidity FROM WeatherData where now() - interval 240 hour < TimeStamp ('count of t=', 2654) ------Patting The Dog------- currentTime=210 DEBOUNCE-count=4376 ------Patting The Dog------- currentTime=201 DEBOUNCE-count=4394 currentTime=253 DEBOUNCE-count=4394 currentTime=306 DEBOUNCE-count=4396 currentTime=200 DEBOUNCE-count=4412 currentTime=251 DEBOUNCE-count=4412 currentTime=143 DEBOUNCE-count=4431 TemperatureHumidityGraph finished now PowerCurrentGraph source:test days:10 delay:0 ('sleeping :', 0) PowerCurrentGraph running now ------Patting The Dog------- trying database ('count of t=', 2653) ------Patting The Dog------- PowerCurrentGrapGraph finished now PowerVoltageGraph source:test days:10 delay:0 ('sleeping :', 0) PowerVoltageGraph running now trying database ('count of t=', 2653) Tick! The time is: 2018-11-29 10:00:02.506734 ------Patting The Dog------- currentTime=586 DEBOUNCE-count=4571 PowerVoltageGraph finished now ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-29 10:01:02.508759 ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-29 10:02:02.509548 ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-29 10:03:02.509083 ------Patting The Dog------- ------Patting The Dog------- -
|
|
|
Post by triggerfish on Nov 29, 2018 2:39:17 GMT -8
Killed the python process and restarted it with the rc.local command, which gives this log (stopped after some errors):
deviceID = 0x1050 visible= 0 as3935 present at 0x02 AM2315temperature= 10.5 AM2315humdity= 92.0 AM2315crc= 28080 AM2315c= 28080 outsideTemperature: 10.5 C outsideHumidity: 92.0 % crc: 0x6db0
GroveWeatherPi Solar Powered Weather Station Version 3.11 - SwitchDoc Labs
Program Started at:2018-11-29 10:49:17
---------------------- I2C Mux - TCA9545: Present BMP280: Present DS3231: Present HDC1080: Present HTU21DF: Not Present AM2315: Present ADS1015: Not Present ADS1115: Present AS3935: Present OLED: Present SunAirPlus: Present Sunlight Sensor: Present WXLink: Not Present
UseBlynk: Present UseMySQL: Present Check WLAN: Present WeatherUnderground: Present ---------------------- ----------------- SunAirPlus Sampling ----------------- ----------------- Sample and Display ----------------- ----------------- Weather Sampling ----------------- ----------------- AM2315temperature= 10.4 AM2315humdity= 92.1 AM2315crc= 27936 AM2315c= 27936 --Sending Data to WeatherUnderground-- cws=| 24.7115500755 myURL= ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=247&windspeedmph=15.44&humidity=92&tempf=50.72&dewptf=47.88&rainin=0.00&baromin=29.86&indoortempf=53.18&indoorhumidity100.00=&software=GroveWeatherPi https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=247&windspeedmph=15.44&humidity=92&tempf=50.72&dewptf=47.88&rainin=0.00&baromin=29.86&indoortempf=53.18&indoorhumidity100.00=&software=GroveWeatherPi success
GET sent ----------------- SunAirPlus Sampling ----------------- ----------------- ----------------- ----------------- Raspberry Pi= 2018-11-29 10:49:23
----------------- AM2315temperature= 10.4 AM2315humdity= 92.2 AM2315crc= 28112 AM2315c= 28112
----------------- AM2315temperature= 10.4 AM2315humdity= 92.4 AM2315crc= 27696 AM2315c= 27696
----------------- An exception of type IOError occurred. Arguments: (121, 'Remote I/O error') Traceback (most recent call last): File "./SDL_Pi_AM2315/AM2315.py", line 63, in _read_data self._device.writeList(AM2315_READREG,[0x00, 0x04]) File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/I2C.py", line 129, in writeList self._bus.write_i2c_block_data(self._address, register, data) File "build/bdist.linux-armv7l/egg/Adafruit_PureIO/smbus.py", line 294, in write_i2c_block_data self._device.write(data) IOError: [Errno 121] Remote I/O error
AM2315readCount = 0 AM2315temperature= 10.4 AM2315humdity= 92.8 AM2315crc= 24816 AM2315c= 24816 --Sending Data to WeatherUnderground-- cws=| 24.2392623185 myURL= ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=247&windspeedmph=15.15&humidity=92&tempf=50.72&dewptf=48.13&rainin=0.00&baromin=29.86&indoortempf=53.18&indoorhumidity100.00=&software=GroveWeatherPi https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=247&windspeedmph=15.15&humidity=92&tempf=50.72&dewptf=48.13&rainin=0.00&baromin=29.86&indoortempf=53.18&indoorhumidity100.00=&software=GroveWeatherPi success
GET sent ----------------- SunAirPlus Sampling ----------------- ----------------- ----------------- ----------------- Raspberry Pi= 2018-11-29 10:51:31 DS3231= 2018-11-29 10:51:30 DS3231 Temperature= 12.00 C ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ----------------- Sample and Display Done ----------------- ------Patting The Dog------- ------Patting The Dog------- ----------------- Sample and Display ----------------- ------Patting The Dog------- ----------------- Weather Sampling ----------------- ----------------- AM2315temperature= 10.4 AM2315humdity= 93.0 AM2315crc= 41041 AM2315c= 41041 --Sending Data to WeatherUnderground-- cws=| 23.521564184 myURL= ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=315&windspeedmph=14.70&humidity=93&tempf=50.72&dewptf=48.20&rainin=0.00&baromin=29.85&indoortempf=53.18&indoorhumidity100.00=&software=GroveWeatherPi https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=315&windspeedmph=14.70&humidity=93&tempf=50.72&dewptf=48.20&rainin=0.00&baromin=29.85&indoortempf=53.18&indoorhumidity100.00=&software=GroveWeatherPi success
GET sent ----------------- SunAirPlus Sampling ----------------- ----------------- ----------------- ----------------- Raspberry Pi= 2018-11-29 10:52:01 DS3231= 2018-11-29 10:52:00 DS3231 Temperature= 12.00 C ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ----------------- Sample and Display Done ----------------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-29 10:52:28.959800 ----------------- Sample and Display ----------------- ------Patting The Dog------- ----------------- Weather Sampling ----------------- ----------------- An exception of type IOError occurred. Arguments: (121, 'Remote I/O error') Traceback (most recent call last): File "./SDL_Pi_AM2315/AM2315.py", line 65, in _read_data tmp = self._device.readList(AM2315_READREG,8) File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/I2C.py", line 136, in readList results = self._bus.read_i2c_block_data(self._address, register, length) File "build/bdist.linux-armv7l/egg/Adafruit_PureIO/smbus.py", line 215, in read_i2c_block_data ioctl(self._device.fileno(), I2C_RDWR, request) IOError: [Errno 121] Remote I/O error
AM2315readCount = 0 AM2315temperature= 10.4 AM2315humdity= 92.9 AM2315crc= 41121 AM2315c= 41121 --Sending Data to WeatherUnderground-- cws=| 18.8792039269 myURL= ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=0&windspeedmph=11.80&humidity=92&tempf=50.72&dewptf=48.16&rainin=0.00&baromin=29.85&indoortempf=53.18&indoorhumidity100.00=&software=GroveWeatherPi https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=0&windspeedmph=11.80&humidity=92&tempf=50.72&dewptf=48.16&rainin=0.00&baromin=29.85&indoortempf=53.18&indoorhumidity100.00=&software=GroveWeatherPi success
GET sent ----------------- SunAirPlus Sampling ----------------- ----------------- ----------------- ----------------- Raspberry Pi= 2018-11-29 10:52:31 DS3231= 2018-11-29 10:52:30 DS3231 Temperature= 12.00 C ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ----------------- Sample and Display Done ----------------- ------Patting The Dog------- ------Patting The Dog------- ----------------- Sample and Display ----------------- ------Patting The Dog------- ----------------- Weather Sampling ----------------- ----------------- AM2315temperature= 10.4 AM2315humdity= 92.9 AM2315crc= 41121 AM2315c= 41121 --Sending Data to WeatherUnderground-- cws=| 20.800927028 myURL= ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=0&windspeedmph=13.00&humidity=92&tempf=50.72&dewptf=48.16&rainin=0.00&baromin=29.86&indoortempf=53.18&indoorhumidity100.00=&software=GroveWeatherPi https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=0&windspeedmph=13.00&humidity=92&tempf=50.72&dewptf=48.16&rainin=0.00&baromin=29.86&indoortempf=53.18&indoorhumidity100.00=&software=GroveWeatherPi success
GET sent ----------------- SunAirPlus Sampling ----------------- ----------------- ----------------- ----------------- Raspberry Pi= 2018-11-29 10:53:01 DS3231= 2018-11-29 10:53:00 DS3231 Temperature= 12.00 C ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ----------------- Sample and Display Done ----------------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-11-29 10:53:28.960769 ----------------- Sample and Display ----------------- ------Patting The Dog------- ----------------- Weather Sampling ----------------- ----------------- An exception of type IOError occurred. Arguments: (121, 'Remote I/O error') Traceback (most recent call last): File "./SDL_Pi_AM2315/AM2315.py", line 63, in _read_data self._device.writeList(AM2315_READREG,[0x00, 0x04]) File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/I2C.py", line 129, in writeList self._bus.write_i2c_block_data(self._address, register, data) File "build/bdist.linux-armv7l/egg/Adafruit_PureIO/smbus.py", line 294, in write_i2c_block_data self._device.write(data) IOError: [Errno 121] Remote I/O error
AM2315readCount = 0 An exception of type IOError occurred. Arguments: (121, 'Remote I/O error') Traceback (most recent call last): File "./SDL_Pi_AM2315/AM2315.py", line 63, in _read_data self._device.writeList(AM2315_READREG,[0x00, 0x04]) File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/I2C.py", line 129, in writeList self._bus.write_i2c_block_data(self._address, register, data) File "build/bdist.linux-armv7l/egg/Adafruit_PureIO/smbus.py", line 294, in write_i2c_block_data self._device.write(data) IOError: [Errno 121] Remote I/O error
AM2315readCount = 1 AM2315temperature= 10.4 AM2315humdity= 92.9 AM2315crc= 41121 AM2315c= 41121 --Sending Data to WeatherUnderground-- cws=| 19.9987500781 myURL= ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=247&windspeedmph=12.50&humidity=92&tempf=50.72&dewptf=48.16&rainin=0.00&baromin=29.85&indoortempf=53.18&indoorhumidity100.00=&software=GroveWeatherPi https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=247&windspeedmph=12.50&humidity=92&tempf=50.72&dewptf=48.16&rainin=0.00&baromin=29.85&indoortempf=53.18&indoorhumidity100.00=&software=GroveWeatherPi success
GET sent ----------------- SunAirPlus Sampling ----------------- ----------------- ----------------- ----------------- Raspberry Pi= 2018-11-29 10:53:31 DS3231= 2018-11-29 10:53:31 DS3231 Temperature= 12.00 C ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ----------------- Sample and Display Done ----------------- ------Patting The Dog------- ------Patting The Dog------- ----------------- Sample and Display ----------------- ------Patting The Dog------- ----------------- Weather Sampling ----------------- ----------------- AM2315temperature= 10.4 AM2315humdity= 92.9 AM2315crc= 41121 AM2315c= 41121 --Sending Data to WeatherUnderground-- cws=| 18.3214339576 myURL= ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=0&windspeedmph=11.45&humidity=92&tempf=50.72&dewptf=48.16&rainin=0.00&baromin=29.86&indoortempf=53.18&indoorhumidity100.00=&software=GroveWeatherPi https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?ID=IBADHOEV14&PASSWORD=Bl@@t&dateutc=now&winddir=0&windspeedmph=11.45&humidity=92&tempf=50.72&dewptf=48.16&rainin=0.00&baromin=29.86&indoortempf=53.18&indoorhumidity100.00=&software=GroveWeatherPi success
GET sent ----------------- SunAirPlus Sampling ----------------- ----------------- -----------------
I grepped all the AM2315 values which gives:
AM2315temperature= 10.5 AM2315humdity= 92.0 AM2315crc= 28080 AM2315c= 28080 AM2315: Present AM2315temperature= 10.4 AM2315humdity= 92.1 AM2315crc= 27936 AM2315c= 27936 AM2315temperature= 10.4 AM2315humdity= 92.2 AM2315crc= 28112 AM2315c= 28112 AM2315temperature= 10.4 AM2315humdity= 92.4 AM2315crc= 27696 AM2315c= 27696 AM2315readCount = 0 AM2315temperature= 10.4 AM2315humdity= 92.8 AM2315crc= 24816 AM2315c= 24816 AM2315temperature= 10.4 AM2315humdity= 93.0 AM2315crc= 41041 AM2315c= 41041 AM2315readCount = 0 AM2315temperature= 10.4 AM2315humdity= 92.9 AM2315crc= 41121 AM2315c= 41121 AM2315temperature= 10.4 AM2315humdity= 92.9 AM2315crc= 41121 AM2315c= 41121 AM2315readCount = 0 AM2315readCount = 1 AM2315temperature= 10.4 AM2315humdity= 92.9 AM2315crc= 41121 AM2315c= 41121 AM2315temperature= 10.4 AM2315humdity= 92.9 AM2315crc= 41121 AM2315c= 41121 AM2315temperature= 10.4 AM2315humdity= 92.9 AM2315crc= 41121 AM2315c= 41121 AM2315temperature= 10.4 AM2315humdity= 92.9 AM2315crc= 41121 AM2315c= 41121 AM2315temperature= 10.4 AM2315humdity= 92.9 AM2315crc= 41121 AM2315c= 41121 AM2315temperature= 10.4 AM2315humdity= 93.0 AM2315crc= 41041 AM2315c= 24654 AM2315readCount = 0 AM2315readCount = 1 AM2315readCount = 2 AM2315temperature= 10.4 AM2315humdity= 93.0 AM2315crc= 41041 AM2315c= 41041 AM2315temperature= 10.4 AM2315humdity= 93.0 AM2315crc= 41041 AM2315c= 41041 AM2315readCount = 0 AM2315readCount = 1 AM2315temperature= 10.4 AM2315humdity= 93.1 AM2315crc= 24576 AM2315c= 24576 AM2315temperature= 10.4 AM2315humdity= 93.0 AM2315crc= 41041 AM2315c= 41041 AM2315readCount = 0 AM2315readCount = 1 AM2315readCount = 2 AM2315temperature= 10.4 AM2315humdity= 93.1 AM2315crc= 24576 AM2315c= 24576 AM2315temperature= 10.4 AM2315humdity= 93.1 AM2315crc= 24576 AM2315c= 24576 AM2315temperature= 10.4 AM2315humdity= 93.1 AM2315crc= 24576 AM2315c= 24576 AM2315temperature= 10.4 AM2315humdity= 93.1 AM2315crc= 24576 AM2315c= 24576 AM2315temperature= 10.4 AM2315humdity= 93.1 AM2315crc= 24576 AM2315c= 24576 AM2315temperature= 10.4 AM2315humdity= 93.1 AM2315crc= 24576 AM2315c= 24576 AM2315temperature= 10.4 AM2315humdity= 93.1 AM2315crc= 24576 AM2315c= 24576 AM2315temperature= 10.4 AM2315humdity= 93.0 AM2315crc= 41041 AM2315c= 41041 AM2315readCount = 0 AM2315temperature= 10.4 AM2315humdity= 93.0 AM2315crc= 41041 AM2315c= 41041 AM2315temperature= 10.4 AM2315humdity= 92.9 AM2315crc= 41121 AM2315c= 41121 AM2315readCount = 0 AM2315readCount = 1 AM2315temperature= 10.5 AM2315humdity= 92.9 AM2315crc= 24672 AM2315c= 24672 AM2315temperature= 10.5 AM2315humdity= 92.9 AM2315crc= 24672 AM2315c= 24672 AM2315temperature= 10.5 AM2315humdity= 92.9 AM2315crc= 24672 AM2315c= 24672 AM2315temperature= 10.5 AM2315humdity= 92.9 AM2315crc= 24672 AM2315c= 24672 AM2315temperature= 10.4 AM2315humdity= 93.0 AM2315crc= 41041 AM2315c= 41041 AM2315temperature= 10.4 AM2315humdity= 93.0 AM2315crc= 41041 AM2315c= 24654 AM2315temperature= 10.4 AM2315humdity= 93.1 AM2315crc= 24576 AM2315c= 24576 AM2315temperature= 10.4 AM2315humdity= 93.1 AM2315crc= 24576 AM2315c= 24576 AM2315readCount = 0 AM2315readCount = 1 AM2315readCount = 2 AM2315temperature= 10.4 AM2315humdity= 93.2 AM2315crc= 41393 AM2315c= 41393 AM2315temperature= 10.4 AM2315humdity= 93.2 AM2315crc= 41393 AM2315c= 41393 AM2315temperature= 10.5 AM2315humdity= 93.3 AM2315crc= 41249 AM2315c= 41249 AM2315temperature= 10.4 AM2315humdity= 93.3 AM2315crc= 25056 AM2315c= 25056 AM2315readCount = 0 AM2315readCount = 1 AM2315readCount = 2 AM2315temperature= 10.5 AM2315humdity= 93.3 AM2315crc= 41249 AM2315c= 41249 AM2315temperature= 10.5 AM2315humdity= 93.2 AM2315crc= 24944 AM2315c= 24944 AM2315temperature= 10.4 AM2315humdity= 93.2 AM2315crc= 41393 AM2315c= 41393 AM2315temperature= 10.5 AM2315humdity= 93.1 AM2315crc= 41153 AM2315c= 41153 AM2315readCount = 0 AM2315temperature= 10.5 AM2315humdity= 93.1 AM2315crc= 41153 AM2315c= 41153 AM2315temperature= 10.5 AM2315humdity= 93.1 AM2315crc= 41153 AM2315c= 41153 AM2315readCount = 0 AM2315temperature= 10.5 AM2315humdity= 93.1 AM2315crc= 41153 AM2315c= 41153 AM2315temperature= 10.5 AM2315humdity= 93.1 AM2315crc= 41153 AM2315c= 41153 AM2315temperature= 10.5 AM2315humdity= 93.1 AM2315crc= 41153 AM2315c= 41153 AM2315temperature= 10.5 AM2315humdity= 93.2 AM2315crc= 24944 AM2315c= 24944 AM2315temperature= 10.5 AM2315humdity= 93.2 AM2315crc= 24944 AM2315c= 24944 AM2315temperature= 10.5 AM2315humdity= 93.3 AM2315crc= 41249 AM2315c= 41249 AM2315temperature= 10.5 AM2315humdity= 93.3 AM2315crc= 41249 AM2315c= 41249 AM2315temperature= 10.5 AM2315humdity= 93.3 AM2315crc= 41249 AM2315c= 41249 AM2315temperature= 10.5 AM2315humdity= 93.3 AM2315crc= 41249 AM2315c= 41249 AM2315temperature= 10.5 AM2315humdity= 93.2 AM2315crc= 24944 AM2315c= 24944 AM2315readCount = 0 AM2315temperature= 10.5 AM2315humdity= 93.2 AM2315crc= 24944 AM2315c= 24944 AM2315temperature= 10.5 AM2315humdity= 93.2 AM2315crc= 24944 AM2315c= 24944 AM2315temperature= 10.5 AM2315humdity= 93.3 AM2315crc= 41249 AM2315c= 41249 AM2315temperature= 10.5 AM2315humdity= 93.3 AM2315crc= 41249 AM2315c= 41249 AM2315temperature= 10.5 AM2315humdity= 93.4 AM2315crc= 41425 AM2315c= 41425 AM2315readCount = 0 AM2315readCount = 1 AM2315readCount = 3
|
|
|
Post by SDL on Nov 29, 2018 13:25:01 GMT -8
One more thing (I seem to say that a lot to you Peter). Open up the GroveWeatherPi.py file and change:
GWPDEBUG = False
to
GWPDEBUG = True
I want to see the
AM2315 Stats: (g,br,bc) (141, 0, 0)
line.
I note: You have no errors in your list. Interesting. We want to catch a failure.
BP
P.S Here is the latest from my test setup:
AM2315 Stats: (g,br,bc) (2063, 0, 0)
That's a lot of good reads.
|
|
|
Post by triggerfish on Nov 30, 2018 13:58:12 GMT -8
One more thing (I seem to say that a lot to you Peter). No problem. Anything to help narrow things down.
On the debug option. I had to reboot a couple of times to get any data to start with. The it started running and up to now this is the result:
pi@IBADHOEV14:~/SDL_Pi_GroveWeatherPi $ grep "AM2315 Stats" log/IBADHOEV14_2018-11-30_21.41.30.log AM2315 Stats: (g,br,bc) (2, 0, 0) AM2315 Stats: (g,br,bc) (3, 0, 0) AM2315 Stats: (g,br,bc) (4, 0, 0) AM2315 Stats: (g,br,bc) (5, 0, 0) AM2315 Stats: (g,br,bc) (6, 0, 0) AM2315 Stats: (g,br,bc) (7, 0, 0) AM2315 Stats: (g,br,bc) (8, 0, 0) AM2315 Stats: (g,br,bc) (8, 0, 1) AM2315 Stats: (g,br,bc) (9, 1, 1) AM2315 Stats: (g,br,bc) (10, 1, 1) AM2315 Stats: (g,br,bc) (11, 1, 1) AM2315 Stats: (g,br,bc) (12, 1, 1) AM2315 Stats: (g,br,bc) (13, 1, 1) AM2315 Stats: (g,br,bc) (14, 1, 1) AM2315 Stats: (g,br,bc) (15, 1, 1) AM2315 Stats: (g,br,bc) (16, 1, 1) AM2315 Stats: (g,br,bc) (17, 1, 1) AM2315 Stats: (g,br,bc) (18, 1, 1) AM2315 Stats: (g,br,bc) (19, 1, 1) AM2315 Stats: (g,br,bc) (20, 1, 1) AM2315 Stats: (g,br,bc) (21, 1, 1) AM2315 Stats: (g,br,bc) (22, 1, 1) AM2315 Stats: (g,br,bc) (23, 1, 1) AM2315 Stats: (g,br,bc) (24, 1, 1) AM2315 Stats: (g,br,bc) (25, 1, 1) AM2315 Stats: (g,br,bc) (26, 1, 1) AM2315 Stats: (g,br,bc) (27, 1, 1) AM2315 Stats: (g,br,bc) (27, 1, 2) AM2315 Stats: (g,br,bc) (28, 1, 2) AM2315 Stats: (g,br,bc) (29, 1, 2) AM2315 Stats: (g,br,bc) (30, 1, 2) AM2315 Stats: (g,br,bc) (31, 1, 2) AM2315 Stats: (g,br,bc) (32, 1, 2) AM2315 Stats: (g,br,bc) (33, 1, 2) AM2315 Stats: (g,br,bc) (34, 1, 2) AM2315 Stats: (g,br,bc) (35, 1, 2) AM2315 Stats: (g,br,bc) (36, 1, 2) AM2315 Stats: (g,br,bc) (36, 1, 3) AM2315 Stats: (g,br,bc) (37, 1, 3) AM2315 Stats: (g,br,bc) (38, 1, 3) AM2315 Stats: (g,br,bc) (39, 1, 3) AM2315 Stats: (g,br,bc) (40, 1, 3) AM2315 Stats: (g,br,bc) (41, 1, 3) AM2315 Stats: (g,br,bc) (42, 1, 3) AM2315 Stats: (g,br,bc) (43, 1, 3) AM2315 Stats: (g,br,bc) (44, 1, 3) AM2315 Stats: (g,br,bc) (45, 1, 3) AM2315 Stats: (g,br,bc) (46, 1, 3) AM2315 Stats: (g,br,bc) (47, 1, 3) AM2315 Stats: (g,br,bc) (48, 1, 3) AM2315 Stats: (g,br,bc) (49, 1, 3) AM2315 Stats: (g,br,bc) (49, 1, 4) AM2315 Stats: (g,br,bc) (50, 1, 4) AM2315 Stats: (g,br,bc) (51, 1, 4) AM2315 Stats: (g,br,bc) (52, 2, 4) AM2315 Stats: (g,br,bc) (53, 2, 4) AM2315 Stats: (g,br,bc) (54, 2, 4) AM2315 Stats: (g,br,bc) (55, 2, 4) AM2315 Stats: (g,br,bc) (56, 2, 4) AM2315 Stats: (g,br,bc) (57, 2, 4) AM2315 Stats: (g,br,bc) (58, 2, 4) AM2315 Stats: (g,br,bc) (59, 2, 4) AM2315 Stats: (g,br,bc) (60, 2, 4) AM2315 Stats: (g,br,bc) (61, 2, 4) AM2315 Stats: (g,br,bc) (62, 2, 4) AM2315 Stats: (g,br,bc) (63, 2, 4) AM2315 Stats: (g,br,bc) (64, 2, 4) AM2315 Stats: (g,br,bc) (65, 2, 4) And I am not fully convinced, but it looks like the station stopped reporting to wunderground with the first "br".
|
|
|
Post by doxidad on Dec 1, 2018 8:23:41 GMT -8
I'm seeing this
Started @07:23
Last AM2315 entry AM2315 Stats: (g,br,bc) (49, 0, 6)
Then ---
Tick! The time is: 2018-12-01 07:51:03.205498 ----------------- Sample and Display ----------------- ------Patting The Dog------- ----------------- Weather Sampling ----------------- ----------------- 'NoneType' object has no attribute '__getitem__' File "/usr/local/lib/python2.7/dist-packages/apscheduler/executors/base.py", line 125, in run_job retval = job.func(*job.args, **job.kwargs) File "/home/pi/SDL_Pi_GroveWeatherPi/GroveWeatherPi.py", line 1263, in sampleAndDisplay sampleWeather() File "/home/pi/SDL_Pi_GroveWeatherPi/GroveWeatherPi.py", line 1107, in sampleWeather ToutsideHumidity, ToutsideTemperature, crc_check = am2315.read_humidity_temperature_crc() File "./SDL_Pi_AM2315/AM2315.py", line 136, in read_humidity_temperature_crc self._read_data() File "./SDL_Pi_AM2315/AM2315.py", line 97, in _read_data self.humidity = ((tmp[2] << 8) | tmp[3]) / 10.0
------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2018-12-01 07:52:03.205891
Right after this happens daemon.log starts filling up with these errors every 30 seconds
Dec 1 07:52:03 wpi rc.local[309]: WARNING:apscheduler.scheduler:Execution of job "sampleAndDisplay (trigger: interval[0:00:30], next run at: 2018-12-01 07:52:03 EST)" skipped: maximum number of running instances reached (1)
is lock not getting released somewhere and blocking?
|
|