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

Resize Flash Gauges

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
Post Reply
drjoshua
Posts: 7
Joined: Thu 15 Oct 2009 7:08 pm
Weather Station: free

Resize Flash Gauges

Post by drjoshua »

I want to resize the two gauges for wind and direction made in Flash. I think they are a little too big. Which parameters in the HTML file makes my day?
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Resize Flash Gauges

Post by steve »

I'm not sure you can. In theory setting the "scale" parameter to "exactfit" and changing the width and height to use percentages ought to do it, but it doesn't seem to.
Steve
User avatar
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: Resize Flash Gauges

Post by beteljuice »

Code: Select all

<!-- This is the real time wind display. If you don't want to use it, delete everything between this comment and the next one. -->
    <div align="center">	
  	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="CumulusRealtime" width="600" height="300"
			codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
			<param name="movie" value="CumulusRealtime.swf" />
			<param name="quality" value="high" />
			<param name="wmode" value="transparent" />
            <param name='flashVars' value='interval=<#realtimeinterval>'/>
			<param name="allowScriptAccess" value="sameDomain" />
			<embed src="CumulusRealtime.swf" quality="high" wmode="transparent"
				width="600" height="300" name="CumulusRealtime" align="middle"
				play="true"
				loop="false"
				quality="high"
				allowScriptAccess="sameDomain"
                flashVars='interval=<#realtimeinterval>'
				type="application/x-shockwave-flash"
				pluginspage="http://www.adobe.com/go/getflashplayer">
			</embed>
	</object>
	</div>
<!-- end of real time display -->  
There are TWO references to the width and height paramaters, the first is obvious and at the start of the code:

id="CumulusRealtime" width="600" height="300"

The second is lower down in the <embed ....... construct.
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Resize Flash Gauges

Post by steve »

beteljuice wrote:There are TWO references to the width and height paramaters, the first is obvious and at the start of the code:

id="CumulusRealtime" width="600" height="300"

The second is lower down in the <embed ....... construct.
Indeed. Are you saying you got it work? I changed both and it didn't for me.
Steve
User avatar
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: Resize Flash Gauges

Post by beteljuice »

Very curious - although it's a long while since I messed with 'Flash'.

I can change the width to 300px, but it then creates it's own scroll bars :shock:

I didn't even know it could do that, unless it's been 'scripted' into the movie itself somehow ?
Image
......................Imagine, what you will KNOW tomorrow !
drjoshua
Posts: 7
Joined: Thu 15 Oct 2009 7:08 pm
Weather Station: free

Re: Resize Flash Gauges

Post by drjoshua »

I´ve tried all code I found at Adobes site including Scale etc. Nothing seems to work. Who have done the Flash File from the start anyway? That person may have some solution? I personally think the gauges are too big to fit slim into any web page. :-)
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Resize Flash Gauges

Post by steve »

I'm afraid I can't remember much about the application, it's a long time since I looked at it. It's my intention to release the source code when I get chance, as I don't intend doing any more with it myself. I'm a Microsoft Fanboy now ;)
Steve
drjoshua
Posts: 7
Joined: Thu 15 Oct 2009 7:08 pm
Weather Station: free

Re: Resize Flash Gauges

Post by drjoshua »

It would be nice to get my hands on the original Flash file. BUT the only thing I want to do is to resize it. In my simple world there should be a simple HTML code for the thing but...
Post Reply