|
Post by Powderjockey on Jul 14, 2023 16:21:51 GMT -8
Hard to say. I'd suspect your power supply or battery. Run it off a power supply to see. BP Are these outputs correct? WeatherSenseMonitor pirack@Pi-In-A-Rack:~/SDL_Pi_WeatherSense $ sudo python3 WeatherSenseMonitor.py using updateWebConfig ----------------- WeatherSense Monitoring Software Software Version V018 ----------------- Pending jobs: readSensors (trigger: date[2023-06-29 16:57:14 MDT], pending) startMQTT (trigger: date[2023-06-29 16:57:14 MDT], pending) cleanPictures (trigger: cron[day='*', hour='3', minute='4'], pending) cleanTimeLapses (trigger: cron[day='*', hour='3', minute='10'], pending) buildTimeLapse (trigger: cron[day='*', hour='5', minute='30'], pending) readSensors (trigger: date[2023-06-29 16:57:14 MDT], pending) /usr/local/lib/python3.9/dist-packages/apscheduler/util.py:428: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html return tzinfo.localize(dt) ----------------- Scheduled Jobs
###### Read Wireless Sensors ###### ----------------- creating new MQTT instance connecting to broker
###### Read Wireless Sensors ###### /usr/lib/python3.9/subprocess.py:941: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used self.stdout = io.open(c2pread, 'rb', bufsize) Jobstore default: cleanPictures (trigger: cron[day='*', hour='3', minute='4'], next run at: 2023-06-30 03:04:00 MDT) starting 433MHz scanning cleanTimeLapses (trigger: cron[day='*', hour='3', minute='10'], next run at: 2023-06-30 03:10:00 MDT) ###### starting 433MHz scanning ###### buildTimeLapse (trigger: cron[day='*', hour='5', minute='30'], next run at: 2023-06-30 05:30:00 MDT) ----------------- Connected with result code 0 threshold = Fri Jun 16 03:04:00 2023 devices= [] threshold = Fri Jun 16 03:10:00 2023 devices= [] startime= 2023-06-29 05:00:00 endtime= 2023-06-30 05:00:00 devices= [] threshold = Sat Jun 17 03:04:00 2023 devices= [] threshold = Sat Jun 17 03:10:00 2023 devices= [] startime= 2023-06-30 05:00:00 endtime= 2023-07-01 05:00:00 devices= [] threshold = Sun Jun 18 03:04:00 2023 devices= [] threshold = Sun Jun 18 03:10:00 2023 devices= [] startime= 2023-07-01 05:00:00 endtime= 2023-07-02 05:00:00 devices= [] threshold = Mon Jun 19 03:04:00 2023 devices= [] threshold = Mon Jun 19 03:10:00 2023 devices= [] startime= 2023-07-02 05:00:00 endtime= 2023-07-03 05:00:00 devices= [] Connected with result code 0
threshold = Tue Jun 20 03:04:00 2023 devices= [] threshold = Tue Jun 20 03:10:00 2023 devices= [] startime= 2023-07-03 05:00:00 endtime= 2023-07-04 05:00:00 devices= [] threshold = Wed Jun 21 03:04:00 2023 devices= [] threshold = Wed Jun 21 03:10:00 2023 devices= [] startime= 2023-07-04 05:00:00 endtime= 2023-07-05 05:00:00 devices= [] threshold = Thu Jun 22 03:04:00 2023 devices= [] threshold = Thu Jun 22 03:10:00 2023 devices= [] startime= 2023-07-05 05:00:00 endtime= 2023-07-06 05:00:00 devices= [] threshold = Fri Jun 23 03:04:00 2023 devices= [] threshold = Fri Jun 23 03:10:00 2023 devices= [] startime= 2023-07-06 05:00:00 endtime= 2023-07-07 05:00:00 devices= [] threshold = Sat Jun 24 03:04:00 2023 devices= [] threshold = Sat Jun 24 03:10:00 2023 devices= [] startime= 2023-07-07 05:00:00 endtime= 2023-07-08 05:00:00 devices= [] threshold = Sun Jun 25 03:04:00 2023 devices= [] threshold = Sun Jun 25 03:10:00 2023 devices= [] startime= 2023-07-08 05:00:00 endtime= 2023-07-09 05:00:00 devices= [] Connected with result code 0 threshold = Mon Jun 26 03:04:00 2023 devices= [] threshold = Mon Jun 26 03:10:00 2023 devices= [] startime= 2023-07-09 05:00:00 endtime= 2023-07-10 05:00:00 devices= [] threshold = Tue Jun 27 03:04:00 2023 devices= [] threshold = Tue Jun 27 03:10:00 2023 devices= [] startime= 2023-07-10 05:00:00 endtime= 2023-07-11 05:00:00 devices= [] threshold = Wed Jun 28 03:04:00 2023 devices= [] threshold = Wed Jun 28 03:10:00 2023 devices= [] startime= 2023-07-11 05:00:00 endtime= 2023-07-12 05:00:00 devices= [] threshold = Thu Jun 29 03:04:00 2023 devices= [] threshold = Thu Jun 29 03:10:00 2023 devices= [] startime= 2023-07-12 05:00:00 endtime= 2023-07-13 05:00:00 devices= [] threshold = Fri Jun 30 03:04:00 2023 devices= [] threshold = Fri Jun 30 03:10:00 2023 devices= [] startime= 2023-07-13 05:00:00 endtime= 2023-07-14 05:00:00 devices= [] Index.py WR3P-CWSJSON= {'ID': 35236.0, 'TimeStamp': datetime.datetime(2023, 7, 14, 3, 40, 34), 'MessageID': 177078.0, 'SerialNumber': 4650.0, 'OutdoorTemperature': 13.9, 'OutdoorHumidity': 73.6, 'TotalRain': 0.0, 'SunlightVisible': 1.0, 'VisibleLightLux100': 0.0, 'WindDirection': 0.0, 'WindSpeed': 5.0, 'WindForce': 0.0, 'Noise': 40.8, 'BarometricPressure': 906.0, 'BarometricPressureSeaLevel': 1020.17, 'AQI': 33.0, 'AQI24Average': 52.5, 'PM2_5': 8.0, 'PM10': 9.0, 'CPUTemperature': 39.7, 'StringTime': '14-Jul-2023 03:40:34', 'StringTimeUnits': '', 'CalendarDayRain': 0.0, 'CalendarMonthRain': -92.7, '30DayRain': -8.6, '24HourRain': 0.0, '7DaysRain': 0.0, 'OutdoorTemperatureUnits': ' °C', 'WindSpeedUnits': ' m/s', 'TotalRainUnits': ' mm', 'CalendarDayRainUnits': ' mm', 'CalendarMonthRainUnits': ' mm', '30DayRainUnits': ' mm', '24HourRainUnits': ' mm', '7DaysRainUnits': ' mm', 'BarometricPressureSeaLevelUnits': ' hPa', 'BarometricPressureUnits': ' hPa', 'OutdoorHumidityUnits': '%', 'SunlightVisibleUnits': 'lux', 'AQIUnits': '', 'AQI24AverageUnits': '', 'WindDirectionUnits': '°'} number of Records = 2114 df= [[311, 0, 0, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [1441, 46, 0, 3, 0, 0, 0, 47], [153, 37, 0, 2, 0, 0, 0, 45], [22, 0, 0, 1, 0, 0, 0, 5]] number of records= 2114 number of Records = 0 number of Records = 0 /home/pirack/SDL_Pi_WeatherSense/dash_app/aqi_page.py:37: UserWarning:
pandas only supports SQLAlchemy connectable (engine/connection) or database string URI or sqlite3 DBAPI2 connection. Other DBAPI2 objects are not tested. Please consider using SQLAlchemy.
/home/pirack/SDL_Pi_WeatherSense/dash_app/aqi_page.py:68: UserWarning:
pandas only supports SQLAlchemy connectable (engine/connection) or database string URI or sqlite3 DBAPI2 connection. Other DBAPI2 objects are not tested. Please consider using SQLAlchemy.
/home/pirack/SDL_Pi_WeatherSense/dash_app/aqi_page.py:102: UserWarning:
pandas only supports SQLAlchemy connectable (engine/connection) or database string URI or sqlite3 DBAPI2 connection. Other DBAPI2 objects are not tested. Please consider using SQLAlchemy.
WR3P-CWSJSON= {'ID': 35236.0, 'TimeStamp': datetime.datetime(2023, 7, 14, 3, 40, 34), 'MessageID': 177078.0, 'SerialNumber': 4650.0, 'OutdoorTemperature': 13.9, 'OutdoorHumidity': 73.6, 'TotalRain': 0.0, 'SunlightVisible': 1.0, 'VisibleLightLux100': 0.0, 'WindDirection': 0.0, 'WindSpeed': 5.0, 'WindForce': 0.0, 'Noise': 40.8, 'BarometricPressure': 906.0, 'BarometricPressureSeaLevel': 1020.17, 'AQI': 33.0, 'AQI24Average': 52.5, 'PM2_5': 8.0, 'PM10': 9.0, 'CPUTemperature': 39.7, 'StringTime': '14-Jul-2023 03:40:34', 'StringTimeUnits': '', 'CalendarDayRain': 0.0, 'CalendarMonthRain': -92.7, '30DayRain': -8.6, '24HourRain': 0.0, '7DaysRain': 0.0, 'OutdoorTemperatureUnits': ' °C', 'WindSpeedUnits': ' m/s', 'TotalRainUnits': ' mm', 'CalendarDayRainUnits': ' mm', 'CalendarMonthRainUnits': ' mm', '30DayRainUnits': ' mm', '24HourRainUnits': ' mm', '7DaysRainUnits': ' mm', 'BarometricPressureSeaLevelUnits': ' hPa', 'BarometricPressureUnits': ' hPa', 'OutdoorHumidityUnits': '%', 'SunlightVisibleUnits': 'lux', 'AQIUnits': '', 'AQI24AverageUnits': '', 'WindDirectionUnits': '°'} number of Records = 2019 df= [[296, 0, 0, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [1383, 46, 0, 3, 0, 0, 0, 42], [142, 37, 0, 2, 0, 0, 0, 39], [22, 0, 0, 1, 0, 0, 0, 5]] number of records= 2019 number of Records = 0 /home/pirack/SDL_Pi_WeatherSense/dash_app/aqi_page.py:37: UserWarning:
pandas only supports SQLAlchemy connectable (engine/connection) or database string URI or sqlite3 DBAPI2 connection. Other DBAPI2 objects are not tested. Please consider using SQLAlchemy.
/home/pirack/SDL_Pi_WeatherSense/dash_app/aqi_page.py:68: UserWarning:
pandas only supports SQLAlchemy connectable (engine/connection) or database string URI or sqlite3 DBAPI2 connection. Other DBAPI2 objects are not tested. Please consider using SQLAlchemy.
/home/pirack/SDL_Pi_WeatherSense/dash_app/aqi_page.py:102: UserWarning:
pandas only supports SQLAlchemy connectable (engine/connection) or database string URI or sqlite3 DBAPI2 connection. Other DBAPI2 objects are not tested. Please consider using SQLAlchemy.
WR3P-CWSJSON= {'ID': 35236.0, 'TimeStamp': datetime.datetime(2023, 7, 14, 3, 40, 34), 'MessageID': 177078.0, 'SerialNumber': 4650.0, 'OutdoorTemperature': 13.9, 'OutdoorHumidity': 73.6, 'TotalRain': 0.0, 'SunlightVisible': 1.0, 'VisibleLightLux100': 0.0, 'WindDirection': 0.0, 'WindSpeed': 5.0, 'WindForce': 0.0, 'Noise': 40.8, 'BarometricPressure': 906.0, 'BarometricPressureSeaLevel': 1020.17, 'AQI': 33.0, 'AQI24Average': 52.5, 'PM2_5': 8.0, 'PM10': 9.0, 'CPUTemperature': 39.7, 'StringTime': '14-Jul-2023 03:40:34', 'StringTimeUnits': '', 'CalendarDayRain': 0.0, 'CalendarMonthRain': -92.7, '30DayRain': -8.6, '24HourRain': 0.0, '7DaysRain': 0.0, 'OutdoorTemperatureUnits': ' °C', 'WindSpeedUnits': ' m/s', 'TotalRainUnits': ' mm', 'CalendarDayRainUnits': ' mm', 'CalendarMonthRainUnits': ' mm', '30DayRainUnits': ' mm', '24HourRainUnits': ' mm', '7DaysRainUnits': ' mm', 'BarometricPressureSeaLevelUnits': ' hPa', 'BarometricPressureUnits': ' hPa', 'OutdoorHumidityUnits': '%', 'SunlightVisibleUnits': 'lux', 'AQIUnits': '', 'AQI24AverageUnits': '', 'WindDirectionUnits': '°'} number of Records = 1989 df= [[295, 0, 0, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [1379, 46, 0, 3, 0, 0, 0, 42], [127, 37, 0, 2, 0, 0, 0, 38], [13, 0, 0, 1, 0, 0, 0, 5]] number of records= 1989 number of Records = 0 The time of this post is 6:18 pm and tthe last post above is at 3:40 am. The Dash is not updating in the browser. And the "number of records" which = 1989, seems to be reducing all the time. It was at 2600+ at one point. What do you think is wrong?
|
|
|
Post by Powderjockey on Jun 26, 2023 18:59:05 GMT -8
pirack@Pi-In-A-Rack:~/SDL_Pi_WeatherSense $ sudo python3 WeatherSenseMonitor.py using updateWebConfig ----------------- WeatherSense Monitoring Software Software Version V018 ----------------- Pending jobs: readSensors (trigger: date[2023-06-26 20:57:52 MDT], pending) startMQTT (trigger: date[2023-06-26 20:57:52 MDT], pending) cleanPictures (trigger: cron[day='*', hour='3', minute='4'], pending) cleanTimeLapses (trigger: cron[day='*', hour='3', minute='10'], pending) buildTimeLapse (trigger: cron[day='*', hour='5', minute='30'], pending) readSensors (trigger: date[2023-06-26 20:57:52 MDT], pending) /usr/local/lib/python3.9/dist-packages/apscheduler/util.py:428: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html return tzinfo.localize(dt) -----------------
###### Read Wireless Sensors Scheduled Jobs ----------------- ###### creating new MQTT instance connecting to broker
###### Read Wireless Sensors ###### /usr/lib/python3.9/subprocess.py:941: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used self.stdout = io.open(c2pread, 'rb', bufsize) Jobstore default: cleanPictures (trigger: cron[day='*', hour='3', minute='4'], next run at: 2023-06-27 03:04:00 MDT) cleanTimeLapses (trigger: cron[day='*', hour='3', minute='10'], next run at: 2023-06-27 03:10:00 MDT) buildTimeLapse (trigger: cron[day='*', hour='5', minute='30'], next run at: 2023-06-27 05:30:00 MDT) ----------------- starting 433MHz scanning ###### starting 433MHz scanning ###### Connected with result code 0
|
|
|
Post by Powderjockey on Jun 14, 2023 15:32:20 GMT -8
The WR3 stopped on the 9th of June. We've had some great weather lately and I'm missing out on the fun, because the station stopped. I restarted the the WR3, the weathersensor.py and the index.py. Now I'm getting absolutely nothing showing up on the Dash Webpage. Is there an order in which the process should be started?
/home/pirack/SDL_Pi_WeatherSense/dash_app/aqi_page.py:37: UserWarning:
pandas only supports SQLAlchemy connectable (engine/connection) or database string URI or sqlite3 DBAPI2 connection. Other DBAPI2 objects are not tested. Please consider using SQLAlchemy.
/home/pirack/SDL_Pi_WeatherSense/dash_app/aqi_page.py:68: UserWarning:
pandas only supports SQLAlchemy connectable (engine/connection) or database string URI or sqlite3 DBAPI2 connection. Other DBAPI2 objects are not tested. Please consider using SQLAlchemy.
/home/pirack/SDL_Pi_WeatherSense/dash_app/aqi_page.py:102: UserWarning:
pandas only supports SQLAlchemy connectable (engine/connection) or database string URI or sqlite3 DBAPI2 connection. Other DBAPI2 objects are not tested. Please consider using SQLAlchemy.
WR3P-CWSJSON= {'ID': 28737.0, 'TimeStamp': datetime.datetime(2023, 6, 9, 8, 0, 44), 'MessageID': 111805.0, 'SerialNumber': 4650.0, 'OutdoorTemperature': 21.4, 'OutdoorHumidity': 43.0, 'TotalRain': 0.0, 'SunlightVisible': 1.0, 'VisibleLightLux100': 0.0, 'WindDirection': 0.0, 'WindSpeed': 7.8, 'WindForce': 1.0, 'Noise': 41.3, 'BarometricPressure': 901.0, 'BarometricPressureSeaLevel': 1014.54, 'AQI': 21.0, 'AQI24Average': 15.81, 'PM2_5': 5.0, 'PM10': 13.0, 'CPUTemperature': 35.4, 'StringTime': '09-Jun-2023 08:00:44', 'StringTimeUnits': '', 'CalendarDayRain': 0, 'CalendarMonthRain': -36.0, '30DayRain': -18.5, '24HourRain': 0, '7DaysRain': 0.0, 'OutdoorTemperatureUnits': ' °C', 'WindSpeedUnits': ' m/s', 'TotalRainUnits': ' mm', 'CalendarDayRainUnits': ' mm', 'CalendarMonthRainUnits': ' mm', '30DayRainUnits': ' mm', '24HourRainUnits': ' mm', '7DaysRainUnits': ' mm', 'BarometricPressureSeaLevelUnits': ' hPa', 'BarometricPressureUnits': ' hPa', 'OutdoorHumidityUnits': '%', 'SunlightVisibleUnits': 'lux', 'AQIUnits': '', 'AQI24AverageUnits': '', 'WindDirectionUnits': '°'} number of Records = 229 df= [[21, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [91, 0, 0, 0, 0, 0, 0, 50], [36, 0, 0, 0, 0, 0, 0, 20], [6, 0, 0, 0, 0, 0, 0, 5]] number of records= 229 number of Records = 0
|
|
|
Post by Powderjockey on Jun 13, 2023 15:23:30 GMT -8
Look at the information on the terminal program where you are running the python software. Turn debug on (look in the config file) and then copy and paste the data. It will look something like this: {"time" : "2022-12-18 13:19:53", "model" : "SwitchDoc Labs WeatherRack3", "len" : 37, "messageid" : 30039, "deviceid" : 15727, "protocolversion" : 1, "softwareversion" : 0, "weathersenseprotocol" : 20, "windspeed" : 0, "windforce" : 0, "winddirectiondegrees" : 0, "humidity" : 750, "temperature" : -12, "noise" : 412, "PM2_5" : 7, "PM10" : 8, "pressure" : 937, "hwlux" : 0, "lwlux" : 7612, "lightvalue20W" : 76, "rain" : 0, "mic" : "CRC"} BP # # # # configuration file - contains customization for WeatherSense #
from builtins import hex
SWDEBUG = True
SWVERSION = "000" # set in WeatherSenseMontor.py
# altitude of WeatherRack3 station in meters altitude_m = 990
import uuid
#configure SkyCam Remote camera #default DefaultCameraRotation = 90 SkyCamRotationArray = {} SkyCamRotationArray["DE45"] = 90 SkyCamRotationArray["3BAD"] =270 SkyCamRotationArray["26FD"] =270
# MySQL Logging and Password Information
enable_MySQL_Logging = True MySQL_Host = "localhost" MySQL_User = "root" MySQL_Password = "password" MySQL_Schema = "WeatherSenseWireless"
# 0 is English, 1 is metric English_Metric = 1
# configuration for MQTT
enable_MQTT = True MQTThost = "xxx.xxx.xxx.xxx" MQTTport = 1883 MQTTqos = 0
# configuration for WeatherRack2 # This variables tell you how often to record values for the WeahterRack2 # You get a reading about every 45 seconds and this leads to big databases # about 14,000 records a week. Remember that each FT020 Transmission is # duplicated which means you nead a value of 2X what you want # The default value is 20, which gives us about 1400 or about every 7.5 minutes.
RecordEveryXReadings = 20
# This variable controls how often to record the indoor T/H sensors # You may have a total of 8 sensors and they each transmit around 60 seconds # this will cause a possible total number of records per week of: 80,640 records # The indoor T/H sensors also send a duplicate record but the rtl_433 software # filters it out. # The default value is 10, which gives us a value about every 10 minutes # per sensor. Each sensor is counted seperately in the wirelessSensors.py
IndoorRecordEveryXReadings = 10
This is the contents of the config.py in the /SDL_Pi_WeatherSense. I don't see anything about json in the file.
|
|