Any updates on the issue of using uploaded webcam weather images in a cumulus html template to show as the last few hours animation?
I've long ago tired of doing it myself and uploading the .swf file.
Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Displaying webcam images as slide show or animation
- MickinMoulden
- Posts: 499
- Joined: Mon 20 Dec 2010 12:12 pm
- Weather Station: WS-1081 with rain gauge mod
- Operating System: Windows 7 & 1.9.3 b1059
- Location: Palmerston, NT, Australia
- Contact:
Re: Displaying webcam images as slide show or animation
Hi Phil, looks like you know what your doing, so I'm hoping you can help.hills wrote:I use Cumulus, Yawcam and Maani xml/swf slideshow which has now been replaced, but can still be obtained from here: http://www.maani.us/xml_slideshow/
Yawcam automatically embeds the weather details from Cumulus then uploads the latest image as webcam000.jpg and in the process increments the number in the old image filenames by one, of which I have 150.
xml/swf slideshow uses an xml script to create a slideshow from the images displaying each image for 0.15 seconds.
The advantage of this system is it's completely automatic and is now quite robust. With motion detection any new images will automatically be uploaded then included in the slideshow. Secondly this system will always terminate on the current image each time it is run.
<?php
echo "<slideshow>";
$path = "./webcam/";
$dir_handle = @opendir($path) or die("Unable to open folder");
$i=0;
while (false !== ($file = readdir($dir_handle))) {
if($file == ".")
continue;
if($file == "..")
continue;
$narray[$i]=$file;
$i++;
}
rsort($narray);
for($i=0; $i<sizeof($narray)-1; $i++)
{
echo "<slide>";
echo "<image url='./webcam/$narray[$i]' duration='0.15' />";
echo "<transition type='none' />";
echo "</slide>";
}
{
echo "<slide>";
echo "<image url='./webcam/webcam000.jpg' duration='2' />";
echo "<transition type='none' />";
echo "</slide>";
}
echo " <control x='100' bar_visible='auto' />";
echo "</slideshow>";
?>
I've downloaded XML/SWF slidshow (slideshow.swf), added the code from slideshow to my .htm and added the .xml file (sample.xml), all of which are under the same folder/directory. It doesn't work. I had used the code you supplied for the .xml but have reverted to just having
Code: Select all
<slideshow> </slideshow>What I do get when I open the webpage is a black rectangle (320x240) on my white background, the page just hangs and the loading bar never goes past half way. I have seen it go orange and print something like "can't open <source>". And in Yawcam it say's
"[13:05] GET: /slideshow.swf?xml_source=sample.xml
[13:05] Error 404".
Here is the code in my .html:
Code: Select all
<!--start of xml/swf -->
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="320"
HEIGHT="240"
id="slideshow">
<PARAM NAME="movie" VALUE="slideshow.swf?xml_source=sample.xml"/>
<PARAM NAME="quality" VALUE="high" />
<PARAM NAME="bgcolor" VALUE="#000000" />
<param name="allowScriptAccess" value="sameDomain" />
<EMBED src="slideshow.swf?xml_source=sample.xml"
quality="high"
bgcolor="#000000"
WIDTH="320"
HEIGHT="240"
NAME="slideshow"
allowScriptAccess="sameDomain"
swLiveConnect="true"
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>
<!-- end of xml/swf-->
Last edited by MickinMoulden on Sat 28 Jan 2012 1:30 pm, edited 1 time in total.
-
Gina
- Posts: 1885
- Joined: Sat 21 Feb 2009 12:41 pm
- Weather Station: Nothing working ATM - making one
- Operating System: OS X, Linux Mint, Win7 & XP
- Location: Devon UK
Re: Displaying webcam images as slide show or animation
Hope you (or someone) manages to get this working
I use YawCam too, though save the files with date/time in their file name rather than a number.
Gina
Sorry, no banner - weather station out of action. Hoping to be up and running with a new home-made one soon.
Sorry, no banner - weather station out of action. Hoping to be up and running with a new home-made one soon.
- MickinMoulden
- Posts: 499
- Joined: Mon 20 Dec 2010 12:12 pm
- Weather Station: WS-1081 with rain gauge mod
- Operating System: Windows 7 & 1.9.3 b1059
- Location: Palmerston, NT, Australia
- Contact:
Re: Displaying webcam images as slide show or animation
Yes Gina, that's what I do too. I'm wanting to make a movie file of the last x hours using photo's from the motion recording in Yawcam. So the video will just contain action. Every motion activation will contain x seconds of footage.

