How to FTP camplus.jpg to WU
Posted: Mon Apr 13, 2020 5:43 pm
Hi all,
This is my webcam image with overlays, processed by Meteobridge Weather Camera in the Weather Network tab: -
http://content.meteobridge.com/cam/ff27 ... amplus.jpg
And this is the image uploaded from Weather Underground Camera in the same tab: -
http://www.wessexweather.net/iegeek/web ... mimage.jpg
How can I upload the camplus.jpg with all the overlays to WU rather than the unprocessed image that Meteobridge uploads? Could a php or shell script be used to be run by a cron job every 5 minutes, which gets the camplus.jpg, renames it to image.jpg and sends it to WU with the required credentials (username,password,webcam.wunderground.com)?
I have managed to run a php script every 5 minutes that saves the camplus.jpg as image.jpg to my server every 5 minutes, but have been stumped from here. Uploading this from my server every 5 minutes with FTP, or automating the whole get/rename/upload process as above, is what I would like to achieve.
FTP seems to be the way to go. Asking WU to retrieve the images from a URL no longer seems to work.
Thanks in advance,
This is my webcam image with overlays, processed by Meteobridge Weather Camera in the Weather Network tab: -
http://content.meteobridge.com/cam/ff27 ... amplus.jpg
And this is the image uploaded from Weather Underground Camera in the same tab: -
http://www.wessexweather.net/iegeek/web ... mimage.jpg
How can I upload the camplus.jpg with all the overlays to WU rather than the unprocessed image that Meteobridge uploads? Could a php or shell script be used to be run by a cron job every 5 minutes, which gets the camplus.jpg, renames it to image.jpg and sends it to WU with the required credentials (username,password,webcam.wunderground.com)?
I have managed to run a php script every 5 minutes that saves the camplus.jpg as image.jpg to my server every 5 minutes, but have been stumped from here. Uploading this from my server every 5 minutes with FTP, or automating the whole get/rename/upload process as above, is what I would like to achieve.
FTP seems to be the way to go. Asking WU to retrieve the images from a URL no longer seems to work.
Thanks in advance,