PDA

View Full Version : Weather and the Precip Map


bradishm
03-23-2006, 09:42 AM
IVB-

I imported both the Woodpanel Weather and Precip Map skins (is that the right word?). With your help I got the weather working (Thanks again!). When I hit the Pricp map button I get (after a delay) "action canceled" and "Internet Explorer was unable to link to the Web page you requested."

I don't have other skins or drivers loaded....Thanks

mike

IVB
03-23-2006, 09:55 AM
First, some theory on how that works, then how to fix it for you. I think you found another deficiency in either the zipfile and the install doc. I just added it recently to the zip, so you're probably the first one actually using it.

- Open up the template in the Interface Designer. Move the mouse over the center where the radar page should show. What you'll notice is an invisible "widget". Double-click on it, you'll notice that it's a web browser widget with a URL in it. That URL is actually just a local .html file stored somewhere on your PC.

1) I may have forgotten to put that precipitation_radar.html file in the zip. Check that - if it is in there, put it somewhere on your master server.

- Next thing you'll do is to open up that html file in notepad. You'll notice that it's actually just a link to a WWW url that has my local weather. You need to find a website that shows your local radar. I think accuweather.com does this. Use IE to find a website, enter in your zip, get your local radar up, then copy that URL to the appropriate spot in the precip_radar.html file. IIRC, it's only a few lines long, so it should be obvious where to put it. If not, let me know.

That's it. I have a local traffic-cam page setup the same exact way - no rocket science here, just CQC displaying a specific WWW page. For me, sfgate.com has local live traffic-cams, so I paint www.sfgate.com/traffic

bradishm
03-23-2006, 10:53 PM
Why do I need to have a saved html file and ref that vs. just pasting the link? Which is how you did the SFGate site.

Also, can you give me the precip page you are using? I want to compare it to what I've figured out.

Thanks

mike

IVB
03-23-2006, 11:01 PM
Why do I need to have a saved html file and ref that vs. just pasting the link? Which is how you did the SFGate site.

Also, can you give me the precip page you are using? I want to compare it to what I've figured out.

Thanks

mike

formatting, but i haven't been able to figure that part out. Here's what I use:
<html>
<header>
</header>
<body scroll="no" bgcolor=black>
<center>
http://radar.wunderground.com/data/nids/MUX19_0_t.gif?t=1140384865
</body>
</html>



here's another one i got from someone
<html>
<header>
</header>
<body scroll="no">
<center>
<table border="0" cellpadding="0" cellspacing="0" align="top">
<tr><td>http://radblast.weatherunderground.com/cgi-bin/radar/WUNIDS_map?station=RAX&brand=wui&num=1&delay=15&type=N0R&frame=0&scale=1.000&noclutter=0&t=1139666013&lat=35.75511551&lon=-78.71988678&label=Raleigh,+NC&showstorms=0&map.x=400&map.y=240&centerx=400&centery=240&transx=0&transy=0&showlabels=1&severe=0&rainsnow=0&lightning=0</td></tr>
</table>
</center>
</body>
</html>

Dean Roddey
03-23-2006, 11:07 PM
I think that they are using it to supress the borders that would be around the image if you just linked directly to it. I assume they are using the CQC Web Server to serve up the little wrapper file.

bradishm
03-23-2006, 11:20 PM
Got it to work. Looks much better....Thanks!

HK-Steve
11-05-2008, 02:50 AM
So I have resurected an old thread, :tounge


How do you find the link to the radar image?
I tried to hack the http text to find Zurich Switzerland, but couldn't get it to work at all.



Much Appreciated
Cheers
Steve

HK-Steve
11-05-2008, 05:18 AM
Well, after much searching the net, I have found a couple of images that I can use.

http://www.metradar.ch/de/aktuell_public/ppi_aktuell_8835.gif

Updates every 5 mins, is German, but I think that I can deal with that for now,

But is there a way to get rid of the scroll bar on the side of the image when viewed in CQC??
The image here has no scroll bar, but on my web brouser widget, it come up.


Man, I should really stop playing with CQC and do something :shock:

Cheers
Steve

HK-Steve
11-05-2008, 05:23 AM
for anyone else in Europe looking for images, this is where I found mine.

http://www.westwind.ch/w_0rad.php



Cheers
Steve

robertmee
11-05-2008, 06:38 AM
If using the local html file, make sure it has

<body scroll="no">

HK-Steve
11-05-2008, 06:47 AM
Hi Robert,
The image is from this address
http://www.blitzortung.net/image0_ch.png?1225896312

and from
http://www.metradar.ch/de/aktuell_public/loop_aktuell_8835.gif


Where should I put the <body scroll="no">

I tried after the address, but made no difference.
I really don't know enough about this stuff, but am learning quick.



Appreciate your help
Cheers
Steve

HK-Steve
11-05-2008, 11:17 AM
Soon you all will get sick of my questions, ;-)


I have a radar image, but it flickers at every refresh, is this normal?




Cheers
Steve

robertmee
11-05-2008, 11:30 AM
Hi Robert,
The image is from this address
http://www.blitzortung.net/image0_ch.png?1225896312

and from
http://www.metradar.ch/de/aktuell_public/loop_aktuell_8835.gif


Where should I put the <body scroll="no">

I tried after the address, but made no difference.
I really don't know enough about this stuff, but am learning quick.



Appreciate your help
Cheers
Steve

Go back and re-read through the thread. If you put the URL directly into the web widget you get the stuff you are seeing. The way around this is to create your own local html file with the formatting stuff (like getting rid of the scroll bars). This local html file also calls the URL you are currently trying to use. Then, in your web widget, you call the local html file instead of the URL direct. The local html file formats everything the way you want, and then calls your original URL.

Dean also made a handy Macro called swizzleImgURL. You can download it here: http://www.charmedquark.com/vb_forum/showpost.php?p=39294&postcount=7

It will do some of the formatting for you, you just call it with the URL in it. Here's a thread on how to do it:

http://www.charmedquark.com/vb_forum/showthread.php?t=2137&highlight=SwizzleImgURL

HK-Steve
11-05-2008, 12:33 PM
Thanks for the links Robert,

The 2.0 version of the swizzle is not compatible with current version, is the error I got when I tried to run it.
Not valid for this version.


also did some searching for it, but found only threads, which I read all of them, but without swizzleURL, I don't seem to be able to do much.


So much to learn, so little time.



Cheers
Steve

HK-Steve
11-06-2008, 12:14 AM
Looks like I need to find another image to use, as they are changing the name of the image everyday.


Looking for a solution today.


Cheers
Steve