Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

344 views
Skip to first unread message

Wojciech Zabołotny

unread,
Feb 20, 2018, 4:04:12 PM2/20/18
to
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.

Carlos E.R.

unread,
Feb 21, 2018, 7:03:51 AM2/21/18
to
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.

Joe Beanfish

unread,
Feb 21, 2018, 9:45:55 AM2/21/18
to
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.

Scott Alfter

unread,
Feb 21, 2018, 2:46:55 PM2/21/18
to
In article <gp30me-...@Telcontar.valinor>,
Carlos E.R. <robin_...@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?

Carlos E.R.

unread,
Feb 21, 2018, 7:27:49 PM2/21/18
to
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.

Carlos E.R.

unread,
Feb 21, 2018, 7:27:50 PM2/21/18
to
On 2018-02-21 20:46, Scott Alfter wrote:
> In article <gp30me-...@Telcontar.valinor>,
> Carlos E.R. <robin_...@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.

wza...@gmail.com

unread,
Feb 22, 2018, 7:26:58 AM2/22/18
to
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

Carlos E.R.

unread,
Feb 22, 2018, 9:11:47 AM2/22/18
to
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.
0 new messages