Weather forecast in Skin Infobar
honda-civic
21 May 2013
Weather forecast in Skin Infobar
Hello to all
As title says forecast in Skin Infobar, I have a question has anyone right renderer and converter and xml
For any tips and help thank you in advance
Amoroso2006
21 May 2013
you have to work whit 3 tricks:
1-YWeather.py (convert)
for exmp temp = Temperature
<widget source="session.CurrentService" render="Label" position="312,588" size="120,50" zPosition="2" font="Regular; 40" halign="center" backgroundColor="background" transparent="1" foregroundColor="darkdark"> <convert type="YWeather">temp</convert> </widget>
2-piconuni.py (render)
manly used to show the forecast picon (in piconYWeather) folder
<widget source="session.CurrentService" render="PiconUni" path="piconYWeather" position="1015,552" size="100,94" zPosition="2" alphatest="blend"> <convert type="YWeather">picon</convert> </widget>
3-yweather.xml
auto_generate in /tmp
and to read city or country we use (yweather.py)
for line in open("/tmp/yweather.xml"): if line.find("<yweather:location") > -1: xweather['ycity'] = line.split('city')[1].split('"')[1] xweather['ycountry'] = line.split('country')[1].split('"')[1]
good luck to build a very nice skin
honda-civic
21 May 2013
Amoroso2006 ,,,,Thank you for your help
Until now everything worked out just does not show me city!!
I have in YWeather.py
# 12814970 - vienna
# 12815101 - vienna
weather_city = '12815101'
time_update = 20
time_update_ms = 30000
is that correct????
Amoroso2006
21 May 2013
the code to put city in skin is
<widget source="session.CurrentService" render="Label" position="312,588" size="120,50" zPosition="2" font="Regular; 40" halign="center" backgroundColor="background" transparent="1" foregroundColor="darkdark"> <convert type="YWeather">city</convert> </widget>
honda-civic
21 May 2013
yes, thank you now everything is ok, do you have thermostat with temperature icon ,can i have this
thanks mate
Amoroso2006
22 May 2013
How can i Second Infobar installed????
you are oblige to install 2IB plugin
fairbird
24 May 2013
openpli no need 2IB plugin...If you but it in image will be make some crash to some plugins..If you have secondinfo screen in skin what you use it will Shows automaticlly if you press 2xOk
honda-civic
24 May 2013
thanks guys,,,,unfortunately does not work
in skin.xml <! - Main InfoBar -> I have something else to add?????
honda-civic
24 May 2013
@mettoo ,,, yes is activ
@paciuk,,,skin is from ramiMaher mod by me !!
Edited by honda-civic, 24 May 2013 - 17:33.
fairbird
24 May 2013
This skin don't have secondinfo bar ...so it is normally you got that message info
Loui (PD1LOI)
30 May 2013
Loui (PD1LOI)
31 May 2013
def findPicon(self, serviceName):
searchPaths = []
if fileExists("/proc/mounts"):
for line in open("/proc/mounts"):
if line.find("/dev/sd") > -1:
searchPaths.append(line.split()[1].replace('\\040', ' ') + "/%s/")
searchPaths.append("/usr/share/enigma2/%s/")
for path in searchPaths:
pngname = (((path % self.path) + serviceName) + '.png')
if fileExists(pngname):
return pngname
return ''