questions on MAP file and usage as icon naming

77 views
Skip to first unread message

karsten.k...@gmail.com

unread,
May 31, 2015, 5:19:45 AM5/31/15
to ope...@googlegroups.com
Hi,

currently use wunderground forecast for my weather on OH.

Item:
String w1   "Wettervorhersage heute" { http="<[weatherCache:3600000:XSLT(wunderground_icon_forecast.xsl)]" }
String w   "Wettervorhersage heute [MAP(wetter.map):%s]"  <w1> { http="<[weatherCache:3600000:XSLT(wunderground_icon_forecast.xsl)]" }

while w1 and w receive the same content from the wounderground server - e.g. "cloudy" - for display i transform the return using the wetter.map file for german language display in sitemap ("Wolkig").

-=Undefiniert
undefined=Undefiniert
mostlycloudy=Ueberwiegend Bewoelkt
mostlysunny=Meist Sonnig
chanceflurries=moegliches Schneegestoeber
chancerain=Wolkig, vereinzelte Schauer
chancesleet=Schneeregen
chancesnow=leichter Schneefall
chancetstorms=Gewitterstuerme moeglich
clear=Klar
cloudy=Wolkig


i as well wan to use the content of w1 as basis for the icon that i am displaying to my german map result. therefore i have a set of weathericons in the webapps/images folder. in that case as well an icon named

cloudy.png

what i had seen in several examples as well in the wiki it should work like above mentioned item: <w1> as icon name in the item definition?

my sitemap looks like:

Text item=w 

any idea / help why no icon is been displayed?

thx
Karsten

Siegfried H.

unread,
May 31, 2015, 9:38:06 AM5/31/15
to ope...@googlegroups.com

my sitemap looks like:

Text item=w 


Try

Text item=w icon="cloudy"



Siegfried

karsten.k...@gmail.com

unread,
Jun 1, 2015, 11:59:15 AM6/1/15
to ope...@googlegroups.com
yes - this works for a sole state. but what happens if its going to be sunny? changing the sitemap?

cheers
Kasten

Siegfried H.

unread,
Jun 1, 2015, 12:08:04 PM6/1/15
to ope...@googlegroups.com
Ah, okay, I didn't catch your point in your first post, sorry.
In my case I have different strings for each weather condition, therefore I don't have the problem you have.

Sorry, can't help ...

Good luck, Siegfried

tiana1....@gmail.com

unread,
Sep 13, 2015, 2:21:56 AM9/13/15
to openhab
try 
String w   "Wettervorhersage heute [MAP(wetter.map):%s]"  <w1>

and images name
w1-cloudy.png
w1-clear.png
w1-chancetstorms.png
..........
Reply all
Reply to author
Forward
0 new messages