Yes, I got them loaded by using Raspban's GUI to Make the RPi discoverable, launched scanBluetooth.py, and Added the devices one-at-a-time from Raspbian's GUI. The GUI errored out, but the sensor's got loaded by scanBluetooth.py. I was still unable to get the sensors attributed to an extender though. I did that using phpMyAdmin, but I still have no data coming in. I will PM the JSON files. Thank you, ~S
Q: Do you have your SG3 Extender up and running and close enough to see the bluetooth sensors? Per our discussion, I have centered them around 1M from the extender, (this is the one that I'm using to run the hydroponics as well), but I have them dispersed at different distances around the house. I'm letting each test run for an average of 2 hours. (Min = 30 minutes, Max = 24 hrs)
Q: Are you running SG3.py? Yes. I am rebooting around 3x/day as I test things, and have SG3.py set in rc.conf using the instructions that I had used to get SkyWeather to run on boot.
My copy (not sure if I need to chmod more than once, but not sure where to put it if I only need one. I figured that it would hurt to run chmod the same way several times): #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing.
# Print the IP address _IP=$(hostname -I) || true if [ "$_IP" ]; then printf "My IP address is %s\n" "$_IP" fi
In order to have SkyWeather2 and the dash_app start up on boot of the Raspberry Pi, add the following lines to the /etc/rc.local file using nano or your favorite text editor: cd /home/pi/SDL_Pi_SkyWeather2 nohup sudo python3 SkyWeather2.py & chmod 666 nohup.out cd dash_app nohup sudo python3 index.py & chmod 666 nohup.out If you have the SDL SD Card these lines may be present in the /etc/rc.local file commented out.
It turns out that there was a V problem with my RPi's Power Supply. I had already turned it off many times, and even unplugged it from the RPi side. The Pi never gave the "Lightning Bolt" symbol to let me know that it was running low on V, but when I tested it it was only putting out 4.5V. (I'm using an RPi 4B w/ a USB powered external drive, a fancy camera attached to SLI, HDMI mini monitor connection, 14 bluetooth connections and a wrireless kb dongle. I'm asking a lot from a an RPi's power regulation abilities.). I unplugged from the wall-side, let it sit for 0.5hrs, then plugged it in, and the first 6 sensors started working! (V then measured a proper 5.1V from the USB C plug)
I unwrapped the other 8 sensors that came in the mail yesterday, and tried to isolate what was working. I found that I don't need to make my RPi discoverable.
Steps to add:
1) unwrap and "turn on" all new sensors.
2) On the RPi, open CLI and run "scanBluetooth.py". It hung here every time until I went to the next step.
3) Go to the RPi Desktop, and "Add a Bluetooth device" from the bluetooth icon in the taskbar.
4) The CLI will register at least 1 device, possibly more, then the program will need to be run again.
5) cycle back to step 2 until all sensors are added.
6) Launch SDL_Pi_SmartGarden3/SG3,py and SDL_Pi_SmartGarden3/index.py (eg; sudo python3 SG3.py)
7) Go to http:// Your_Pi's_IP_Address:8010
8) Go to SG3 Status and write down the ID Number of your extender, you'll need that later. Go ahead and leave this running so that you can come back to it.
9) Launch SDL_Pi_SmartGarden3/SG3Configure.py
10) Check to make sure that the sensors are showing here, and add names to each. At this point, I was still unable to join them to either extender though.
11) Using a browser, go to http:// Your_Pi's_IP_Address/phpMyAdmin
12) Unless it's been changed the login is "root" and the password is "password". (Change that later using the same interface, but you will need to change that in the configuration as well, so don't do it until you understand how.)
13) On the left, expand SmartGarden3 and select "BluetoothSensors". You should see a list of your sensors now.
14) At the Left in each row, go into "Edit", and in "assignedwirelessid" enter the ID Number of your extender from steps 6-8. After you have entered each, scroll all the way to the bottom, hit "Go", and do it again for the next sensor.
15) When you have added them all, go to the top-left of the screen and locate the "house" icon. to the right of that by one, is a door & arrow. Hit that to log out, then close the tab.
16) At this point, everything is added, and I just had to wait. I added 8 last night, and they slowly "went live" one-or-two-at-a-time. I could tell because the light red background turned to darker red for each that connected.
17) For some reason, even waiting overnight, I was unable to get the last 6 to join, but when I changed them to my other extender, they all came in at-once w/in a few minutes.
18) I put one in a glass of water and one under a light, then waited for about 10 minutes until the readings started showing up and the colors changed for the one in the water.
At this point I felt like a reboot was in order, and everything came back very slowly this time, but came back given time. I figured that I should test the boot time again to see if it was an issue, but the next boot was pretty normal.
Good luck to anyone using these instructions, and thank you very much for the help to BP.
Excellent instructions! Thank you from everybody. I NEVER suspected your power supply in this situation, but I will suggest from now on. The Pi gets really flaky with a marginal (and 4.5V is VERY marginal -below the recommend 4.7V (think +/-5%) ) and with all your devices, I'll be it goes under 4.5V sometimes.
The low power supply will affect EVERYTHING.
BTW, there is a bug in V060 of the SG3 Extender software (that will be fixed and uploaded to the OTA server later today) that prevents more than 8 sensors on an extender when the limit should be 16 in the default software.