Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.hardware > #3305 > unrolled thread

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

Started byWojciech Zabołotny <wzab@wzab.nasz.dom>
First post2018-02-20 21:04 +0000
Last post2018-02-22 15:09 +0100
Articles 8 — 5 participants

Back to article view | Back to comp.os.linux.hardware


Contents

  EG-PMS2-LAN - Ethernet controlled power strip - works in Linux Wojciech Zabołotny <wzab@wzab.nasz.dom> - 2018-02-20 21:04 +0000
    Re: EG-PMS2-LAN - Ethernet controlled power strip - works in Linux "Carlos E.R." <robin_listas@es.invalid> - 2018-02-21 13:03 +0100
      Re: EG-PMS2-LAN - Ethernet controlled power strip - works in Linux scott@alfter.diespammersdie.us (Scott Alfter) - 2018-02-21 19:46 +0000
        Re: EG-PMS2-LAN - Ethernet controlled power strip - works in Linux "Carlos E.R." <robin_listas@es.invalid> - 2018-02-22 01:13 +0100
    Re: EG-PMS2-LAN - Ethernet controlled power strip - works in Linux Joe Beanfish <joebeanfish@nospam.duh> - 2018-02-21 14:45 +0000
      Re: EG-PMS2-LAN - Ethernet controlled power strip - works in Linux "Carlos E.R." <robin_listas@es.invalid> - 2018-02-22 01:21 +0100
      Re: EG-PMS2-LAN - Ethernet controlled power strip - works in Linux wzab01@gmail.com - 2018-02-22 04:26 -0800
        Re: EG-PMS2-LAN - Ethernet controlled power strip - works in Linux "Carlos E.R." <robin_listas@es.invalid> - 2018-02-22 15:09 +0100

#3305 — EG-PMS2-LAN - Ethernet controlled power strip - works in Linux

FromWojciech Zabołotny <wzab@wzab.nasz.dom>
Date2018-02-20 21:04 +0000
SubjectEG-PMS2-LAN - Ethernet controlled power strip - works in Linux
Message-ID<slrnp8p3aa.630.wzab@wzab.nasz.dom>
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.

[toc] | [next] | [standalone]


#3306

From"Carlos E.R." <robin_listas@es.invalid>
Date2018-02-21 13:03 +0100
Message-ID<gp30me-vbo.ln1@Telcontar.valinor>
In reply to#3305
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.

[toc] | [prev] | [next] | [standalone]


#3308

Fromscott@alfter.diespammersdie.us (Scott Alfter)
Date2018-02-21 19:46 +0000
Message-ID<p6kibd$gut$1@dont-email.me>
In reply to#3306
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?

[toc] | [prev] | [next] | [standalone]


#3310

From"Carlos E.R." <robin_listas@es.invalid>
Date2018-02-22 01:13 +0100
Message-ID<hhe1me-a44.ln1@Telcontar.valinor>
In reply to#3308
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.

[toc] | [prev] | [next] | [standalone]


#3307

FromJoe Beanfish <joebeanfish@nospam.duh>
Date2018-02-21 14:45 +0000
Message-ID<p6k0n1$tha$1@dont-email.me>
In reply to#3305
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.

[toc] | [prev] | [next] | [standalone]


#3309

From"Carlos E.R." <robin_listas@es.invalid>
Date2018-02-22 01:21 +0100
Message-ID<q0f1me-l35.ln1@Telcontar.valinor>
In reply to#3307
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.

[toc] | [prev] | [next] | [standalone]


#3311

Fromwzab01@gmail.com
Date2018-02-22 04:26 -0800
Message-ID<be52ec99-3305-49af-91d5-ed9d156bbc86@googlegroups.com>
In reply to#3307
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

[toc] | [prev] | [next] | [standalone]


#3312

From"Carlos E.R." <robin_listas@es.invalid>
Date2018-02-22 15:09 +0100
Message-ID<miv2me-eng.ln1@Telcontar.valinor>
In reply to#3311
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.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.os.linux.hardware


csiph-web