Post by scarr on Jan 5, 2022 11:42:40 GMT -8
Hi,
I bought a SwitchDoc SDCard, and am in the setup process. I ran
sudo python3 testSGSSystem.py
and it worked as expected; I received the expected output in console, and the OLED board cycled through the IP Address info + Sensors.
I bought a SwitchDoc SDCard, and am in the setup process. I ran
sudo python3 testSGSSystem.py
and it worked as expected; I received the expected output in console, and the OLED board cycled through the IP Address info + Sensors.
I ran Run SGSConfigure.py per the setup instructions and everything looked correct.
However, when I start the SGS2 system via sudo python3 SGS2.py I get the following output stating that my wireless device is inactive. I can't seem to understand/find what the issue is.
pi@SwitchDocLabs:~/SDL_Pi_SmartGardenSystem2 $ sudo python3 SGS2.py
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
b''
b''
###############################################
SGS2 Version 021 - SwitchDoc Labs
###############################################
Program Started at:2022-01-05 11:08:31
SGS.JSON File exists
SGSConfiguration.JSON File exists
----------------------
Local Devices
----------------------
OLED: Not Present
BMP280: Present
DustSensor: Not Present
----------------------
Checking Wireless SGS Devices
----------------------
myURL= 10.0.0.48/setValves?params=admin,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
return= {}
grove-st-greenhouse - 137D: Not Present
MQTT: Sending CONNECT (u0, p0, wr0, wq0, wf0, c1, k60) client_id=b'SGS2'
MQTT: Received CONNACK (0, 0)
subscribing to SGS/137D
MQTT: Sending SUBSCRIBE (d0, m1) [(b'SGS/137D', 0)]
MQTT: Received SUBACK
----------------------
Plant / Sensor Counts
----------------------
Wireless Unit Count: 1
Sensor Count: 4
Valve Count: 8
----------------------
Other Smart Garden System Expansions
----------------------
Weather: Not Present
GardenCam: Not Present
SunAirPlus: Not Present
SolarMAX: Not Present
Lightning Mode: Not Present
MySQL Logging Mode: Present
UseBlynk: Not Present
----------------------
myURL= 10.0.0.48/enableMoistureSensors?params=admin,1,1,1,1
myURL= 10.0.0.48/readMoistureSensors?params=admin
-----------------
MoistureSensorStates
[{'id': '137D', 'sensorType': 'C1', 'sensorNumber': '1', 'sensorValue': '0.0', 'timestamp': datetime.datetime(2022, 1, 5, 11, 8, 35, 241447)}, {'id': '137D', 'sensorType': 'C1', 'sensorNumber': '2', 'sensorValue': '0.0', 'timestamp': datetime.datetime(2022, 1, 5, 11, 8, 35, 241464)}, {'id': '137D', 'sensorType': 'C1', 'sensorNumber': '3', 'sensorValue': '0.0', 'timestamp': datetime.datetime(2022, 1, 5, 11, 8, 35, 241473)}, {'id': '137D', 'sensorType': 'C1', 'sensorNumber': '4', 'sensorValue': '0.0', 'timestamp': datetime.datetime(2022, 1, 5, 11, 8, 35, 241482)}]
-----------------
-----------------
Scheduled Jobs
-----------------
Jobstore default:
blinkLED (trigger: interval[0:00:05], next run at: 2022-01-05 11:08:45 PST)
checkForButtons (trigger: interval[0:00:10], next run at: 2022-01-05 11:08:45 PST)
checkForAlarms (trigger: interval[0:00:15], next run at: 2022-01-05 11:08:50 PST)
manualCheck (trigger: interval[0:00:15], next run at: 2022-01-05 11:08:55 PST)
valveCheck (trigger: interval[0:01:00], next run at: 2022-01-05 11:09:40 PST)
tick (trigger: interval[0:05:00], next run at: 2022-01-05 11:13:35 PST)
readWiredSensors (trigger: interval[0:08:20], next run at: 2022-01-05 11:16:55 PST)
updateDeviceStatus (trigger: interval[0:12:00], next run at: 2022-01-05 11:20:35 PST)
-----------------
MQTT: Sending PINGREQ
MQTT: Received PINGRESP
>>>>>>Valve Check<<<<<<
Inactive Wireless Device 137D / Valve 1
Inactive Wireless Device 137D / Valve 2
Inactive Wireless Device 137D / Valve 3
Inactive Wireless Device 137D / Valve 4
Inactive Wireless Device 137D / Valve 5
Inactive Wireless Device 137D / Valve 6
Inactive Wireless Device 137D / Valve 7
Inactive Wireless Device 137D / Valve 8
nextMoistureValveSensorCheck = 2022-01-05 11:15:00
MQTT: Sending PINGREQ
MQTT: Received PINGRESP
>>>>>>Valve Check<<<<<<
Inactive Wireless Device 137D / Valve 1
Inactive Wireless Device 137D / Valve 2
Inactive Wireless Device 137D / Valve 3
Inactive Wireless Device 137D / Valve 4
Inactive Wireless Device 137D / Valve 5
Inactive Wireless Device 137D / Valve 6
Inactive Wireless Device 137D / Valve 7
Inactive Wireless Device 137D / Valve 8
MQTT: Sending PINGREQ
MQTT: Received PINGRESP
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
b''
b''
###############################################
SGS2 Version 021 - SwitchDoc Labs
###############################################
Program Started at:2022-01-05 11:08:31
SGS.JSON File exists
SGSConfiguration.JSON File exists
----------------------
Local Devices
----------------------
OLED: Not Present
BMP280: Present
DustSensor: Not Present
----------------------
Checking Wireless SGS Devices
----------------------
myURL= 10.0.0.48/setValves?params=admin,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
return= {}
grove-st-greenhouse - 137D: Not Present
MQTT: Sending CONNECT (u0, p0, wr0, wq0, wf0, c1, k60) client_id=b'SGS2'
MQTT: Received CONNACK (0, 0)
subscribing to SGS/137D
MQTT: Sending SUBSCRIBE (d0, m1) [(b'SGS/137D', 0)]
MQTT: Received SUBACK
----------------------
Plant / Sensor Counts
----------------------
Wireless Unit Count: 1
Sensor Count: 4
Valve Count: 8
----------------------
Other Smart Garden System Expansions
----------------------
Weather: Not Present
GardenCam: Not Present
SunAirPlus: Not Present
SolarMAX: Not Present
Lightning Mode: Not Present
MySQL Logging Mode: Present
UseBlynk: Not Present
----------------------
myURL= 10.0.0.48/enableMoistureSensors?params=admin,1,1,1,1
myURL= 10.0.0.48/readMoistureSensors?params=admin
-----------------
MoistureSensorStates
[{'id': '137D', 'sensorType': 'C1', 'sensorNumber': '1', 'sensorValue': '0.0', 'timestamp': datetime.datetime(2022, 1, 5, 11, 8, 35, 241447)}, {'id': '137D', 'sensorType': 'C1', 'sensorNumber': '2', 'sensorValue': '0.0', 'timestamp': datetime.datetime(2022, 1, 5, 11, 8, 35, 241464)}, {'id': '137D', 'sensorType': 'C1', 'sensorNumber': '3', 'sensorValue': '0.0', 'timestamp': datetime.datetime(2022, 1, 5, 11, 8, 35, 241473)}, {'id': '137D', 'sensorType': 'C1', 'sensorNumber': '4', 'sensorValue': '0.0', 'timestamp': datetime.datetime(2022, 1, 5, 11, 8, 35, 241482)}]
-----------------
-----------------
Scheduled Jobs
-----------------
Jobstore default:
blinkLED (trigger: interval[0:00:05], next run at: 2022-01-05 11:08:45 PST)
checkForButtons (trigger: interval[0:00:10], next run at: 2022-01-05 11:08:45 PST)
checkForAlarms (trigger: interval[0:00:15], next run at: 2022-01-05 11:08:50 PST)
manualCheck (trigger: interval[0:00:15], next run at: 2022-01-05 11:08:55 PST)
valveCheck (trigger: interval[0:01:00], next run at: 2022-01-05 11:09:40 PST)
tick (trigger: interval[0:05:00], next run at: 2022-01-05 11:13:35 PST)
readWiredSensors (trigger: interval[0:08:20], next run at: 2022-01-05 11:16:55 PST)
updateDeviceStatus (trigger: interval[0:12:00], next run at: 2022-01-05 11:20:35 PST)
-----------------
MQTT: Sending PINGREQ
MQTT: Received PINGRESP
>>>>>>Valve Check<<<<<<
Inactive Wireless Device 137D / Valve 1
Inactive Wireless Device 137D / Valve 2
Inactive Wireless Device 137D / Valve 3
Inactive Wireless Device 137D / Valve 4
Inactive Wireless Device 137D / Valve 5
Inactive Wireless Device 137D / Valve 6
Inactive Wireless Device 137D / Valve 7
Inactive Wireless Device 137D / Valve 8
nextMoistureValveSensorCheck = 2022-01-05 11:15:00
MQTT: Sending PINGREQ
MQTT: Received PINGRESP
>>>>>>Valve Check<<<<<<
Inactive Wireless Device 137D / Valve 1
Inactive Wireless Device 137D / Valve 2
Inactive Wireless Device 137D / Valve 3
Inactive Wireless Device 137D / Valve 4
Inactive Wireless Device 137D / Valve 5
Inactive Wireless Device 137D / Valve 6
Inactive Wireless Device 137D / Valve 7
Inactive Wireless Device 137D / Valve 8
MQTT: Sending PINGREQ
MQTT: Received PINGRESP