De skin_templates.xml 27.38KB 24 downloads zou je dan op deze manier in de skin kunnen plaatsen. Het is maar een voorbeeld voor mijn skin.
NEW plugin: InfoBarWeather
Re: NEW plugin: InfoBarWeather #21
Re: NEW plugin: InfoBarWeather #22
Re: NEW plugin: InfoBarWeather #23
Posted 6 August 2022 - 12:14
I've adjusted it slightly, the layout is a bit bigger, it looks better. I left the picon of the "WeatherPlugin" standing. it could transfer to SweaterInfobar. But I wouldn't know how to do that myself. 1_0_19_4ABA_80B_600_FFFF0000_0_0_0_20220806085729.jpg
<screen name="%(screen_name)s" position="384,845" size="1336,51" backgroundColor="#ff000000" zPosition="2" flags="wfNoBorder">
<!-- SKINNERS: enable at most one of the following two lines -->
<!--<widget name="infoBarBackground" position="0,0" size="1336,51" zPosition="-1" backgroundColor="#ff000000" />-->
<widget name="infoBarBackground" position="0,0" size="1336,51" zPosition="-1" alphatest="off" pixmap="%(imageDir)s/PLi-FullNightHD-background.png" />
<!-- SKINNERS: enable at most one of the following two lines -->
<widget
name="secondInfoBarBackground" position="0,0" size="1336,51" zPosition="-1" backgroundColor="%(secondInfoBarBackgroundColor)s" />
<!--<widget name="secondInfoBarBackground" position="0,0" size="1336,51" zPosition="-1" alphatest="off" pixmap="" />-->
<widget name="notconfigured" position="18,0" size="1096,45" valign="center" halign="center" foregroundColor="#00B6B6B6" backgroundColor="#18101214" font="Regular; 28" transparent="1" />
<widget name="regio" position="18,0" size="337,45" valign="center" halign="right" foregroundColor="#00B6B6B6" backgroundColor="#18101214" font="Regular; 28" transparent="1" />
<widget name="time" position="360,0" size="70,45" valign="center" halign="left" foregroundColor="#00B6B6B6" backgroundColor="#18101214" font="Regular; 28" transparent="1" />
<widget name="sunrise" position="450,0" size="80,45" valign="center" halign="right" foregroundColor="#00B6B6B6" backgroundColor="#18101214" font="Regular; 28" transparent="1" />
<widget name="sunrisesetPixmap" position="538,7" size="50,28" alphatest="blend" pixmap="%(imageDir)s/sunriseset.png" />
<widget name="sunset" position="595,0" size="80,45" valign="center" halign="left" foregroundColor="#00B6B6B6" backgroundColor="#18101214" font="Regular; 28" transparent="1" />
<widget name="humidityPixmap" position="698,7" size="28,28" alphatest="blend" pixmap="%(imageDir)s/droplet.png" />
<widget name="humidity" position="728,0" size="80,45" valign="center" halign="left" foregroundColor="#00B6B6B6" backgroundColor="#18101214" font="Regular; 28" transparent="1" />
<widget name="winddirectionMultiPixmap" position="915,7" size="28,28" alphatest="blend" pixmaps="%(windPixmaps)s" />
<widget name="beaufort" position="948,0" size="112,45" valign="center" halign="left" foregroundColor="#00B6B6B6" backgroundColor="#18101214" font="Regular; 28" transparent="1" />
<widget name="windspeedms" position="948,0" size="200,45" valign="center" halign="left" foregroundColor="#00B6B6B6" backgroundColor="#18101214" font="Regular; 28" transparent="1" />
<widget name="weatherPixmap" position="1065,7" size="28,28" alphatest="blend" />
<widget name="temperature" position="1107,0" size="80,45" valign="center" halign="right" foregroundColor="#00B6B6B6" backgroundColor="#18101214" font="Regular; 28" transparent="1" />
<widget name="feeltemperature" position="1175,0" size="80,45" valign="center" halign="right" foregroundColors="#00B6B6B6,#29abe2,#ff5555" backgroundColor="#18101214" font="Regular; 28" transparent="1" />
%(rainWidgets)s
<widget name="zero" position="820,30" size="12,14" valign="top" halign="center" foregroundColor="#00B6B6B6" backgroundColor="#18101214" font="Regular; 11" transparent="1" />
<widget name="one" position="844,30" size="12,14" valign="top" halign="center" foregroundColor="#00B6B6B6" backgroundColor="#18101214" font="Regular; 11" transparent="1" />
<widget name="two" position="868,30" size="12,14" valign="top" halign="center" foregroundColor="#00B6B6B6" backgroundColor="#18101214" font="Regular; 11" transparent="1" />
</screen>
Deze lijn zou ik persoonlijk veranderen in de plugin.py hierbij schuift de boel wat naar rechts.
<screen name="InfoBarWeather" position="646,845" size="1336,51" backgroundColor="#ff000000" zPosition="2" flags="wfNoBorder">
Re: NEW plugin: InfoBarWeather #24
Re: NEW plugin: InfoBarWeather #25
Re: NEW plugin: InfoBarWeather #26
Re: NEW plugin: InfoBarWeather #27
Posted 6 August 2022 - 14:31
English here, gentlepeople...
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.
Re: NEW plugin: InfoBarWeather #28
Re: NEW plugin: InfoBarWeather #29
Re: NEW plugin: InfoBarWeather #30
Posted 7 August 2022 - 09:41
I made some tweaks here and there, Scriptmelvin did a nice job. My change is that the layout of the line on the screen shows up better this way. Of course everyone has their own taste. skin_user.xml 62.22KB 18 downloads
Re: NEW plugin: InfoBarWeather #31
Re: NEW plugin: InfoBarWeather #32
Posted 7 August 2022 - 10:30
Hello, and thank you for your efforts, but could you have a final version of the weather app to install, and explain where to overwrite the files for the skin? Thanks
Here https://forums.openp...dpost&p=1470756
Re: NEW plugin: InfoBarWeather #33
Posted 9 August 2022 - 18:02
The plugin is not py3 compatible... as we switch to py3 soon it would be helpfull to get a py3 version of it.
OpenPLi Enigma2 crash logcrashdate=di aug 9 19:00:12 2022compiledate=Aug 5 2022skin=PLi-FullNightHD/skin.xmlsourcedate=2022-08-04branch=python3rev=451b6cbcomponent=Enigma2stbmodel=ultimo4kstbmodel=dm8000kernelcmdline=root=/dev/mmcblk0p4 rootfstype=ext4 rootflags=data=journal rootwait rw coherent_pool=2M vmalloc=622m bmem=630m@394m bmem=383m@1665m bmem=443m@2625mnimsockets=NIM Socket 0:imageissue=openpli python3 %hTraceback (most recent call last):File "/usr/lib/enigma2/python/StartEnigma.py", line 223, in processDelaycallback(*retval)File "/usr/lib/enigma2/python/Plugins/Extensions/InfoBarWeather/plugin.py", line 693, in downloadLocationsurl = 'https://location.bui...n/search?query=' + urllib.quote_plus(searchterm)AttributeError: module 'urllib' has no attribute 'quote_plus'[ePyObject] (CallObject(<bound method Session.processDelay of <__main__.Session object at 0xb1d41880>>,()) failed)
WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W
Re: NEW plugin: InfoBarWeather #34
Re: NEW plugin: InfoBarWeather #35
Re: NEW plugin: InfoBarWeather #36
Posted 9 August 2022 - 20:06
Yup, all images are built now.
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.
Re: NEW plugin: InfoBarWeather #37
Re: NEW plugin: InfoBarWeather #38
Posted 9 August 2022 - 21:01
The plugin is not py3 compatible... as we switch to py3 soon it would be helpfull to get a py3 version of it.
Should be fixed in 0.5. Untested, I'm AFB (away from box). I'm not aware of any other python 2 specific code.
Please reinstall from the link in post #1.
Shall I set up a proper github repo?
Re: NEW plugin: InfoBarWeather #39
Re: NEW plugin: InfoBarWeather #40
Posted 16 August 2022 - 16:48
I made some tweaks here and there, Scriptmelvin did a nice job. My change is that the layout of the line on the screen shows up better this way. Of course everyone has their own taste. skin_user.xml
Looks good on your skin, not so good on the standard skin imho. Maybe you can put it in your skins skin_templates.xml.
10 user(s) are reading this topic
0 members, 10 guests, 0 anonymous users