|
Post by doxidad on Oct 3, 2017 13:47:28 GMT -8
Here is a snippit from my log file. This may not be the same as the OP's problem
----------------- SunAirPlus Sampling ----------------- trying database before query query=INSERT INTO WeatherData(TimeStamp,as3935LightningCount, as3935LastInterrupt, as3935LastDistance, as3935LastStatus, currentWindSpeed, currentW indGust, totalRain, bmp180Temperature, bmp180Pressure, bmp180Altitude, bmp180SeaLevel, outsideTemperature, outsideHumidity, currentWindDirection , currentWindDirectionVoltage, insideTemperature, insideHumidity) VALUES(UTC_TIMESTAMP(), 0.000, 0.000, 0.000, "", 0.000, 0.001, 0.000, 0, 0.000, 0 .000, 0.000, 22.100, 48.200, 0.000, 0.000, 22.764, 50.195) trying database rain in past 60 minute= 0.0 before query query=INSERT INTO PowerSystem(TimeStamp, batteryVoltage, batteryCurrent, solarVoltage, solarCurrent, loadVoltage, loadCurrent, batteryPower, solarP ower, loadPower, batteryCharge) VALUES (UTC_TIMESTAMP (), 4.176, 0.000, 3.392, -0.000, 5.136, 170.400, 0.000, -0.000, 0.875, 98.936) ----------------- Weather Sampling ----------------- ----------------- [Errno 121] Remote I/O error 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 1057, in sampleSunAirPlus shuntvoltage1 = sunAirPlus.getShuntVoltage_mV(LIPO_BATTERY_CHANNEL) File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 159, in getShuntVoltage_mV value = self._getShuntVoltage_raw(channel) File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 142, in _getShuntVoltage_raw value = self._read_register_little_endian(INA3221_REG_SHUNTVOLTAGE_1+(channel -1) *2) File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 111, in _read_register_little_endian result = self._bus.read_word_data(self._addr,register) & 0xFFFF
----------------- ----------------- DS3231 Real Time Clock ----------------- Raspberry Pi= 2017-10-03 17:18:41 DS3231= 2017-10-03 17:18:41 DS3231 Temperature= 24.00 C ----------------- ----------------- BMP280 Barometer ----------------- Temperature = 23.48 C Pressure = 99.69 KPa Altitude = 136.93 m Sealevel Pressure = 103.38 KPa -----------------
|
|
kkalbaugh
New Member
Posts: 18
Raspberry Pi: Yes
|
Post by kkalbaugh on Oct 6, 2017 11:00:10 GMT -8
Sorry for the slow response, but here's my log:
deviceID = 0x1050 WXLink Reset
GroveWeatherPi Solar Powered Weather Station Version 2.96 - SwitchDoc Labs
Program Started at:2017-09-29 16:51:46
---------------------- I2C Mux - TCA9545: Present BMP280: Present DS3231: Present HDC1080: Present HTU21DF: Not Present AM2315: Present ADS1015: Not Present ADS1115: Present AS3935: Not Present OLED: Not Present SunAirPlus: Present Sunlight Sensor: Present WXLink: Not Present
UseMySQL: Not Present Check WLAN: Present WeatherUnderground: Not Present ---------------------- ----------------- SunAirPlus Sampling ----------------- ----------------- Weather Sampling ----------------- ----------------- JSON Posted: [{ "Wind Direction": 135.0 },{ "Wind Speed (Kph)": 0.0 },{ "Wind Speed (Mph)" : 0.0 },{ "Humidity" : 44.0 },{ "Temperature (f)" : 75.3800006866 },{ "Dew Point (f)" : 55.2200006866 },{ "Rain (last 60 mins)" : 0.0 },{ "Mean Barometric Pressure (sea level)" : 30.2187191764 },{ "Altitude" : 104.760149794 },{ "Internal Temp (f)" : 78.7981872559 },{ "Internal Humidity" : 41.5679931641 },{"Sunlight Visable (Lumens)" : 423.770491803 },{"Sunlight IR (Lumens)" : 3163.52459016 },{"Sunlight UV" : 555 },{"Sunlight UV Index" : 5.55 },{"Battery Voltage" : 4.20036 },{"Battery Current" : 3.6 },{"Solar Voltage" : 0.344 },{"Solar Current" : -0.0 },{"Load Voltage" : 4.952 },{"Load Current " : 226.0 },{"Battery Power" : 0.015121296 },{"Solar Power" : -0.0 },{"Load Power" : 1.119152 },{"Battery Charge" : 100.0 }] {"success":true,"device_name":"PSF Weather Station","device_id":"852","timestamp":"None Given","measurement":[{"Wind Direction":135},{"Wind Speed (Kph)":0},{"Wind Speed (Mph)":0},{"Humidity":44},{"Temperature (f)":75.3800006866},{"Dew Point (f)":55.2200006866},{"Rain (last 60 mins)":0},{"Mean Barometric Pressure (sea level)":30.2187191764},{"Altitude":104.760149794},{"Internal Temp (f)":78.7981872559},{"Internal Humidity":41.5679931641},{"Sunlight Visable (Lumens)":423.770491803},{"Sunlight IR (Lumens)":3163.52459016},{"Sunlight UV":555},{"Sunlight UV Index":5.55},{"Battery Voltage":4.20036},{"Battery Current":3.6},{"Solar Voltage":0.344},{"Solar Current":-0},{"Load Voltage":4.952},{"Load Current ":226},{"Battery Power":0.015121296},{"Solar Power":-0},{"Load Power":1.119152},{"Battery Charge":100}],"ip_address":"192.168.161.101","mac_address":"b8:27:eb:5a:ed:a2","report_interval":"300","device_serial_number":"a90fb8f7","gateway":0,"gateway_name":0} PU_Networking Payload Submitted: {'device_serial_number': '00000000a90fb8f7', 'report_interval': 300, 'access_token': 'NcI5Cdn3cAYwtd4P9TQtJKF2HTRKYFvApb1S75mm', 'measurement': '[{"Wind Direction": 135.0}, {"Wind Speed (Kph)": 0.0}, {"Wind Speed (Mph)": 0.0}, {"Humidity": 44.0}, {"Temperature (f)": 75.3800006866}, {"Dew Point (f)": 55.2200006866}, {"Rain (last 60 mins)": 0.0}, {"Mean Barometric Pressure (sea level)": 30.2187191764}, {"Altitude": 104.760149794}, {"Internal Temp (f)": 78.7981872559}, {"Internal Humidity": 41.5679931641}, {"Sunlight Visable (Lumens)": 423.770491803}, {"Sunlight IR (Lumens)": 3163.52459016}, {"Sunlight UV": 555}, {"Sunlight UV Index": 5.55}, {"Battery Voltage": 4.20036}, {"Battery Current": 3.6}, {"Solar Voltage": 0.344}, {"Solar Current": -0.0}, {"Load Voltage": 4.952}, {"Load Current ": 226.0}, {"Battery Power": 0.015121296}, {"Solar Power": -0.0}, {"Load Power": 1.119152}, {"Battery Charge": 100.0}]', 'mac_address': u'b8:27:eb:5a:ed:a2', 'device': 'PSF Weather Station', 'ip_address': '192.168.161.101'} ----------------- Scheduled Jobs ----------------- Jobstore default: patTheDog (trigger: interval[0:00:10], next run at: 2017-09-29 16:52:03 EDT) sampleWeather (trigger: interval[0:05:00], next run at: 2017-09-29 16:56:53 EDT) sampleSunAirPlus (trigger: interval[0:05:00], next run at: 2017-09-29 16:56:53 EDT) updateRain (trigger: interval[0:05:00], next run at: 2017-09-29 16:56:53 EDT) checkForShutdown (trigger: interval[0:05:00], next run at: 2017-09-29 16:56:53 EDT) rebootPi (trigger: cron[day='2-30/2', hour='0', minute='4'], next run at: 2017-09-30 00:04:00 EDT) ----------------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- rain in past 60 minute= 0.0 ----------------- SunAirPlus Sampling ----------------- ----------------- Weather Sampling ----------------- ----------------- [Errno 121] Remote I/O error 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 1081, in sampleSunAirPlus shuntvoltage1 = sunAirPlus.getShuntVoltage_mV(LIPO_BATTERY_CHANNEL) File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 156, in getShuntVoltage_mV value = self._getShuntVoltage_raw(channel) File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 139, in _getShuntVoltage_raw value = self._read_register_little_endian(INA3221_REG_SHUNTVOLTAGE_1+(channel -1) *2) File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 108, in _read_register_little_endian result = self._bus.read_word_data(self._addr,register) & 0xFFFF
JSON Posted: [{ "Wind Direction": 135.0 },{ "Wind Speed (Kph)": 0.0 },{ "Wind Speed (Mph)" : 0.0 },{ "Humidity" : 44.0999984741 },{ "Temperature (f)" : 75.5600013733 },{ "Dew Point (f)" : 55.436000824 },{ "Rain (last 60 mins)" : 0.0 },{ "Mean Barometric Pressure (sea level)" : 30.2147945106 },{ "Altitude" : 103.91921371 },{ "Internal Temp (f)" : 82.2922515869 },{ "Internal Humidity" : 41.1758422852 },{"Sunlight Visable (Lumens)" : 433.196721311 },{"Sunlight IR (Lumens)" : 3281.96721311 },{"Sunlight UV" : 562 },{"Sunlight UV Index" : 5.62 },{"Battery Voltage" : 4.20036 },{"Battery Current" : 3.6 },{"Solar Voltage" : 0.344 },{"Solar Current" : -0.0 },{"Load Voltage" : 4.952 },{"Load Current " : 226.0 },{"Battery Power" : 0.015121296 },{"Solar Power" : -0.0 },{"Load Power" : 1.119152 },{"Battery Charge" : 100.0 }] {"success":true,"device_name":"PSF Weather Station","device_id":"852","timestamp":"None Given","measurement":[{"Wind Direction":135},{"Wind Speed (Kph)":0},{"Wind Speed (Mph)":0},{"Humidity":44.0999984741},{"Temperature (f)":75.5600013733},{"Dew Point (f)":55.436000824},{"Rain (last 60 mins)":0},{"Mean Barometric Pressure (sea level)":30.2147945106},{"Altitude":103.91921371},{"Internal Temp (f)":82.2922515869},{"Internal Humidity":41.1758422852},{"Sunlight Visable (Lumens)":433.196721311},{"Sunlight IR (Lumens)":3281.96721311},{"Sunlight UV":562},{"Sunlight UV Index":5.62},{"Battery Voltage":4.20036},{"Battery Current":3.6},{"Solar Voltage":0.344},{"Solar Current":-0},{"Load Voltage":4.952},{"Load Current ":226},{"Battery Power":0.015121296},{"Solar Power":-0},{"Load Power":1.119152},{"Battery Charge":100}],"ip_address":"192.168.161.101","mac_address":"b8:27:eb:5a:ed:a2","report_interval":"300","device_serial_number":"a90fb8f7","gateway":0,"gateway_name":0} PU_Networking Payload Submitted: {'device_serial_number': '00000000a90fb8f7', 'report_interval': 300, 'access_token': 'NcI5Cdn3cAYwtd4P9TQtJKF2HTRKYFvApb1S75mm', 'measurement': '[{"Wind Direction": 135.0}, {"Wind Speed (Kph)": 0.0}, {"Wind Speed (Mph)": 0.0}, {"Humidity": 44.0999984741}, {"Temperature (f)": 75.5600013733}, {"Dew Point (f)": 55.436000824}, {"Rain (last 60 mins)": 0.0}, {"Mean Barometric Pressure (sea level)": 30.2147945106}, {"Altitude": 103.91921371}, {"Internal Temp (f)": 82.2922515869}, {"Internal Humidity": 41.1758422852}, {"Sunlight Visable (Lumens)": 433.196721311}, {"Sunlight IR (Lumens)": 3281.96721311}, {"Sunlight UV": 562}, {"Sunlight UV Index": 5.62}, {"Battery Voltage": 4.20036}, {"Battery Current": 3.6}, {"Solar Voltage": 0.344}, {"Solar Current": -0.0}, {"Load Voltage": 4.952}, {"Load Current ": 226.0}, {"Battery Power": 0.015121296}, {"Solar Power": -0.0}, {"Load Power": 1.119152}, {"Battery Charge": 100.0}]', 'mac_address': u'b8:27:eb:5a:ed:a2', 'device': 'PSF Weather Station', 'ip_address': '192.168.161.101'} ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ----------------- rain in past 60 minute= 0.0
SunAirPlus Sampling ----------------- ----------------- Weather Sampling ----------------- ----------------- [Errno 121] Remote I/O error 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 1081, in sampleSunAirPlus shuntvoltage1 = sunAirPlus.getShuntVoltage_mV(LIPO_BATTERY_CHANNEL) File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 156, in getShuntVoltage_mV value = self._getShuntVoltage_raw(channel) File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 139, in _getShuntVoltage_raw value = self._read_register_little_endian(INA3221_REG_SHUNTVOLTAGE_1+(channel -1) *2) File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 108, in _read_register_little_endian result = self._bus.read_word_data(self._addr,register) & 0xFFFF
JSON Posted: [{ "Wind Direction": 135.0 },{ "Wind Speed (Kph)": 0.0 },{ "Wind Speed (Mph)" : 0.0 },{ "Humidity" : 43.9000015259 },{ "Temperature (f)" : 75.7399986267 },{ "Dew Point (f)" : 55.543999176 },{ "Rain (last 60 mins)" : 0.0 },{ "Mean Barometric Pressure (sea level)" : 30.2223419449 },{ "Altitude" : 102.069393779 },{ "Internal Temp (f)" : 82.2922515869 },{ "Internal Humidity" : 41.1758422852 },{"Sunlight Visable (Lumens)" : 434.016393443 },{"Sunlight IR (Lumens)" : 3311.06557377 },{"Sunlight UV" : 580 },{"Sunlight UV Index" : 5.8 },{"Battery Voltage" : 4.20036 },{"Battery Current" : 3.6 },{"Solar Voltage" : 0.344 },{"Solar Current" : -0.0 },{"Load Voltage" : 4.952 },{"Load Current " : 226.0 },{"Battery Power" : 0.015121296 },{"Solar Power" : -0.0 },{"Load Power" : 1.119152 },{"Battery Charge" : 100.0 }] {"success":true,"device_name":"PSF Weather Station","device_id":"852","timestamp":"None Given","measurement":[{"Wind Direction":135},{"Wind Speed (Kph)":0},{"Wind Speed (Mph)":0},{"Humidity":43.9000015259},{"Temperature (f)":75.7399986267},{"Dew Point (f)":55.543999176},{"Rain (last 60 mins)":0},{"Mean Barometric Pressure (sea level)":30.2223419449},{"Altitude":102.069393779},{"Internal Temp (f)":82.2922515869},{"Internal Humidity":41.1758422852},{"Sunlight Visable (Lumens)":434.016393443},{"Sunlight IR (Lumens)":3311.06557377},{"Sunlight UV":580},{"Sunlight UV Index":5.8},{"Battery Voltage":4.20036},{"Battery Current":3.6},{"Solar Voltage":0.344},{"Solar Current":-0},{"Load Voltage":4.952},{"Load Current ":226},{"Battery Power":0.015121296},{"Solar Power":-0},{"Load Power":1.119152},{"Battery Charge":100}],"ip_address":"192.168.161.101","mac_address":"b8:27:eb:5a:ed:a2","report_interval":"300","device_serial_number":"a90fb8f7","gateway":0,"gateway_name":0} PU_Networking Payload Submitted: {'device_serial_number': '00000000a90fb8f7', 'report_interval': 300, 'access_token': 'NcI5Cdn3cAYwtd4P9TQtJKF2HTRKYFvApb1S75mm', 'measurement': '[{"Wind Direction": 135.0}, {"Wind Speed (Kph)": 0.0}, {"Wind Speed (Mph)": 0.0}, {"Humidity": 43.9000015259}, {"Temperature (f)": 75.7399986267}, {"Dew Point (f)": 55.543999176}, {"Rain (last 60 mins)": 0.0}, {"Mean Barometric Pressure (sea level)": 30.2223419449}, {"Altitude": 102.069393779}, {"Internal Temp (f)": 82.2922515869}, {"Internal Humidity": 41.1758422852}, {"Sunlight Visable (Lumens)": 434.016393443}, {"Sunlight IR (Lumens)": 3311.06557377}, {"Sunlight UV": 580}, {"Sunlight UV Index": 5.8}, {"Battery Voltage": 4.20036}, {"Battery Current": 3.6}, {"Solar Voltage": 0.344}, {"Solar Current": -0.0}, {"Load Voltage": 4.952}, {"Load Current ": 226.0}, {"Battery Power": 0.015121296}, {"Solar Power": -0.0}, {"Load Power": 1.119152}, {"Battery Charge": 100.0}]', 'mac_address': u'b8:27:eb:5a:ed:a2', 'device': 'PSF Weather Station', 'ip_address': '192.168.161.101'} ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ----------------- rain in past 60 minute= 0.0 The json posted part is me pushing it to a server, but I'm not using anything I2C.
|
|