Jump to content


Photo

XPower plugin - some things for lazy as me ...

plugin

  • Please log in to reply
20 replies to this topic

#1 ims

  • PLi® Core member
  • 11,181 posts

+168
Excellent

Posted 23 November 2011 - 17:08

My plugin XPower for WakeUp, Shutdown, Reboot, Get MAC and Standby, Hibernate PC's via your box. Works with os XP, Win7 and Ubuntu. I think, it is stable and can be added here. May be, somebody to find it useful. Works with telnet or with rpc net (XP only). I am using it in local network for managing all computers from bed :). May be useful for turning on/off PC with VLC too.

Note: for "rpc net" must be installed "net" file - attached is net for HDD or for USB, because size of net is 8MB and it is not good place it into flash of box.

Attached Files


Kdo nic nedělá, nic nezkazí!

Re: XPower plugin - some things for lazy as me ... #2 littlesat

  • PLi® Core member
  • 49,539 posts

+533
Excellent

Posted 23 November 2011 - 17:43

Why not on github?

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


Re: XPower plugin - some things for lazy as me ... #3 ims

  • PLi® Core member
  • 11,181 posts

+168
Excellent

Posted 23 November 2011 - 17:59

somehow I did not think about it ... may be, it is unnecessary plugin for others...
Kdo nic nedělá, nic nezkazí!

Re: XPower plugin - some things for lazy as me ... #4 Dimitrij

  • PLi® Core member
  • 6,582 posts

+212
Excellent

Posted 23 November 2011 - 20:42

somehow I did not think about it ... may be, it is unnecessary plugin for others...

It is very necessary thing :) .
Long dreamed of this for E2.

Lunix3-4K/VU+solo4k(thanks guys to gisclub.tv)


Re: XPower plugin - some things for lazy as me ... #5 ims

  • PLi® Core member
  • 11,181 posts

+168
Excellent

Posted 23 November 2011 - 21:27

thanks... we are two now :D
Kdo nic nedělá, nic nezkazí!

Re: XPower plugin - some things for lazy as me ... #6 Dimitrij

  • PLi® Core member
  • 6,582 posts

+212
Excellent

Posted 23 November 2011 - 21:36

Sorry, there are problems.

Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Plugins/Extensions/XPower/plugin.py", line 236, in sendDelayed
	self.suspendIP(self.getItemParams(self.pcinfo))
  File "/usr/lib/enigma2/python/Plugins/Extensions/XPower/plugin.py", line 380, in suspendIP
	self.telnet(p,"rundll32.exe PowrProf.dll,SetSuspendState", "powercfg -h off", "powercfg -h off")
  File "/usr/lib/enigma2/python/Plugins/Extensions/XPower/plugin.py", line 438, in telnet
	telnet.write("N\r\n")
  File "/usr/lib/python2.6/telnetlib.py", line 280, in write
  File "<string>", line 1, in sendall
socket.error: [Errno 32] Broken pipe
I do not have a password on your computer.
This may not be the cause?

Edited by Dima73, 23 November 2011 - 21:38.

Lunix3-4K/VU+solo4k(thanks guys to gisclub.tv)


Re: XPower plugin - some things for lazy as me ... #7 Dimitrij

  • PLi® Core member
  • 6,582 posts

+212
Excellent

Posted 23 November 2011 - 21:43

Crash only when the team suspend.
With the rest everything is fine, although the computer can not execute.

Lunix3-4K/VU+solo4k(thanks guys to gisclub.tv)


Re: XPower plugin - some things for lazy as me ... #8 ims

  • PLi® Core member
  • 11,181 posts

+168
Excellent

Posted 23 November 2011 - 22:33

try enable line:
#telnet.set_debuglevel(1)
and you can see, what telnet displaying... may be, problem with azbuka ?

With the rest everything is fine, although the computer can not execute.

dont crash, but nothing happends ?
Kdo nic nedělá, nic nezkazí!

Re: XPower plugin - some things for lazy as me ... #9 ims

  • PLi® Core member
  • 11,181 posts

+168
Excellent

Posted 23 November 2011 - 22:38

I do not have a password on your computer.
This may not be the cause?


You must use password for administrator on win7.

