Hello together,
I’m had an working openhab2 system on an Raspberry2 with homematic products over homegear and HMLanD.
Now I’m new implementing this system on an Rasperry3 with USB-Boot Option to get not the last problem with an corrupt MicroSD.
When I install homegear and Openhab there are no problems, but the HMLanD is not “online”.
I installed HMLanD right with this script:
#!/bin/sh
cd /opt/
apt-get install build-essential libusb-1.0-0-dev make gcc git-core
git clone git://git.zerfleddert.de/hmcfgusb
cd hmcfgusb
make
cat > /etc/init.d/hmland <<"EOF"
#!/bin/sh
# simple init for hmland
### BEGIN INIT INFO
# Provides: hmland
# Required-Start: $network $local_fs $remote_fs
# Required-Stop:: $network $local_fs $remote_fs
# Should-Start: $all
# Should-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start hmland daemon at boot time
# Description: Provide Service to use HM-USB-CFG Adapter for FHEM.
### END INIT INFO
pidfile=/var/run/hmland.pid
port=1234
case "$1" in
start|"")
chrt 50 /opt/hmcfgusb/hmland -r 0 -d -P -l 127.0.0.1 -p $port 2>&1 | perl -ne '$|=1; print localtime . ": [hmland] $_"' >> /var/log/hmland.log &
;;
restart|reload|force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
stop)
killall hmland
;;
status)
if [ ! -e $pidfile ]; then
echo "No pid"
exit 1
fi
pid=`cat $pidfile`
if kill -0 $pid &>1 > /dev/null; then
echo "Running"
exit 0
else
rm $pidfile
echo "Not running"
exit 1
fi
;;
*)
echo "Usage: hmland [start|stop|status]" >&2
exit 3
;;
esac
EOF
sudo chmod 755 /etc/init.d/hmland
sudo update-rc.d hmland defaults
sudo service hmland start
When I’m starting the HMLanD direct with:
root@openhab:/opt/hmcfgusb# ./hmland -D -p 4343
there are no reactions.
Could anyone help in this point?
If this is the wrong forum or position please tell me the right one.
Best Regards and thanks,
Chris