Jump to content


Photo

Weather forecast in Skin Infobar


  • Please log in to reply
44 replies to this topic

#1 honda-civic

  • Senior Member
  • 307 posts

+22
Neutral

Posted 21 May 2013 - 07:36

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



Re: Weather forecast in Skin Infobar #2 Amoroso2006

  • Senior Member
  • 62 posts

+1
Neutral

Posted 21 May 2013 - 14:36

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



Re: Weather forecast in Skin Infobar #3 Amoroso2006

  • Senior Member
  • 62 posts

+1
Neutral

Posted 21 May 2013 - 14:38

please visit this post

 


attachicon.gif

Plugin Weather widget in infobar

Re: Weather forecast in Skin Infobar #4 honda-civic

  • Senior Member
  • 307 posts

+22
Neutral

Posted 21 May 2013 - 21:12

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



Re: Weather forecast in Skin Infobar #5 Amoroso2006

  • Senior Member
  • 62 posts

+1
Neutral

Posted 21 May 2013 - 22:50

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>
 


Re: Weather forecast in Skin Infobar #6 honda-civic

  • Senior Member
  • 307 posts

+22
Neutral

Posted 21 May 2013 - 23:43

yes, thank you now everything is ok, do you have thermostat with temperature icon ,can i have this

thanks mate



Re: Weather forecast in Skin Infobar #7 honda-civic

  • Senior Member
  • 307 posts

+22
Neutral

Posted 22 May 2013 - 12:05

How can  i Second Infobar installed????



Re: Weather forecast in Skin Infobar #8 Amoroso2006

  • Senior Member
  • 62 posts

+1
Neutral

Posted 22 May 2013 - 20:48

How can  i Second Infobar installed????

 

you are oblige to install 2IB plugin



Re: Weather forecast in Skin Infobar #9 honda-civic

  • Senior Member
  • 307 posts

+22
Neutral

Posted 23 May 2013 - 20:26

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

thank you



Re: Weather forecast in Skin Infobar #10 Amoroso2006

  • Senior Member
  • 62 posts

+1
Neutral

Posted 23 May 2013 - 22:24

put this in

usr/lib/enigma2/python/Plugins/Extensions

 

 

rar.png


Re: Weather forecast in Skin Infobar #11 fairbird

  • Senior Member
  • 413 posts

+20
Neutral

Posted 24 May 2013 - 02:37

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


DM500s
DM800

DM800se

DM920UHD


Re: Weather forecast in Skin Infobar #12 honda-civic

  • Senior Member
  • 307 posts

+22
Neutral

Posted 24 May 2013 - 06:37

thanks guys,,,,unfortunately does not work

bchmklz5fjn2976wti.jpg

 

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



Re: Weather forecast in Skin Infobar #13 metoo

  • Senior Member
  • 1,573 posts

+33
Good

Posted 24 May 2013 - 09:21

2IB enabled in user interface? it is build in


ET10000 C C C C/T  2TB HDD ET7000 + ET6000 dvb-S  OpenPli Triax 88 multifeed quad LNBs VU Uno4K SE C+2TB HDD Mutant HD60


Re: Weather forecast in Skin Infobar #14 paciuk

  • Member
  • 2 posts

0
Neutral

Posted 24 May 2013 - 11:22

what name is this skin?


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


Re: Weather forecast in Skin Infobar #15 honda-civic

  • Senior Member
  • 307 posts

+22
Neutral

Posted 24 May 2013 - 17:31

@mettoo ,,, yes is activ

@paciuk,,,skin is from ramiMaher mod by me !!


Edited by honda-civic, 24 May 2013 - 17:33.


Re: Weather forecast in Skin Infobar #16 paciuk

  • Member
  • 2 posts

0
Neutral

Posted 24 May 2013 - 20:27

where I can download this skin?



Re: Weather forecast in Skin Infobar #17 honda-civic

  • Senior Member
  • 307 posts

+22
Neutral

Posted 24 May 2013 - 21:31

heeehhhe only by me!

but i do not know if I can upload



Re: Weather forecast in Skin Infobar #18 fairbird

  • Senior Member
  • 413 posts

+20
Neutral

Posted 24 May 2013 - 23:54

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


DM500s
DM800

DM800se

DM920UHD


Re: Weather forecast in Skin Infobar #19 Loui (PD1LOI)

  • Senior Member
  • 4,532 posts

+140
Excellent

Posted 30 May 2013 - 09:11

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

Re: Weather forecast in Skin Infobar #20 Loui (PD1LOI)

  • Senior Member
  • 4,532 posts

+140
Excellent

Posted 31 May 2013 - 17:18

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


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users