Post by phoenixaus on Jan 10, 2021 17:42:52 GMT -8
Hi Guys,
I have my self completely muddled.
I have one of the kickstarter SmartGardenSystem2 kits with the optional SkyWeather2 system.
I can't seem to work out the configuration around dash, Blynk and Weatherstem when using these combined on the one pi. Perhaps this is my issue and I need to configure 2 x pi's up.
To be able to use the respective Blynk apps for SmartGarden2 and SkyWeather2 you need to place the tokens in the respective config files, which is fine. To have the Skyweather2 Blynk App to work, you need to of course load skyweather2.py at start-up.
I have entered the Weatherstem serial id into both the SGSConfigure.py and SkyWeather2Configure.py
My problems are:
- Cant get Dash (SDL_Pi_SmartgardenSystem2/dash_app/index.py) to show updated weather if I start SkyWeather2.py
- If I disable SkyWeather2 from startup, then I lose the Blynk data
The SkyWeather2.JSON looks like:
any ideas? Thanks in anticipation!!!!
S
I have my self completely muddled.
I have one of the kickstarter SmartGardenSystem2 kits with the optional SkyWeather2 system.
I can't seem to work out the configuration around dash, Blynk and Weatherstem when using these combined on the one pi. Perhaps this is my issue and I need to configure 2 x pi's up.
To be able to use the respective Blynk apps for SmartGarden2 and SkyWeather2 you need to place the tokens in the respective config files, which is fine. To have the Skyweather2 Blynk App to work, you need to of course load skyweather2.py at start-up.
I have entered the Weatherstem serial id into both the SGSConfigure.py and SkyWeather2Configure.py
My problems are:
- Cant get Dash (SDL_Pi_SmartgardenSystem2/dash_app/index.py) to show updated weather if I start SkyWeather2.py
- If I disable SkyWeather2 from startup, then I lose the Blynk data
Linux SwitchDocLabs 5.4.72-v7+ #1356 SMP Thu Oct 22 13:56:54 BST 2020 armv7l
pi@SwitchDocLabs:~/SDL_Pi_SkyWeather2 $ sudo nano /etc/rc.local
GNU nano 3.2 /etc/rc.local
#!/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
cd /home/pi/SDL_Pi_SkyWeather2
nohup sudo python3 SkyWeather2.py &
cd /home/pi/SDL_Pi_SmartGardenSystem2
nohup sudo python3 SGS2.py &
cd /home/pi/SDL_Pi_SmartGardenSystem2/dash_app
nohup sudo python3 index.py &
chmod 666 nohup.out
exit 0
The SkyWeather2.JSON looks like:
{"key": "value"
"ProgramName": "SkyWeather2"
"ConfigVersion": "001"
"SWDEBUG": false
"enable_MySQL_Logging": true
"MySQL_Password": "password"
"enable_WLAN_Detection": false
"PingableRouterAddress": "192.168.1.1"
"mailUser": "yourusername"
"mailPassword": "yourmailpassword"
"notifyAddress": "you@example.com"
"fromAddress": "yourfromaddress@example.com"
"enableText": false
"textnotifyAddress": "yournumber@yourprovider"
"runLEDs": false
"SolarMAX_Present": false
"SolarMAX_Type": "LEAD"
"BMP280_Altitude_Meters": "626.0"
"Sunlight_Gain": "High"
"USEWEATHERSTEM": true
"INTERVAL_CAM_PICS__SECONDS": "60"
"STATIONKEY": "********"
"WeatherUnderground_Present": false
"WeatherUnderground_StationID": "KWXXXXX"
"WeatherUnderground_StationKey": "YYYYYY"
"USEBLYNK": true
"BLYNK_AUTH": "***********************"
"AS3935_Lightning_Config": "[2
1
3
0
3
3]"
"DustSensorSCL": "20"
"DustSensorSDA": "21"
"DustSensorPowerPin": "5"
"GPIO_Pin_PowerDrive_Sig1": "4"
"GPIO_Pin_PowerDrive_Sig2": "4"
"WATCHDOGTRIGGER": "6"
"REST_Enable": false
"Camera_Night_Enable": false
"Camera_Rotation": 0
"MQTT_Enable": false
"MQTT_Server_URL": ""
"MQTT_Port_Number": "5900"
"MQTT_Send_Seconds": "500"
"English_Metric": true}
any ideas? Thanks in anticipation!!!!
S