I wanted my weather cam to show more of the weather conditions, and less of the surrounding area. This meant physically turning the webcam into portrait mode, of course the saved images are still displayed in landscape so image is laid on it's side.
Found a javascript utility that manipulates the images http://www.swfir.com/ browser needs to be flash enabled.
Demo of it working at http://www.imagezoom.co.uk/weather/viewcam.htm (note this demo site is only updated once per day).
Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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
Useful webcam code
- RCE
- Posts: 106
- Joined: Sat 26 Dec 2009 7:59 am
- Weather Station: WH1080
- Operating System: Vista
- Location: Sheffield UK
Useful webcam code
====
Alan
Alan
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: Useful webcam code
Does your server support php ?
Assuming a .jpg picture source:
cam.php
In your html the code becomes <img src="cam.php" .... etc. />
Assuming a .jpg picture source:
cam.php
Code: Select all
<?php
// cam.php
// File and rotation
$filename = 'test.jpg';
$degrees = 90; // anticlockwise or -90 or 270 for clockwise
// Content type
header('Content-type: image/jpeg');
// Load
$source = imagecreatefromjpeg($filename);
// Rotate
$rotate = imagerotate($source, $degrees, 0);
// Output
imagejpeg($rotate);
imagedestroy($source);
imagedestroy($rotate);
?>
......................Imagine, what you will KNOW tomorrow !