View unanswered posts | View active topics
| Author |
Message |
|
mteuling
|
Posted: Thu Nov 16, 2006 10:42 am |
|
Joined: Thu Nov 16, 2006 8:31 am Posts: 9
|
|
Hello All,
I have a little question , I use the export function ,so a html file is created ,is it possible to include a current weathericon in this file ?
I add a line in the Export template (export tab) :see below
but it will not display an Icon in the output HTML file ,but only an URL , Is this possible ? and if possible ,how to do it ?
Thanks,
Michel
I use the latest version of weather Watcher.
<HTML>
Location: [Location]<BR />
Condition: [Condition]<BR />
Temperature: [Temp]<BR />
Feels Like: [Feels]<BR />
Dew Point: [Dew]<BR />
Humidity: [Humidity]<BR />
Wind: [Wind]<BR />
Visibility: [Visibility]<BR />
Barometer: [Barometer]<BR />
UV Index: [UV]<BR />
Sunrise: [Sunrise AMPM]<BR />
Sunset: [Sunset AMPM]<BR />
icon:[ICON]<BR/>
<BR />
[Updated]
</HTML>
|
|
| Top |
|
 |
|
Ed_P
|
Posted: Thu Nov 16, 2006 1:12 pm |
|
| Senior Member |
 |
Joined: Sat Aug 07, 2004 12:24 pm Posts: 2226 Location: Western NY, USA
|
According to the WW Help file the [ICON] tag returns the URL of the weather.com's gif which is the same results as using the [MOON ICON], [HOURLY ICON], [DAILY ICON], etc tags. What you Export is all text, what you do with it is up to you. If you want to see the actual icon you will need to write actual HTML code to display it.
Something like: Code: <HTML> Location: [Location]<BR /> Condition: [Condition]<BR /> Temperature: [Temp]<BR /> Feels Like: [Feels]<BR /> Dew Point: [Dew]<BR /> Humidity: [Humidity]<BR /> Wind: [Wind]<BR /> Visibility: [Visibility]<BR /> Barometer: [Barometer]<BR /> UV Index: [UV]<BR /> Sunrise: [Sunrise AMPM]<BR /> Sunset: [Sunset AMPM]<BR /> <IMG SRC="[ICON]" ALT="Thanks to EdP"><BR/> <BR /> [Updated] </HTML>
should work. 
|
|
| Top |
|
 |
|
mteuling
|
Posted: Thu Nov 16, 2006 2:25 pm |
|
Joined: Thu Nov 16, 2006 8:31 am Posts: 9
|
Thanks a lot ED
It works , This is wat I wanted, I should study some HTML someday
kind regards
Michel
the Netherlands
|
|
| Top |
|
 |
|
jeromy
|
Posted: Thu Nov 16, 2006 9:07 pm |
|
Joined: Fri Apr 08, 2005 9:38 pm Posts: 57 Location: Chicago, IL 60660
|
EdP wrote: ALT="Thanks to EdP"
Haha.. Always trying to get your name out Ed. 
|
|
| Top |
|
 |
