Hallo,
I have a big Problem. My Raspberry Pi 3 is Running with raspbian stretch lite and pimatic inkl. Sispmctl Plugin. I have many hours of Google behind me but my enerGeni EG-PM2 dosent work. (No usb Connection)
Sry for my Bad englisch
Pimatic and em-pm2 socket
Hallo,
I have a big Problem. My Raspberry Pi 3 is Running with raspbian stretch lite and pimatic inkl. Sispmctl Plugin. I have many hours of Google behind me but my enerGeni EG-PM2 dosent work. (No usb Connection)
Sry for my Bad englisch
Works for me (RPi 3/Stretch). What I did:
sudo apt-get install libusb-dev
# download sispmctl-4.1.tar.gz from sourceforge
tar xzvf sispmctl-4.1.tar.gz
cd sispmctl-4.1/
./configure
make
sudo make install
At this point the sispmctl
should work, however, in my setup it cannot find shared object libsispmctl.so.0
as /usr/local/lib/
is not configured as a default search path for libraries. You can do so by editing /etc/ld.so.conf
, for example:
# you may also use another text editor like nano
sudo vi /etc/ld.so.conf
and add the following line and save:
include /usr/local/lib
Now, call ldconfig
as follows:
sudo ldconfig
Then try sispmctl
sudo sispmctl
SiS PM Control for Linux 4.1
(C) 2015-2018, Heinrich Schuchardt <xypron.glpk@gmx.de>
(C) 2011-2016, Pete Hildebrandt <send2ph@gmail.com>
(C) 2004-2011, Mondrian Nuessle
(C) 2005-2006, Andreas Neuper
(C) 2010, Olivier Matheret for the planning part
This program comes with ABSOLUTELY NO WARRANTY.
You may re-distribute it under the terms of the
GNU General Public License version 2 or later.
sispmctl -s
sispmctl [-q] [-n] [-d 0...] [-D ...] -b <on|off>
sispmctl [-q] [-n] [-d 0...] [-D ...] -[o|f|t|g|m] 1..4|all
sispmctl [-q] [-n] [-d 0...] [-D ...] -[a|A] 1..4|all [--Aat '...'] [--Aafter ...] [--Ado <on|off>] ... [--Aloop ...]
'v' - print version & copyright
'h' - print this usage information
's' - scan for supported GEMBIRD devices
'b' - switch buzzer on or off
'o' - switch outlet(s) on
'f' - switch outlet(s) off
't' - toggle outlet(s) on/off
'g' - get status of outlet(s)
'm' - get power supply status outlet(s) on/off
'd' - apply to device 'n'
'D' - apply to device with given serial number
'n' - show result numerically
'q' - quiet mode, no explanations - but errors
'a' - get plannification for outlet
'A' - set plannification for outlet
'-A<num>' - select outlet
'--Aat "date"' - sets an event time as a date '%Y-%m-%d %H:%M'
'--Aafter N' - sets an event time as N minutes after the previous one
'--Ado <on|off>' - sets the current event's action
'--Aloop N' - loops to 1st event's action after N minutes
Webinterface features:
sispmctl [-q] [-i <ip>] [-p <#port>] [-u <path>] -l|L
'l' - start port listener
'L' - same as 'l', but stay in foreground
'i' - bind socket on interface with given IP (dotted decimal, i.e. 192.168.1.1)
'p' - port number for listener (2638)
'u' - repository for web pages (default=/usr/local/share/doc/sispmctl/skin)
I have also tried the plugin which worked for me right away:
Plugin
{
"plugin": "sispmctl",
"active": true
}
Device for the first power socket
{
"outletUnit": 1,
"id": "sispm-1",
"name": "sispm-1",
"class": "SispmctlSwitch"
}
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law