PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : HS Visu and variable element



Warichet
01.06.07, 19:18
Hi,

I'm building a Visu with wheather forecast.
So far, I'm able to retrieve the day and temperature from a meteo web site page, but I've a problem with the icons.
The icons (sun, rain, cloud etc) are always in the same place in the web page, but have different names of course.
How could I capture & display thoses icons ?
It seems not possible to use a variable to point to the jpeg and use the camera.
Writing a logic module seems to stumble on the same limitation.
I'm stuckhttp://www.knx-professionals.de/forum/images/icons/icon11.gif
Any idea ?
Thanks
Raymond

Hiele
01.06.07, 20:31
hi,

when you checkup the page with the hs, you get a filename form the picture. (First you have to dowload all possible pictures from your wether-page). then you can bring it with Text from a list (see att.) to a number. witth a dynamic-symbol you can resolve the number back to your picture you have dowloaded before.

hope it helps a bit

hiele

sorry for my very bad english

Warichet
01.06.07, 21:04
when you checkup the page with the hs, you get a filename form the picture.
So far, so good. I can indeed get the filename (URL) of all pictures used.


then you can bring it with Text from a list (see att.) to a number. with a dynamic-symbol you can resolve the number back to your picture you have dowloaded before.
HolĂ , that's a clever trickhttp://www.knx-professionals.de/forum/images/icons/icon7.gif
I'm not sure I understand, but I'll try. Those downloaded pictures, should they be stored in the HS or are they called via a full URL from the original web site ?


sorry for my very bad englishI've no problem with your english, but with what you are sayinghttp://www.knx-professionals.de/forum/images/icons/icon11.gif
Thanks a lot
Raymond

Hiele
01.06.07, 21:35
I'll my best :rolleyes:

1. download the most importen pics
2. Import them in to the Visu
(left click in Visu-Elemts left side in the visu / click the first: Symbols / create a folder called weather / click new from a file ...) do this with all importen symbols you do need to show the weather situation
3.Create Dyn-Symbol
( left click in Visu-Elemts left side in the visu / click the second: Dyn.Symbols / create a folder called also weather / click new )
Give it a standart symbol like = missing picture then you can see if one is missing in future. Add a new condition like From 1 to 1 = pic1 / 2 to 2 pic2. Here you can take the pics from Symbols you have downloades and imported first.
4. When you now adding the condition in the HTTP checking use what I wrote before and it should be the same list like in the Dyn.Symbols. Compare the attachments

Hiele

Warichet
03.06.07, 18:15
I'll my best :rolleyes:
Greathttp://www.knx-professionals.de/forum/images/icons/icon7.gif
It works, thank you !


Give it a standart symbol like = missing picture then you can see if one is missing in future.
OK, good idea, indeed, some un-common symbols are appearing from time to time.


4. When you now adding the condition in the HTTP checking use what I wrote before and it should be the same list like in the Dyn.Symbols. Compare the attachments.

Although I've already used the Dyn.Symbols before (Velux), it took me a while to find & undestand the translation list.
Clever trick

Thanks again for your kind help
Raymond