• EG-PMS2-LAN - Ethernet controlled power strip - works in Linux

    From Wojciech =?UTF-8?Q?Zabo=C5=82otny?=@21:1/5 to All on Tue Feb 20 21:04:10 2018
    I was looking for a cheap Ethernet controlled power strip compatible
    with Linux, that I could control not only from web GUI, but also from my software.
    I have found EG-PMS2-LAN: http://gembird.nl/item.aspx?id=7416
    at reasonable price.
    The manufacturer offers only Windows software, but it can be controlled
    from Linux, using the egctl software https://github.com/unterwulf/egctl
    written by Vitaly Sinilin (thanks a lot!)
    The software is open source, so everybody can easily integrat it with
    programms written in other languages (Python, Lua,...).
    It is also possible to extract the communication protocol and implement
    it in another language.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Carlos E.R.@21:1/5 to All on Wed Feb 21 13:03:28 2018
    On 2018-02-20 22:04, Wojciech Zabołotny wrote:
    I was looking for a cheap Ethernet controlled power strip compatible
    with Linux, that I could control not only from web GUI, but also from my software.
    I have found EG-PMS2-LAN: http://gembird.nl/item.aspx?id=7416
    at reasonable price.
    The manufacturer offers only Windows software, but it can be controlled
    from Linux, using the egctl software https://github.com/unterwulf/egctl written by Vitaly Sinilin (thanks a lot!)
    The software is open source, so everybody can easily integrat it with programms written in other languages (Python, Lua,...).
    It is also possible to extract the communication protocol and implement
    it in another language.


    Thankyou! :-)

    I was seeking for a similar thing.

    My use case is that my router locks hard randomly. Several times a day,
    or once per month. So I could ping it from a computer, and if no
    response, then power cycle it.

    The question then is if I can pulse the power off, not permanently. That
    it automatically returns to power on state, or my router will never
    power on again.

    Alternatively, I will have to add an Ethernet switch to the combo, so
    that I keep control of the power strip even if the router power is off.



    On Amazon Spain it is 65.50€, and there are other variations; for
    instance, there is another for WLAN.

    --
    Cheers, Carlos.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Joe Beanfish@21:1/5 to All on Wed Feb 21 14:45:53 2018
    On Tue, 20 Feb 2018 21:04:10 +0000, Wojciech Zabołotny wrote:

    I was looking for a cheap Ethernet controlled power strip compatible
    with Linux, that I could control not only from web GUI, but also from my software.
    I have found EG-PMS2-LAN: http://gembird.nl/item.aspx?id=7416
    at reasonable price.
    The manufacturer offers only Windows software, but it can be controlled
    from Linux, using the egctl software https://github.com/unterwulf/egctl written by Vitaly Sinilin (thanks a lot!)
    The software is open source, so everybody can easily integrat it with programms written in other languages (Python, Lua,...).
    It is also possible to extract the communication protocol and implement
    it in another language.


    The one you mention says it has a web interface. So all you need
    is a browser. You can probably script access to that interface using
    curl or whathaveyou. It claims to also provide an SDK, but that's
    probably Windows based.

    These may be overkill for you situation, but anyhow...

    http://www.digital-loggers.com/lpc.html http://www.wti.com/c-38-basic-switched-pdu-horizontal.aspx

    Also, a web search for
    remote power switch
    comes up with more options. These things tend to be managed by
    web interfaces so you can usually script them.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Scott Alfter@21:1/5 to Carlos E.R. on Wed Feb 21 19:46:53 2018
    In article <gp30me-vbo.ln1@Telcontar.valinor>,
    Carlos E.R. <robin_listas@es.invalid> wrote:
    On 2018-02-20 22:04, Wojciech Zabołotny wrote:
    I was looking for a cheap Ethernet controlled power strip compatible
    with Linux, that I could control not only from web GUI, but also from my
    software.
    I have found EG-PMS2-LAN: http://gembird.nl/item.aspx?id=7416
    at reasonable price.

    I was seeking for a similar thing.

    My use case is that my router locks hard randomly. Several times a day,
    or once per month. So I could ping it from a computer, and if no
    response, then power cycle it.

    The question then is if I can pulse the power off, not permanently. That
    it automatically returns to power on state, or my router will never
    power on again.

    I went with a RemoteBoot:

    https://the-perf-shop.myshopify.com/products/remoteboot-preorder

    (The link says "preorder" because it originated on Kickstarter, but it's already in small-scale production.)

    It goes inside your computer's case, connected inline on the power- and reset-switch leads, and draws power from a USB header or other always-on 5V source. It uses WiFi instead of Ethernet, but you can log into it to turn
    your computer on and off and hit Reset. You can also have it monitor the activity and hard-drive LED outputs to trigger a reset if no activity is
    seen on them after some interval. $30, and since it doesn't handle line
    power by itself, it works anywhere.

    _/_
    / v \ Scott Alfter (remove the obvious to send mail)
    (IIGS( https://alfter.us/ Top-posting!
    \_^_/ >What's the most annoying thing on Usenet?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Carlos E.R.@21:1/5 to Joe Beanfish on Thu Feb 22 01:21:10 2018
    On 2018-02-21 15:45, Joe Beanfish wrote:
    On Tue, 20 Feb 2018 21:04:10 +0000, Wojciech Zabołotny wrote:

    I was looking for a cheap Ethernet controlled power strip compatible
    with Linux, that I could control not only from web GUI, but also from my
    software.
    I have found EG-PMS2-LAN: http://gembird.nl/item.aspx?id=7416
    at reasonable price.
    The manufacturer offers only Windows software, but it can be controlled
    from Linux, using the egctl software https://github.com/unterwulf/egctl
    written by Vitaly Sinilin (thanks a lot!)
    The software is open source, so everybody can easily integrat it with
    programms written in other languages (Python, Lua,...).
    It is also possible to extract the communication protocol and implement
    it in another language.


    The one you mention says it has a web interface. So all you need
    is a browser. You can probably script access to that interface using
    curl or whathaveyou. It claims to also provide an SDK, but that's
    probably Windows based.

    These may be overkill for you situation, but anyhow...

    http://www.digital-loggers.com/lpc.html http://www.wti.com/c-38-basic-switched-pdu-horizontal.aspx

    Also, a web search for
    remote power switch
    comes up with more options. These things tend to be managed by
    web interfaces so you can usually script them.

    The power strip in the OP has a command line Linux program, third party.
    It doesn't seem to have the full capabilities of the Windows program,
    though.

    --
    Cheers, Carlos.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Carlos E.R.@21:1/5 to Scott Alfter on Thu Feb 22 01:13:05 2018
    On 2018-02-21 20:46, Scott Alfter wrote:
    In article <gp30me-vbo.ln1@Telcontar.valinor>,
    Carlos E.R. <robin_listas@es.invalid> wrote:
    On 2018-02-20 22:04, Wojciech Zabołotny wrote:
    I was looking for a cheap Ethernet controlled power strip compatible
    with Linux, that I could control not only from web GUI, but also from my >>> software.
    I have found EG-PMS2-LAN: http://gembird.nl/item.aspx?id=7416
    at reasonable price.

    I was seeking for a similar thing.

    My use case is that my router locks hard randomly. Several times a day,
    or once per month. So I could ping it from a computer, and if no
    response, then power cycle it.

    The question then is if I can pulse the power off, not permanently. That
    it automatically returns to power on state, or my router will never
    power on again.

    I went with a RemoteBoot:

    https://the-perf-shop.myshopify.com/products/remoteboot-preorder

    (The link says "preorder" because it originated on Kickstarter, but it's already in small-scale production.)

    It goes inside your computer's case, connected inline on the power- and reset-switch leads, and draws power from a USB header or other always-on 5V source. It uses WiFi instead of Ethernet, but you can log into it to turn your computer on and off and hit Reset. You can also have it monitor the activity and hard-drive LED outputs to trigger a reset if no activity is
    seen on them after some interval. $30, and since it doesn't handle line power by itself, it works anywhere.

    What I want has to be near the router, and there is no computer nearby,
    so no USB and no case. The purpose is to power cycle the router, so I
    can't count on Internet to access it, it has to be LAN.

    The thing in the OP seems just it.

    --
    Cheers, Carlos.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From wzab01@gmail.com@21:1/5 to All on Thu Feb 22 04:26:56 2018
    W dniu środa, 21 lutego 2018 15:45:55 UTC+1 użytkownik Joe Beanfish napisał:

    The one you mention says it has a web interface. So all you need
    is a browser. You can probably script access to that interface using
    curl or whathaveyou. It claims to also provide an SDK, but that's
    probably Windows based.


    Yes, but I wanted to control it from the Python script, not by hand from the browser!
    Thats why the unofficial "egctl" software was essential for me.

    Thanks & regards,
    Wojtek

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Carlos E.R.@21:1/5 to wzab01@gmail.com on Thu Feb 22 15:09:58 2018
    On 2018-02-22 13:26, wzab01@gmail.com wrote:
    W dniu środa, 21 lutego 2018 15:45:55 UTC+1 użytkownik Joe Beanfish napisał:

    The one you mention says it has a web interface. So all you need
    is a browser. You can probably script access to that interface using
    curl or whathaveyou. It claims to also provide an SDK, but that's
    probably Windows based.


    Yes, but I wanted to control it from the Python script, not by hand from the browser!
    Thats why the unofficial "egctl" software was essential for me.

    I have purchased one, should arrive today.

    What I want to do is, from a Linux script, order the device to power off
    a socket for, say, 5 seconds (the one powering the router), then return
    to power it up again, automatically without another order from the
    script (the router been down impedes any further order).

    All local without using Internet at all (which may be down in fact).

    If that turns to be impossible, I'll connect a hardware timer to one
    socket to achieve that purpose.

    --
    Cheers, Carlos.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)