There in Help is wroted, what must be set in os on PC. For powermanagement under Win7 must be administrator acount, under Linux must be root password.

Edited by ims, 23 November 2011 - 22:43.

Kdo nic nedělá, nic nezkazí!

Re: XPower plugin - some things for lazy as me ... #10 Dimitrij

  • PLi® Core member
  • 6,582 posts

+212
Excellent

Posted 24 November 2011 - 06:41

try enable line:
#telnet.set_debuglevel(1)

?

dont crash, but nothing happends ?

There are no errors, just nothing happens.
The evening will set the administrator password on Vin7.

Lunix3-4K/VU+solo4k(thanks guys to gisclub.tv)


Re: XPower plugin - some things for lazy as me ... #11 ims

  • PLi® Core member
  • 11,181 posts

+168
Excellent

Posted 24 November 2011 - 07:22

there in plugin.py is commented line #telnet.set_debuglevel(1) - then you can see in debug, what telnet lib returns.

WakeUp and MAC must work without any password/acount.
Here is 1.49 version - I find one stupid typo ( but not in Win7 section).

Edit: about Win7: if is not set true admin password in Win7, telnet.lib crashing.

Attached Files


Edited by ims, 24 November 2011 - 07:33.

Kdo nic nedělá, nic nezkazí!

Re: XPower plugin - some things for lazy as me ... #12 Dimitrij

  • PLi® Core member
  • 6,582 posts

+212
Excellent

Posted 24 November 2011 - 17:46

@ims

With a password, all ok.
Thank you again :) .
I'll write a translation into Russian.

Lunix3-4K/VU+solo4k(thanks guys to gisclub.tv)


Re: XPower plugin - some things for lazy as me ... #13 ims

  • PLi® Core member
  • 11,181 posts

+168
Excellent

Posted 24 November 2011 - 19:52

Ok :-)
Kdo nic nedělá, nic nezkazí!

Re: XPower plugin - some things for lazy as me ... #14 Dimitrij

  • PLi® Core member
  • 6,582 posts

+212
Excellent

Posted 26 November 2011 - 14:33

@ims
-Russian translation

Lunix3-4K/VU+solo4k(thanks guys to gisclub.tv)


Re: XPower plugin - some things for lazy as me ... #15 ims

  • PLi® Core member
  • 11,181 posts

+168
Excellent

Posted 11 January 2012 - 18:05

Here is new version for as both ( Dima73 and me ) :) :

- limited lcd support
- option for closing plugin when command was sended
- russian language

Attached Files


Kdo nic nedělá, nic nezkazí!

Re: XPower plugin - some things for lazy as me ... #16 Dimitrij

  • PLi® Core member
  • 6,582 posts

+212
Excellent

Posted 11 January 2012 - 18:33

ims.super.
Close plug a great idea :) .

Lunix3-4K/VU+solo4k(thanks guys to gisclub.tv)


Re: XPower plugin - some things for lazy as me ... #17 ims

  • PLi® Core member
  • 11,181 posts

+168
Excellent

Posted 28 February 2012 - 16:23

ims.super.
Close plug a great idea :) .


Yes, but it's setting must be saved :) Here is repaired version:

Attached Files


Kdo nic nedělá, nic nezkazí!

Re: XPower plugin - some things for lazy as me ... #18 Dimitrij

  • PLi® Core member
  • 6,582 posts

+212
Excellent

Posted 28 February 2012 - 21:23

I saw the error after the restart Enigma setting is not saved.
But I was so happy with everything :) .

Lunix3-4K/VU+solo4k(thanks guys to gisclub.tv)


Re: XPower plugin - some things for lazy as me ... #19 hispanico957

  • Senior Member
  • 61 posts

+1
Neutral

Posted 27 October 2017 - 20:54

Sry but with this plugin i can wakeup my nas on same network form my decoder zgemma ??

 

Thank

Hispa



Re: XPower plugin - some things for lazy as me ... #20 ims

  • PLi® Core member
  • 11,181 posts

+168
Excellent

Posted 28 October 2017 - 12:07

I am using it on Zgemma H7 too and works standardly. But time to time I must reboot H7, because time to time H7 wants wake-up nothing...


Kdo nic nedělá, nic nezkazí!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users