|
mteuling
|
Posted: Sun Nov 26, 2006 9:10 pm |
|
Joined: Thu Nov 16, 2006 8:31 am Posts: 9
|
|
Hello All,
This seems to work at first ,the Icon shows, but only if someone has the icons local on their PC ,(I'm uploading the output file to my webpage you see) if you ask for the properties for the Icon in the output html file it says: "file:///C:/Program%20Files/Weather%20Watcher/Skins/Icons/Classic/33.gif"
but the moon icon for example says :http://image.weather.com/web/common/moonicons/52/6.gif" and this icon shows on the webpage.
So the question is ,how come those two things show different file paths?
should that not be something like "http://image.weather.com/web/common/wxicons/52/12.gif"
for clearity here is what i've in the template :
<HTML>
Location: [Location]<BR />
Condition: [Condition]<BR />
<IMG SRC="[ICON]" ALT="Thanks to EdP"><BR/>
Temperature: [Temp]<BR />
Feels Like: [Feels]<BR />
Dew Point: [Dew]<BR />
Humidity: [Humidity]<BR />
Wind: [WIND FULL]<BR />
Visibility: [Visibility]<BR />
Barometer: [Barometer]<BR />
UV Index: [UV]<BR />
Sunrise: [Sunrise AMPM]<BR />
Sunset: [Sunset AMPM]<BR />
Moonphase:[MOON]<BR />
<IMG SRC="[MOON ICON]"ALT="Thanks to EdP"><BR/>
<BR />
[Updated]
</HTML>
I hope someone Knows a solution for this
Regards,
Michel
the Netherlands
|
|
| Top |
|
 |
|
Ed_P
|
Posted: Sun Nov 26, 2006 9:53 pm |
|
| Senior Member |
 |
Joined: Sat Aug 07, 2004 12:24 pm Posts: 2226 Location: Western NY, USA
|
I don't have a Classics icon folder in my Weather Watcher Icon's folder and when I have my WW FOREcast icons set to Classic my export shows:
Code: <IMG SRC="http://image.weather.com/web/common/wxicons/52/27.gif" ALT="Thanks to EdP"><BR/>
Rename your Classics icon folder to be something else, Michels would be a good name. 
|
|
| Top |
|
 |
|
mteuling
|
Posted: Mon Nov 27, 2006 4:53 am |
|
Joined: Thu Nov 16, 2006 8:31 am Posts: 9
|
|
Hi ,
Well it seems that the Icon tag returns the wrong code, it returns a local path and not a path to image.weather.com ,
I renamed the classic icon folder just as you said , but I've got this:
(part of the export file code)
<HTML>
Location: Dordrecht, Netherlands<BR />
Condition: Fair<BR />
<IMG SRC="C:\Program Files\Weather Watcher/Skins/Icons/michels/34.gif" ALT="Thanks to EdP"><BR/>
Temperature: 8,9?C<BR />
I use WW version 5.6.16
Moon icon works fine .
I hope there is a solution for this
Regards,
Michel
the Netherlands
|
|
| Top |
|
 |
|
Ed_P
|
Posted: Mon Nov 27, 2006 9:28 am |
|
| Senior Member |
 |
Joined: Sat Aug 07, 2004 12:24 pm Posts: 2226 Location: Western NY, USA
|
Change your forecast icons to something other than Michels. Try SFGate. Click Apply and OK. Verify that the WW window shows the new icons. Remove the Michels icons folder from the Skins\Icons folder and make sure there is no Classic folder in the Skins\Icons folder also. Close down WW and then restart it. Make sure your WW window is showing the new icons. Now change the Forecast icons to the Classic option. Click on Apply and OK. Then do an Update.
What does the Export file look like now?
|
|
| Top |
|
 |
|
mteuling
|
Posted: Mon Nov 27, 2006 10:54 am |
|
Joined: Thu Nov 16, 2006 8:31 am Posts: 9
|
|
Hi EdP,
Did what you said ,but no, still a local path in the output file, also tried a clean install first, but nothing seems to help.
Michel
|
|
| Top |
|
 |
|
mteuling
|
Posted: Mon Nov 27, 2006 3:22 pm |
|
Joined: Thu Nov 16, 2006 8:31 am Posts: 9
|
Hello,
I think I've found the problem
I just deinstalled version 5.6.16 and removed every trace from the registry, then installed version 5.6.14 tested this ,and everything works fine, then updated to version 5.6.15 tested and worked fine also , then updated to 5.6.16 tested and it didn't work ,I've got a local path , so I think it's the latest version ,the Icon tag generate al localpath instead of the weather.com path , so I'm on version 6.5.15 for now.
maby this little thing can be fixed in the next version .
regards ,
Michel
|
|
| Top |
|
 |
|
Mike Singer
|
Posted: Mon Nov 27, 2006 6:21 pm |
|
| Site Admin |
 |
Joined: Wed Nov 06, 2002 9:24 am Posts: 4197 Location: Harrisburg, PA
|
mteuling wrote: maby this little thing can be fixed in the next
Unfortunately, it's not something that can be fixed. All of the icons are stored locally.
If you're a Javascript whiz, you should be able to replace that path with the URL 
|
|
| Top |
|
 |
|
Ed_P
|
Posted: Mon Nov 27, 2006 6:50 pm |
|
| Senior Member |
 |
Joined: Sat Aug 07, 2004 12:24 pm Posts: 2226 Location: Western NY, USA
|
Mike Singer wrote: Unfortunately, it's not something that can be fixed. All of the icons are stored locally.
 Why??? The Classics were not a part of the earlier versions of WW, something about copyrighted images.  So what changed?
@mteuling
I apologize for misleading you mteuling. I haven't upgraded my desktop machine to 5.6.16 yet and thus was not seeing your problem. I just checked my nb which does have 5.6.16 and the Classic icons are indeed included in the Skins\Icons folder. Apparently the WW Template Codes help is outdated. Code: [ICON] = http://image.weather.com/web/common/wxicons/52/26.gif
Your solution to the problem appears to be the best one.
|
|
| Top |
|
 |
|
Ed_P
|
Posted: Mon Nov 27, 2006 8:22 pm |
|
| Senior Member |
 |
Joined: Sat Aug 07, 2004 12:24 pm Posts: 2226 Location: Western NY, USA
|
Alright mteuling, replace the original line I gave you with this one.
Code: <SCRIPT LANGUAGE="JavaScript">var WWicon ="[ICON]";WWicon = WWicon.substr(WWicon.length-6,6);if (WWicon.substr(1,1) == "/") WWicon = WWicon.substr(2,5);TWCicon="http://image.weather.com/web/common/wxicons/52/"+WWicon;document.write("<IMG SRC='"+TWCicon+"' ALT='Wow EdP!!'>");</script><BR/>
Sorry I didn't see the problem earlier.
BTW I wrote this as all ONE line, forum wrapping may impact it's presentation and what you add to your Export template. You may want to cut & paste it into Notepad to unwrap it before updating your Export template.
(Not everything that gets changed is documented in the RSS feeds.)
Quote: Weather Watcher 5.6.16 has been released!
The following changes have been made:
* CHANGED: The skinned tooltip window will auto refresh if visible when the weather is updated.
* CHANGED: Reverted weather download method to the Weather Watcher 5.6.14 download method.
* FIXED: GIFs with transparent backgrounds were not displaying with transparent backgrounds in the skinned tooltip window.
|
|
| Top |
|
 |
|
mteuling
|
Posted: Tue Nov 28, 2006 7:33 am |
|
Joined: Thu Nov 16, 2006 8:31 am Posts: 9
|
Thanks EdP,
Looks impressive
I'll test it tonight, and let you know I'm at work right now .
regards ,
Michel
|
|
| Top |
|
 |
|
Ed_P
|
Posted: Tue Nov 28, 2006 9:27 am |
|
| Senior Member |
 |
Joined: Sat Aug 07, 2004 12:24 pm Posts: 2226 Location: Western NY, USA
|
Michel, please note, that it will result in a TWC weather.com icon being displayed regardless of which Forecast icons you select for your WW forecast window. 
|
|
| Top |
|
 |
Who is online |
Users browsing this forum: No registered users and 0 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
|
|
|