Jump to content


Photo

NEW plugin: InfoBarWeather


  • Please log in to reply
167 replies to this topic

Re: NEW plugin: InfoBarWeather #21 Loui (PD1LOI)

  • Senior Member
  • 4,608 posts

+146
Excellent

Posted 6 August 2022 - 08:48

De Attached File  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.



Re: NEW plugin: InfoBarWeather #22 Loui (PD1LOI)

  • Senior Member
  • 4,608 posts

+146
Excellent

Posted 6 August 2022 - 10:06

Why don’t you just put the screens in the skin?

Heb ik idd niet nodig, Ik heb user_skin.xml in etc/enigma2 staan. En hier is de info die voorheen in skin_templates.xml weg gehaald waar de info stond voor Weatherplugin.


Edited by Loui (PD1LOI), 6 August 2022 - 10:10.


Re: NEW plugin: InfoBarWeather #23 Loui (PD1LOI)

  • Senior Member
  • 4,608 posts

+146
Excellent

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 littlesat

  • PLi® Core member
  • 57,163 posts

+698
Excellent

Posted 6 August 2022 - 13:54

Dit hoort eigenlijk niet in de plugin.py maar gewoon in je skin… gaat
Later ook helemaal lukken als de monkey code eruit is.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: NEW plugin: InfoBarWeather #25 Loui (PD1LOI)

  • Senior Member
  • 4,608 posts

+146
Excellent

Posted 6 August 2022 - 14:18

Het was voor mij ook maar een probeersel, Ik wacht het allemaal gewoon af.

Het begin is er net als bij HetWeer duurt het even maar dan heb je wel een mooie plugin die hopelijk weer lang werkt.



Re: NEW plugin: InfoBarWeather #26 Loui (PD1LOI)

  • Senior Member
  • 4,608 posts

+146
Excellent

Posted 6 August 2022 - 14:30

Het enige wat me opvalt is dat de Tijd bij (Almere Haven) ook al is dat juist ingesteld via het menu van de plugin, anders is dan de juiste tijd van de box.


Edited by Loui (PD1LOI), 6 August 2022 - 14:31.


Re: NEW plugin: InfoBarWeather #27 WanWizard

  • PLi® Core member
  • 70,506 posts

+1,810
Excellent

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 scriptmelvin †

  • PLi® Contributor
  • 720 posts

+46
Good

Posted 6 August 2022 - 14:56

The displayed time is the last time the weather data was updated by buienradar, not the current time. There would be no point in displaying the current time twice.
Sorry to inform you this member, my brother, passed away.

Re: NEW plugin: InfoBarWeather #29 Loui (PD1LOI)

  • Senior Member
  • 4,608 posts

+146
Excellent

Posted 6 August 2022 - 15:24

The displayed time is the last time the weather data was updated by buienradar, not the current time. There would be no point in displaying the current time twice.

Aha oke.

Re: NEW plugin: InfoBarWeather #30 Loui (PD1LOI)

  • Senior Member
  • 4,608 posts

+146
Excellent

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. Attached File  skin_user.xml   62.22KB   18 downloads



Re: NEW plugin: InfoBarWeather #31 ntoni

  • Member
  • 8 posts

0
Neutral

Posted 7 August 2022 - 10:17

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



Re: NEW plugin: InfoBarWeather #32 Loui (PD1LOI)

  • Senior Member
  • 4,608 posts

+146
Excellent

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 littlesat

  • PLi® Core member
  • 57,163 posts

+698
Excellent

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 log
 
crashdate=di aug  9 19:00:12 2022
compiledate=Aug  5 2022
skin=PLi-FullNightHD/skin.xml
sourcedate=2022-08-04
branch=python3
rev=451b6cb
component=Enigma2
 
stbmodel=ultimo4k
stbmodel=dm8000
kernelcmdline=root=/dev/mmcblk0p4 rootfstype=ext4 rootflags=data=journal rootwait rw coherent_pool=2M vmalloc=622m bmem=630m@394m bmem=383m@1665m bmem=443m@2625m
nimsockets=NIM Socket 0:
imageissue=openpli python3 %h
 
 
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/StartEnigma.py", line 223, in processDelay
    callback(*retval)
  File "/usr/lib/enigma2/python/Plugins/Extensions/InfoBarWeather/plugin.py", line 693, in downloadLocations
    url = '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 scriptmelvin †

  • PLi® Contributor
  • 720 posts

+46
Good

Posted 9 August 2022 - 18:54

I'll try and fix that. I currently have no working build server, and no pyt3 support for my box, so no way to test...
Sorry to inform you this member, my brother, passed away.

Re: NEW plugin: InfoBarWeather #35 littlesat

  • PLi® Core member
  • 57,163 posts

+698
Excellent

Posted 9 August 2022 - 19:32

As far I know we have now for each box a test image which is py3/hardknot. I have it now running on 3 boxes at my home.

Edited by littlesat, 9 August 2022 - 19:34.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: NEW plugin: InfoBarWeather #36 WanWizard

  • PLi® Core member
  • 70,506 posts

+1,810
Excellent

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 littlesat

  • PLi® Core member
  • 57,163 posts

+698
Excellent

Posted 9 August 2022 - 20:22

And as we continue forward we can better make new things in py3…

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: NEW plugin: InfoBarWeather #38 scriptmelvin †

  • PLi® Contributor
  • 720 posts

+46
Good

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?


Sorry to inform you this member, my brother, passed away.

Re: NEW plugin: InfoBarWeather #39 littlesat

  • PLi® Core member
  • 57,163 posts

+698
Excellent

Posted 10 August 2022 - 16:54

GitHub… yes please

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: NEW plugin: InfoBarWeather #40 scriptmelvin †

  • PLi® Contributor
  • 720 posts

+46
Good

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. attachicon.gifskin_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.


Sorry to inform you this member, my brother, passed away.


5 user(s) are reading this topic

0 members, 5 guests, 0 anonymous users