|
Post by groy619 on Nov 29, 2022 5:36:29 GMT -8
Hi. I am new to Sky Weather 2 and am trying to set up a unit. I'm using a Raspberry Pi 3 Model B+, and have followed all the instructions at www.switchdoc.com/wp-content/uploads/2021/04/SkyWeather2AssemblyAndTestManual1.3.pdf. The WiFi connection seems fine. VNC viewer is working and I receive emails whenever the raspberry pi is rebooted. However, when I click on skyweather.weatherstem.com/random_name to check the dashboard, I get the following message: "Your SkyWeather device does not appear to be transmitting. Please check that it is properly connected." Could someone please instruct me on how to proceed further to solve this problem? Thanks
|
|
|
Post by SDL on Dec 1, 2022 16:09:59 GMT -8
Go through the setup on weather stem again and make sure you have done all the steps correctly. You are missing something.
BP
|
|
|
Post by groy619 on Dec 5, 2022 5:03:10 GMT -8
Go through the setup on weather stem again and make sure you have done all the steps correctly. You are missing something. BP Hi BP. I went through all the steps in www.switchdoc.com/wp-content/uploads/2021/04/SkyWeather2AssemblyAndTestManual1.3.pdf once again. From page 18 onwards. The log was always similar to the one in the guide. I made sure that the country was set to "QA" in wpa_supplicant.conf. SkyWeatherConfigure.py worked without any issues. The same issue remains. When I click on skyweather.weatherstem.com/random_name to check the dashboard, I get the following message: "Your SkyWeather device does not appear to be transmitting. Please check that it is properly connected." Should I look at anything specifically? Thanks
|
|
|
Post by Jason on Dec 5, 2022 15:24:09 GMT -8
Look at SkyWeather2.JSON and confirm USEWEATHERSTEM is set to true.
Thanks,
Jason
|
|
|
Post by groy619 on Dec 6, 2022 4:18:13 GMT -8
Look at SkyWeather2.JSON and confirm USEWEATHERSTEM is set to true. Thanks, Jason Hi Jason, It was set to true. Still doesn't work. Here's a screenshot of the configuration file. Thanks
|
|
|
Post by Jason on Dec 7, 2022 10:10:59 GMT -8
From the SkyWeather2 directory, run the following commands in a terminal window:
sudo python3 will open a Python shell. Within the Python shell:
import SkyCamera SkyCamera.takeSkyPicture() Capture the output from SkyCamera.takeSkyPicture() and share here.
Run the following command to close the Python shell:
exit() Thanks,
Jason
|
|
|
Post by johnso515 on Dec 9, 2022 5:50:13 GMT -8
Folks. I am having the same issue: When I tried the above I get this:
-------------------- SkyCam Picture Taken -------------------- mySkyCameraText= SkyWeather2 V001 09-Dec-2022 07:41:20 Wind Speed: 0.0MPH Wind Gust: 0.0MPH Temp: 32.0 F query= INSERT INTO SkyCamPictures (cameraID, picturename, picturesize, messageID, resends,resolution) VALUES('SkyCamPi', 'SkyCamPi_1_2022-12-09-07-41-20.jpg', 132530, 1, 0, 0 ) -------------------- SkyCam Package Sending -------------------- API Key: ------->Sea Level 0.0 The pastebin URL is (r.text):{"error":"Invalid API Key"}
When I run the testSkyCamera.ps script though the API Key: is populated, there is no error, and I get a valid post to WeatherStem. Any thoughts?
Thanks -jss
|
|
|
Post by Jason on Dec 9, 2022 6:36:41 GMT -8
Can you share the output of SkyWeather2/testSkyCamera.py? The test you ran basically simulated testSkyCamera.py from the Python shell so output should be consistent.
Thanks,
Jason
|
|
|
Post by johnso515 on Dec 9, 2022 9:14:54 GMT -8
Here you go:
pi@SwitchDocLabs:~/SDL_Pi_SkyWeather2 $ sudo python3 testSkyCamera.py ./SkyWeather2.JSON File exists config.STATIONKEY= << Shows correct station key >> taking SkyPicture -------------------- SkyCam Picture Taken -------------------- mySkyCameraText= SkyWeather2 V001 09-Dec-2022 07:46:02 Wind Speed: 0.0MPH Wind Gust: 0.0MPH Temp: 32.0 F query= INSERT INTO SkyCamPictures (cameraID, picturename, picturesize, messageID, resends,resolution) VALUES('SkyCamPi', 'SkyCamPi_1_2022-12-09-07-46-02.jpg', 117845, 1, 0, 0 ) -------------------- SkyCam Package Sending -------------------- API Key: << Shows valid API key >> ------->Sea Level 0.0 The pastebin URL is (r.text):{"json":"https://cdn.weatherstem.com/user_generated/skyweather/vistaalagua/latest.json","jpg":"https://cdn.weatherstem.com/user_generated/skyweather/vistaalagua/latest.jpg","internal":{"image":1670593565,"station":{"name":"Vista al Agua","handle":"vistaalagua"},"readings":"[{\"name\":\"OutsideTemperature\",\"units\":\"C\",\"value\":0},{\"units\":\"%\",\"value\":0,\"name\":\"OutsideHumidity\"},{\"units\":\"C\",\"value\":0,\"name\":\"InsideTemperature\"},{\"name\":\"InsideHumidity\",\"value\":0,\"units\":\"%\"},{\"name\":\"RainInLast60Minutes\",\"value\":0,\"units\":\"mm/h\"},{\"value\":0,\"units\":\"lux\",\"name\":\"VisibleSunlight\"},{\"name\":\"IRSunlight\",\"value\":\"0.0\",\"units\":\"lux\"},{\"units\":\"lux\",\"value\":\"0.0\",\"name\":\"UVSunlightt\"},{\"value\":0,\"units\":\"kph\",\"name\":\"WindSpeed\"},{\"name\":\"WindGust\",\"units\":\"kph\",\"value\":0},{\"name\":\"WindDirection\",\"value\":0.2,\"units\":\"degrees\"},{\"name\":\"totalRain\",\"value\":0,\"units\":\"mm\"},{\"name\":\"BarometricPressure\",\"units\":\"hPa\",\"value\":0},{\"name\":\"Altitude\",\"units\":\"m\",\"value\":0},{\"units\":\"hPa\",\"value\":0,\"name\":\"SeaLevelPressure\"},{\"units\":\"\",\"value\":\"Rising\",\"name\":\"BarometricTrend\"},{\"value\":0,\"units\":\"AQI\",\"name\":\"OutdoorAirQuality\"}]","record":1670593565}} sending SkyCamera -------------------- SkyCam Package Sending -------------------- API Key: << Shows valid API Key >> ------->Sea Level 0.0 The pastebin URL is (r.text):{"jpg":"https://cdn.weatherstem.com/user_generated/skyweather/vistaalagua/latest.jpg","json":"https://cdn.weatherstem.com/user_generated/skyweather/vistaalagua/latest.json","internal":{"station":{"handle":"vistaalagua","name":"Vista al Agua"},"readings":"[{\"value\":0,\"units\":\"C\",\"name\":\"OutsideTemperature\"},{\"value\":0,\"units\":\"%\",\"name\":\"OutsideHumidity\"},{\"name\":\"InsideTemperature\",\"value\":0,\"units\":\"C\"},{\"name\":\"InsideHumidity\",\"units\":\"%\",\"value\":0},{\"name\":\"RainInLast60Minutes\",\"units\":\"mm/h\",\"value\":0},{\"name\":\"VisibleSunlight\",\"value\":0,\"units\":\"lux\"},{\"units\":\"lux\",\"value\":\"0.0\",\"name\":\"IRSunlight\"},{\"name\":\"UVSunlightt\",\"value\":\"0.0\",\"units\":\"lux\"},{\"units\":\"kph\",\"value\":0,\"name\":\"WindSpeed\"},{\"name\":\"WindGust\",\"units\":\"kph\",\"value\":0},{\"units\":\"degrees\",\"value\":0.2,\"name\":\"WindDirection\"},{\"units\":\"mm\",\"value\":0,\"name\":\"totalRain\"},{\"units\":\"hPa\",\"value\":0,\"name\":\"BarometricPressure\"},{\"value\":0,\"units\":\"m\",\"name\":\"Altitude\"},{\"units\":\"hPa\",\"value\":0,\"name\":\"SeaLevelPressure\"},{\"name\":\"BarometricTrend\",\"value\":\"Rising\",\"units\":\"\"},{\"name\":\"OutdoorAirQuality\",\"units\":\"AQI\",\"value\":0}]","image":1670593566,"record":1670593566}}
No succesful updates to WeatherStem ..
-jss
|
|
|
Post by Jason on Dec 9, 2022 9:26:50 GMT -8
I'm starting to think your problem is on the WeatherSTEM end. Can you confirm your API key matches exactly what was setup for your station at skyweather.weatherstem.com ? Thanks, Jason
|
|
|
Post by johnso515 on Dec 9, 2022 10:49:47 GMT -8
Very Odd: The API key that is listed on the weatherstem site is different both in value and format: They list an 8 char API key and a 32 char Scholar access key, niether one of which maches what is shown when I run the testSkyCamera.py.
Is it possible that they changed it on their end as it was working fine a week or so ago? And where do I change the API key on the SkyWeather side?
|
|
|
Post by Jason on Dec 9, 2022 11:45:15 GMT -8
I only have the eight character API key so can't speak to the 32 character Scholar access key. I'll defer to SDL on the latter key and also on whether or not WeatherSTEM might've made changes on their end. I can answer the question regarding the API key change. You have two choices, one that SDL DOES NOT recommend which is to edit the SkyWeather2.JSON file directly. The other is to run the command sudo python3 SkyWeather2Configure.py from a terminal window in the SkyWeather2 folder. You'll need to open a browser and navigate to the address of the RPi using port 8001. For example, if you are running the script on the RPi with a desktop loaded, you'd navigate the browser to . If you're running the RPi headless, you'd navigate the browser to the remote IP address on port 8001 such as 192.168.0.235:8001. Make sure you save your changes in the browser! Thanks, Jason
|
|
|
Post by johnso515 on Dec 9, 2022 12:51:52 GMT -8
Hmmn. I dont have a SkyWeather2Configure.py file. I do have SkyWeatherConfigure.py. But when I run it I dont see where I can update the API Key. Under the WS-WU tab I have a field for the Station Key, The interval between pictures, and an "Enable" check box. Am I missing something?
-jss
|
|
|
Post by Jason on Dec 9, 2022 13:05:12 GMT -8
Ah sorry...SkyWeatherConfigure.py is correct. The station key in the WS-WU tab is where the eight character string you should've received from SDL as part of the kit needs to be inputted. Once you input and click save, the SkyWeather2.JSON file will be updated with the value you inputted.
Thanks,
Jason
|
|
|
Post by johnso515 on Dec 9, 2022 13:31:16 GMT -8
Ok. Unclear on next steps. The value I have in my config file is the one that I was provided on setup. It is also what is shown as the Station Key on the WeatherStem page. I can change the StationKey I have listed in my config to the API Key listed on the the Manage My SkyWeather Devices page. I'll let you know what happens.
|
|