Post by forrest on Feb 10, 2023 10:15:34 GMT -8
Hi,
I finally got system all lined out and working ok but for one thing.
(I do think you should add to instructions that it may take 2 hours for the sensor to be recognized the the scan routine)
I cannot assign Bluetooth Sensors using SG3Configure.py.
When I select to assign one of the sensors, I can name it and save the name ok. And I can select the Extender from the pull down menu OK. But it immediately returns without changing anything. Do I need to change it directly in the database table?
pi@SwitchDocLabs:~/SDL_Pi_SmartGarden3 $ sudo python3 SG3Configure.py
SG3Configure.py:27: DeprecationWarning: AppURLopener style of invoking requests is deprecated. Use newer urlopen functions/methods
myURLOpener = AppURLopener()
remi.server INFO Started httpserver
remi.server.ws INFO connection established: ('127.0.0.1', 51772)
127.0.0.1 - - [10/Feb/2023 12:07:24] "HEAD / HTTP/1.1" 200 -
remi.request INFO built UI (path=/)
SGS.JSON File exists SGS
SGSConfiguration.JSON File exists
query= SELECT * FROM BluetoothSensors
Myrecords= ((1, datetime.datetime(2023, 2, 9, 7, 26, 29), 'C4:7C::6D:77:A6', '77:A6', None, 'BTSensor1'), (2, datetime.datetime(2023, 2, 9, 10, 1, 5), 'C4:7C::6D:7A:59', '7A:59', None, 'BTSensor2'), (3, datetime.datetime(2023, 2, 9, 12, 3, 24), 'C4:7C::6D:77:86', '77:86', None, 'BTSensor3'), (4, datetime.datetime(2023, 2, 9, 16, 57, 5), 'C4:7C::6D:7A:40', '7A:40', None, 'BTSensor4'))
record= (1, datetime.datetime(2023, 2, 9, 7, 26, 29), 'C4:7C::6D:77:A6', '77:A6', None, 'BTSensor1')
record= (2, datetime.datetime(2023, 2, 9, 10, 1, 5), 'C4:7C::6D:7A:59', '7A:59', None, 'BTSensor2')
record= (3, datetime.datetime(2023, 2, 9, 12, 3, 24), 'C4:7C::6D:77:86', '77:86', None, 'BTSensor3')
record= (4, datetime.datetime(2023, 2, 9, 16, 57, 5), 'C4:7C::6D:7A:40', '7A:40', None, 'BTSensor4')
pre listView2 items= (' / 2DD9 / 192.168.1.140',)
query= SELECT * FROM BluetoothSensors
btitem count= 4
query= SELECT * FROM BluetoothSensors
wireless= {'return_value': 0, 'id': '2DD9', 'name': '', 'ipaddress': '192.168.1.140', 'hardware': 'esp32', 'hydroponicsmode': 'false', 'return_string': '2DD9,1,1,1,1,1,1,1,1,0,062', 'connected': True, 'hydroponics_temperature': 'false', 'hydroponics_tds': 'false', 'hydroponics_ph': 'false', 'hydroponics_turbidity': 'false', 'hydroponics_level': 'false'}
btitem count= 4
127.0.0.1 - - [10/Feb/2023 12:07:25] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [10/Feb/2023 12:07:25] "GET /2993798704/get_image_data?update_index=1676052444309343 HTTP/1.1" 200 -
remi.server.ws INFO connection established: ('127.0.0.1', 51782)
remi.server.ws INFO handshake complete
Thanks,
Forrest
I finally got system all lined out and working ok but for one thing.
(I do think you should add to instructions that it may take 2 hours for the sensor to be recognized the the scan routine)
I cannot assign Bluetooth Sensors using SG3Configure.py.
When I select to assign one of the sensors, I can name it and save the name ok. And I can select the Extender from the pull down menu OK. But it immediately returns without changing anything. Do I need to change it directly in the database table?
pi@SwitchDocLabs:~/SDL_Pi_SmartGarden3 $ sudo python3 SG3Configure.py
SG3Configure.py:27: DeprecationWarning: AppURLopener style of invoking requests is deprecated. Use newer urlopen functions/methods
myURLOpener = AppURLopener()
remi.server INFO Started httpserver
remi.server.ws INFO connection established: ('127.0.0.1', 51772)
127.0.0.1 - - [10/Feb/2023 12:07:24] "HEAD / HTTP/1.1" 200 -
remi.request INFO built UI (path=/)
SGS.JSON File exists SGS
SGSConfiguration.JSON File exists
query= SELECT * FROM BluetoothSensors
Myrecords= ((1, datetime.datetime(2023, 2, 9, 7, 26, 29), 'C4:7C::6D:77:A6', '77:A6', None, 'BTSensor1'), (2, datetime.datetime(2023, 2, 9, 10, 1, 5), 'C4:7C::6D:7A:59', '7A:59', None, 'BTSensor2'), (3, datetime.datetime(2023, 2, 9, 12, 3, 24), 'C4:7C::6D:77:86', '77:86', None, 'BTSensor3'), (4, datetime.datetime(2023, 2, 9, 16, 57, 5), 'C4:7C::6D:7A:40', '7A:40', None, 'BTSensor4'))
record= (1, datetime.datetime(2023, 2, 9, 7, 26, 29), 'C4:7C::6D:77:A6', '77:A6', None, 'BTSensor1')
record= (2, datetime.datetime(2023, 2, 9, 10, 1, 5), 'C4:7C::6D:7A:59', '7A:59', None, 'BTSensor2')
record= (3, datetime.datetime(2023, 2, 9, 12, 3, 24), 'C4:7C::6D:77:86', '77:86', None, 'BTSensor3')
record= (4, datetime.datetime(2023, 2, 9, 16, 57, 5), 'C4:7C::6D:7A:40', '7A:40', None, 'BTSensor4')
pre listView2 items= (' / 2DD9 / 192.168.1.140',)
query= SELECT * FROM BluetoothSensors
btitem count= 4
query= SELECT * FROM BluetoothSensors
wireless= {'return_value': 0, 'id': '2DD9', 'name': '', 'ipaddress': '192.168.1.140', 'hardware': 'esp32', 'hydroponicsmode': 'false', 'return_string': '2DD9,1,1,1,1,1,1,1,1,0,062', 'connected': True, 'hydroponics_temperature': 'false', 'hydroponics_tds': 'false', 'hydroponics_ph': 'false', 'hydroponics_turbidity': 'false', 'hydroponics_level': 'false'}
btitem count= 4
127.0.0.1 - - [10/Feb/2023 12:07:25] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [10/Feb/2023 12:07:25] "GET /2993798704/get_image_data?update_index=1676052444309343 HTTP/1.1" 200 -
remi.server.ws INFO connection established: ('127.0.0.1', 51782)
remi.server.ws INFO handshake complete
Thanks,
Forrest