←  Skins

Forums

»

Weather forecast in Skin Infobar

honda-civic's Photo 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

Quote

Amoroso2006's Photo 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

Quote

Amoroso2006's Photo Amoroso2006 21 May 2013

please visit this post

 


attachicon.gif

Plugin Weather widget in infobar
Quote

honda-civic's Photo 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????

 

ghznfngfbc3xm3xr1lmt.jpg

Quote

Amoroso2006's Photo 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>
 
Quote

honda-civic's Photo 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

Quote

honda-civic's Photo honda-civic 22 May 2013

How can  i Second Infobar installed????

Quote

Amoroso2006's Photo Amoroso2006 22 May 2013

How can  i Second Infobar installed????

 

you are oblige to install 2IB plugin

Quote

honda-civic's Photo honda-civic 23 May 2013

hmmm can not I find nowhere this plugins,,,have you???

thank you

Quote

Amoroso2006's Photo Amoroso2006 23 May 2013

put this in

usr/lib/enigma2/python/Plugins/Extensions

 

 

rar.png
Quote

fairbird's Photo 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

Quote

honda-civic's Photo honda-civic 24 May 2013

thanks guys,,,,unfortunately does not work

bchmklz5fjn2976wti.jpg

 

in skin.xml <! - Main InfoBar -> I have something else to add?????

Quote

metoo's Photo metoo 24 May 2013

2IB enabled in user interface? it is build in

Quote

paciuk's Photo paciuk 24 May 2013

what name is this skin?


Edited by paciuk, 24 May 2013 - 11:23.
Quote

honda-civic's Photo 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.
Quote

paciuk's Photo paciuk 24 May 2013

where I can download this skin?

Quote

honda-civic's Photo honda-civic 24 May 2013

heeehhhe only by me!

but i do not know if I can upload

Quote

fairbird's Photo fairbird 24 May 2013

This skin don't have secondinfo bar ...so it is normally you got that message info

Quote

Loui (PD1LOI)'s Photo Loui (PD1LOI) 30 May 2013

You can create a complete package so that everyone knows what where do?
Quote

Loui (PD1LOI)'s Photo Loui (PD1LOI) 31 May 2013

Is this oke?? I have my Picons in usr/share/enigma2/piconYWeather

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 ''
Quote