PowerControl plugin v1.10.0 for MediaPortal 1.3.0 and higher (2 Viewers)

technick

Portal Pro
May 6, 2009
566
155
Home Country
France France
Re: PowerControl plugin for MediaPortal v0.3.0

Thanks for the job on GUI, I make a copy in Steamed MP folder and it work fine. But for your information the wakup of my ubuntu server don't work. I use WOL - Magic Packet Sender, same IP, same MAC, protocol UDP port 9 and my server start.
 

Micropolis

Portal Pro
July 22, 2009
1,588
1,796
Bavaria
Home Country
Germany Germany
Re: PowerControl plugin for MediaPortal v0.3.0

Hello technik,
by default, PowerControl use port 40000 to wakeup a computer.
As a workaround, open the mediaportal.xml with editor, define an entry "NetworkDeviceWakeupPort" in the PowerControl section and give it the value "9". Please be aware, that this is a global setting, if you have different devices with different wakeup ports, it is required to enhance the configuration dialog.

Cheers, Micropolis
 

technick

Portal Pro
May 6, 2009
566
155
Home Country
France France
Re: PowerControl plugin for MediaPortal v0.3.0

Hello, it sound like a bug ;-) I made your modification but it don't work, I make others tests and I just discover something else : If I go to the last right icon of my server it work, if I use the menu it don't work. I need now to re-test with your default port, I think it will work. It seem to be just a bug in the menu.

Edit :
Tested with the default config, it work if I use the icon, definitively just a menu bug.
 

Micropolis

Portal Pro
July 22, 2009
1,588
1,796
Bavaria
Home Country
Germany Germany
Re: PowerControl plugin for MediaPortal v0.3.0

Hi technick,
thx for your finding. I want to check this possible problem tomorrow and upload a new version immediately.

Cheers, Micropolis ;-)
 

Guzzi

Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,161
    747
    AW: PowerControl plugin for MediaPortal v0.3.0

    Dear community,
    the updated version v0.3.0 of this plugin is ready for downloading.

    Informations for users:
    • GUI support and global property support introduced
    • Alive Check functionality added

    Informations for skinners:
    • Please use the included skin template to create a appropriate skin file.

    Cheers, Micropolis ;-)

    Hi Micropolis,

    would you mind supplying the source code as well?
    I am currently working on integration WOL support in another plugin and would be interested in the code for "Alive check" - would save me the efforts to reinvent the wheel ... ;-)
    Thanks, Guzzi
     

    Micropolis

    Portal Pro
    July 22, 2009
    1,588
    1,796
    Bavaria
    Home Country
    Germany Germany
    Re: PowerControl plugin for MediaPortal v0.3.0

    Hello, it sound like a bug ;-) I made your modification but it don't work, I make others tests and I just discover something else : If I go to the last right icon of my server it work, if I use the menu it don't work. I need now to re-test with your default port, I think it will work. It seem to be just a bug in the menu.

    Edit :
    Tested with the default config, it work if I use the icon, definitively just a menu bug.

    Hi technick,
    I've made some double checks today and I cannot reproduce this issue.
    Maybe the problem is located in your configuration or (currently) not supported non-windows remote systems. If I have enough time, I want to introduce Linux support step by step.

    I am currently working on integration WOL support in another plugin and would be interested in the code for "Alive check" - would save me the efforts to reinvent the wheel ... ;-)
    Thanks, Guzzi

    Hi Guzzi,
    see private message for more information.

    Cheers, Micropolis
     

    Scrounger

    Retired Team Member
  • Premium Supporter
  • January 21, 2009
    1,032
    514
    Stuttgart
    Home Country
    Germany Germany
    Re: PowerControl plugin for MediaPortal v0.3.0

    Hi Micropolis,

    thanks for the new version.
    Could you please implement a alive check at MP Start in a future version?

    I have created a skin file for StreamedMP and correct the german language files ;)

    pw2.jpg


    If someone like to see in every Menu, if your NAS is online or not, just write these lines at the end of your common.time.xml file, before </controls>. Your NAS must be the first Entry in the plugin or you must change the <digit> value.
    <control>
    <id>0</id>
    <description>Power Control NAS on / off State</description>
    <type>image</type>
    <posX>104</posX>
    <posY>17</posY>
    <width>16</width>
    <height>16</height>
    <texture>#PowerControl.NetworkDevice0AliveImage</texture>
    <animation effect="fade" time="200" delay="100">WindowOpen</animation>
    </control>

    Thenn you see the little status flag / status icon right of your clock in all menus (look at the Screenshot above)
    Power Control StreamedMP.jpg

    Skin Files are included in the actual Version of StreamedMP-1.4.2.2136
     

    Micropolis

    Portal Pro
    July 22, 2009
    1,588
    1,796
    Bavaria
    Home Country
    Germany Germany
    Re: PowerControl plugin for MediaPortal v0.3.0

    Hi Scrounger,

    Could you please implement a alive check at MP Start in a future version?

    sure, currently I'd see some time critical issues if the alive check starts at MP startup. I'll make some modifications/optimizations here in the next few days and publish a new version asap.

    Cheers, Micropolis ;-)
     

    Scrounger

    Retired Team Member
  • Premium Supporter
  • January 21, 2009
    1,032
    514
    Stuttgart
    Home Country
    Germany Germany
    Re: PowerControl plugin for MediaPortal v0.3.0

    Great thanks a lot.

    The Shutdown Function doesn't work for me. Which command do you use for shutdown ?

    C:\windows\system32\shutdown.exe /s /m \\10.0.1.11 /c "System wird durch TV Server heruntergefahren !!!"
    This works for me over the consol (cmd).

    Could you also implement a new Category: Router with a nice picture, f. e. a fritz!Box and the function / trigger that an pc starts on MP Startup and shutdown on MP close?

    For all Win 7 System User (and Vista?):
    Here is a describtion how you can set your permisions for remote shutdown
     

    Micropolis

    Portal Pro
    July 22, 2009
    1,588
    1,796
    Bavaria
    Home Country
    Germany Germany
    Re: PowerControl plugin for MediaPortal v0.3.0

    Hi Scrounger,
    PowerControl use the executable file "psexec.exe" to start a command on a remote device locally (means on the device itself). For more informations about command line parameters etc. please use the link in the first post of this thread.
    Category is implemented, the trigger functionality can be realized with the next major version.

    EDIT: As I said before, only windows remote devices are supported yet. If I get help from other community members, it is possible to add support for other operating systems. I can't test this in my environment, because I don't have this equipment.
    A second possibility is to implement an alternative method (e.g. with this tool - thx to joz for his hidden hint), but it needs time. And time is very rare...

    Cheers, Micropolis
     

    Users who are viewing this thread

    Top Bottom