Sandaysoft

Support forum for Cumulus weather station software
It is currently Sun May 19, 2013 11:47 pm
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 265 posts ]  Go to page Previous  1 ... 14, 15, 16, 17, 18
Author Message
 Post subject: Re: Realtime gauges v1.0.0.3 available for download
PostPosted: Sat Feb 11, 2012 12:11 pm 
Offline
User avatar

Joined: Sun Jul 03, 2011 6:23 pm
Posts: 324
Location: Eastleigh, Hampshire, UK
Weather Station: Davis VP2 - 24hr FARS
Operating System: Windows 7 - 64 bit
gemini06720 wrote:
duke wrote:
I thought some one might be along to offer an example, thanks. ;)
Yes, but is that what you were inquiring (writing) about... :D


Yes, as apposed to the regular "skinnier" look with borders @ Cumulus Realtime

Duke

_________________
Duke

Nightingale Weather PHP
Eastleigh, Hampshire, UK


Top
 Profile  
 
 Post subject: Re: Realtime gauges v1.0.0.3 available for download
PostPosted: Sat Feb 11, 2012 3:39 pm 
Offline

Joined: Sat Dec 17, 2011 11:55 am
Posts: 139
Location: Wareham, Dorset
Weather Station: Davis Vantage Vue
Operating System: Windows 7 x64
*delete*


Top
 Profile  
 
 Post subject: Re: Realtime gauges v1.0.0.3 available for download
PostPosted: Sun Feb 12, 2012 5:41 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1797
Location: World...
Weather Station: No weather station
Operating System: No operating system
OK, Duke... ;)

This is the code you have in the template used to display the Silverlight RealTime screen:
Code:
<object data="data:application/x-silverlight," type="application/x-silverlight-2" width="100%" height="700px">
This is the code I have in the Weather-Blues template used to display the Silverlight RealTime screen:
Code:
<object data="data:application/x-silverlight," type="application/x-silverlight-2" width="832" height="890">
Through the years, I have learned not to use a percentage value for either the width or the height of any Adobe Flash or Microsoft Silverlight file formats.

832 pixels appears (at least on the different monitors I use in my home/office) to be the minimum width of the Silverlight RealTime screen - anything less will produce the navigation bar on the right side of the object. But, it is not just a matter of adjusting the width - the height must also be adjusted or navigation bars will be produced both to the right and the bottom of the object.

If you are still unsure, here is the code I use to display this Silverlight RealTime screen:
Code:
    <div id="content">
      <h2>Silverlight RealTime Weather</h2>
      <table border="0" cellpadding="10" style="padding: 20px 0 0 45px;">
        <tr>
          <td>
            <div id="errorLocation" style="font-size: small; color: gray;"></div>
            <div id="silverlightControlHost">
              <object data="data:application/x-silverlight" type="application/x-silverlight-2" width="832" height="890">
                <param name="allowHtmlPopupWindow" value="true" />
                <param name="autoUpgrade" value="true" />
                <param name="background" value="silver" />
                <param name="enableAutoZoom" value="true" />
                <param name="enableGPUAcceleration" value="true" />
                <param name="enablehtmlaccess" value="true" />
                <param name="enableNavigation" value="all" />
                <param name="maxframerate" value="60" />
                <param name="minRuntimeVersion" value="3.0" />
                <param name="onerror" value="onSilverlightError" />
                <param name="source" value="CumulusRealtime.xap?v=1.0.0.4" />
                <a target="_blank" href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
                  <img src="http://go.microsoft.com/fwlink/?LinkId=108181"
                      alt="Get Microsoft Silverlight" style="border-style: none" />
                </a>
              </object>
              <iframe style="visibility: hidden; height: 0; width: 0; border: 0"></iframe>
            </div>
          </td>
        </tr>
      </table>
    </div><!-- end id content -->


Top
 Profile  
 
 Post subject: Re: Realtime gauges v1.0.0.3 available for download
PostPosted: Sun Feb 12, 2012 10:34 am 
Offline
User avatar

Joined: Sun Jul 03, 2011 6:23 pm
Posts: 324
Location: Eastleigh, Hampshire, UK
Weather Station: Davis VP2 - 24hr FARS
Operating System: Windows 7 - 64 bit
It was on my to do list to have a sneeky look at your code today ;) .

Quote:
Through the years, I have learned not to use a percentage value for either the width or the height

I actually tried various % and px figures here and was unable to effect the width only the height. I try to stay with px as I found % can have all sorts of strange results not just with this type of application.

So what was i doing wrong? The addition of this line from you code appears to be the secret:

Quote:
<param name="enableAutoZoom" value="true" />


Quote:
832 pixels appears (at least on the different monitors I use in my home/office) to be the minimum width of the Silverlight RealTime screen

I have a maximum of 810 due to my page layout so I have a nav bar at the bottom but it looks a lot better than before
Cumulus Realtime

Perhaps there is a way to eliminate the nav bar?

Thanks for your help with this one, I wouldn't have got their on my own :bash: .

Duke

Oh.....
Blumentals
:clap:

_________________
Duke

Nightingale Weather PHP
Eastleigh, Hampshire, UK


Top
 Profile  
 
 Post subject: Re: Realtime gauges v1.0.0.3 available for download
PostPosted: Sat Feb 25, 2012 11:58 am 
Offline

Joined: Sat Jan 28, 2012 4:03 pm
Posts: 34
Location: Philippines
Weather Station: Davis Vantage Vue
Operating System: Windows 7
Just got these Silverlight realtime gauges working... It's pretty cool.

http://www.sfcweather.com/wxrealtime.php

_________________
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 265 posts ]  Go to page Previous  1 ... 14, 15, 16, 17, 18

All times are UTC


Who is online

Users browsing this forum: Buford T. Justice and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group