Jump to content


Photo

How to check for the network ON or OFF?

openpli skin

  • Please log in to reply
3 replies to this topic

#1 Nabukodonosor

  • Senior Member
  • 27 posts

0
Neutral

Posted 30 March 2021 - 20:40

hey guys. So, I'm trying to implement lan check in my skin. This is my code:

 

<ePixmap pixmap="Amala/icons/ico_lan_off.png" position="1205,32" size="27,25" zPosition="1" alphatest="blend"/>
<widget source="session.CurrentService" render="Pixmap" pixmap="Amala/icons/ico_lan_on.png" position="1205,32" zPosition="2" size="27,25" alphatest="blend">
      <convert type="RouteInfo">Lan</convert>
      <convert type="ConditionalShowHide" />
    </widget>

But I always get the ON icon, even when I pull the lan cable off. How can do this, so that I get the On or Off icon depending if the internet is working or not?



Re: How to check for the network ON or OFF? #2 Dimitrij

  • PLi® Core member
  • 10,330 posts

+350
Excellent

Posted 31 March 2021 - 07:57

https://github.com/S...er/RouteInfo.py

This version?


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: How to check for the network ON or OFF? #3 Nabukodonosor

  • Senior Member
  • 27 posts

0
Neutral

Posted 31 March 2021 - 11:29

Yes.



Re: How to check for the network ON or OFF? #4 Nabukodonosor

  • Senior Member
  • 27 posts

0
Neutral

Posted 1 April 2021 - 12:17

So, what do you think?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users