Here's the branch to add your camera data to WUnderground:
github.com/brennadotdev/SDL_Pi_SkyWeather2/tree/wunderground-cameraImportant caveat: My set up does NOT currently publish weathersense data. I did my best to make sure I didn't break any existing functionality, but I've only tested this on a set up that only uses Wunderground. I've had an issue registering my device with WS, but hopefully that'll be fixed pending an email with them and I can verify things are good there too. I did update and test with the testSkyCamera.py script and the original images all look like they're doing the correct things.
Configuration in Wunderground should be as follows:
1) Log in to wunderground, and go to
www.wunderground.com/member/devices/new2) In the Outdoor Webcam drop down select FTP
3) Select the location of your camera
4) Enter a name, the type of camera, and associate it with your weather station in the drop down
5) You will get a device id, which should use the format wu-{numbers}CAM{cam number} - this will be important later, and can always be found on your device list on WU in case you close the page.
6) You will also get an upload key, which just looks like a password - this is also important later, and can also be found in your device list in WU in case you close the page
Before installing the changes, you should stop the SkyWeather2 service.
Getting the branch on to device should be something like this:
cd SDL_Pi_SkyWeather2
git remote add brennadotdev https://github.com/brennadotdev/SDL_Pi_SkyWeather2.git
git fetch brennadotdev
git checkout wunderground-camera
To configure the service run
sudo python3 SkyWeatherConfigure.py
Navigate to the configuration site how ever you would normally do so, and open the WS/WU tab. There are three new fields at the bottom to enable and configure the WU Camera. Enable the check mark and enter your device id (from step 5 above) and your upload key (from step 6 above) and Save and Quit.
Now you can re-enable the service.
There are some quirks with Wunderground, even after you configure the camera device and link it to your weather station dashboard, the URL it generates is wrong, so it doesn't actually show up on your dashboard. I've had it work eventually, sometimes, at least for my first camera.
You can build the link yourself using the data from step 5 of the instructions above, the format is
www.wunderground.com/dashboard/webcam/wu-{numbers}/{cam number}. If your camera device id is wu-98765CAM2 then the url would be
www.wunderground.com/dashboard/webcam/wu-98765/2. Note that the CAM part of the ID is not used in the url.
That should get you running!
SDL: I tried to follow the code style of each file where possible, but I admit I diverged in a couple of places. The biggest deviation is in SkyCamera.py, where I added separate functions for the various things to be done. I was trying to add in wunderground support without impacting the current weathersense code, but also allowing SkyCamera.py to be used if config.USEWEATHERSTEM is False. I'm happy to submit the branch as a PR if you're interested!