Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How setup Weather Radar
#1
Hello.
I don't get on here too much but I can't stand staring at the blank spot on my touch screen where my radar used to be any more. It hasn't worked for a while now (prob a year). I recently updated cqc and I just need to get it fixed. Its been so long that I'm very rusty with navigating cqc. I'm not a programer or anything fancy I just stumbled through until I figured things out.

So I was hoping that some one could either give me a quick how to with examples of the code i need to use or if something like that exists point me in the right direction.

I really appreciate any help

Thanks
HAI OmniProII, CQC, GC-100,2 CAV6.6,Denon 2308ci, PDP5080
Reply
#2
Just put this web page on the CQC webserver, modify the var's for you screen size, lat, long etc. And call it from a web widget. If you don't see anything, you need to get it working in Internet explorer on the client running the IV first, adjust IE security settings, etc.

Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script type="text/javascript">
var parameters = new Array();
var width = 0;
var height = 0;
var viewportwidth = 0;
var viewportheight = 0;
var xoffset = 0;
var yoffset = 0;
var xmodify = 0;
var ymodify = 0;

function getParameters()
{
    var query = window.location.search.substring(1);
    var parms = query.split('&');
    for (var i=0; i<parms.length; i++)
    {
        var pos = parms[i].indexOf('=');
        if (pos > 0)
        {
            var key = parms[i].substring(0,pos);
            var val = parms[i].substring(pos+1);
            parameters[key] = val;
        }
    }
}
parameters['layer']='radar';
parameters['zoom']='8';
parameters['base']='h';
parameters['lat']='45.783';
parameters['long']='-95.773';
parameters['width']='835';
parameters['height']='490';
parameters['animate']='true';
parameters['border']='false';
parameters['gadgets']='true';

getParameters();

width = parseInt(parameters['width']);
height = parseInt(parameters['height']);
viewportwidth = width;
viewportheight = height;

if(parameters['border'] =='false')
{
    xmodify = 13;
    ymodify = 13;
}

if(parameters['gadgets'] == 'false')
{
    xmodify = 43;
    ymodify = 82;
}

width = width+xmodify;
height = height+ymodify
viewportwidth = width+xmodify;
viewportheight = height+ymodify;
xoffset = -xmodify;
yoffset = -ymodify;

</script>
</head>

<style type="text/css">

body
{
  overflow: hidden;
  padding: 0px;
  margin: 0px;
}
</style>


<body>
<script>document.write('<div style="position:relative;left:'+xoffset+';top:'+yoffset+';"><object id ="radar" width="'+width+'" height="'+height+'" border="0" hspace="0"><embed src="http://image.weather.com/web/flash/FMMain.swf?lat='+parameters['lat']+'&long='+parameters['long']+'&initialWeatherLayerType='+parameters['layer']+'&viewPortWidth='+viewportwidth+'&viewPortHeight='+viewportheight+'&initialZoomLevel='+parameters['zoom']+'&wxAnimateOnStart='+parameters['animate']+'&baseMap='+parameters['base']+'" width="'+width+'" height="'+height+'"></embed></object></div>')</script>
</body>
</html>
Wuench
My Home Theater/Automation Website

[THREAD=5957]BlueGlass CQC Config[/THREAD]
[THREAD=10624]Wuench's CQC Drivers[/THREAD]
Reply
#3
Thanks for the quick response!!

I'll try this when I get home.

Cheers
HAI OmniProII, CQC, GC-100,2 CAV6.6,Denon 2308ci, PDP5080
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  iTunes Setup barbourm 12 4,125 01-12-2020, 06:01 PM
Last Post: Dean Roddey
  CQC weather zane 5 3,755 10-03-2017, 10:37 AM
Last Post: Dean Roddey
  Modifying autogen thermostat setup for RCS royalj7 5 3,405 09-18-2015, 01:34 PM
Last Post: Dean Roddey
  Weather royalj7 2 1,904 09-13-2015, 09:50 AM
Last Post: Dean Roddey
  CQC install setup question ellisr63 3 3,532 05-03-2014, 06:03 AM
Last Post: Dean Roddey
  Custom Weather Icons ControlFreak 6 4,179 04-05-2014, 03:55 PM
Last Post: Dean Roddey
  Omni setup question Dean Roddey 11 6,317 02-10-2014, 12:13 PM
Last Post: Dean Roddey
  How TO: Australia based weather radar jdmevo123 0 3,477 12-02-2013, 03:52 PM
Last Post: jdmevo123
  Setup suggestions Tin Turtle 4 3,468 11-25-2013, 01:17 AM
Last Post: Dean Roddey
  New Audio setup rtarver 8 4,262 06-25-2012, 10:57 AM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)