Ich aktualisiere nur, hab leider keinnScript.
Für Nicht-Raspi reicht wohl python pakete, via Github smarthome u -visu ziehen.
Für Nicht-Raspi reicht wohl python pakete, via Github smarthome u -visu ziehen.
#KNXD_OPTS="-e1.1.60 -E1.1.61:2 -i -u -b ipt:10.0.0.101 -c" #KNXD_OPTS="-e 1.1.150 -u /tmp/eib -b ipt:192.168.11.100" [A.tcp] server = knxd_tcp systemd-ignore = true [A.unix] path = /tmp/eib server = knxd_unix systemd-ignore = false [B.ipt] driver = ipt filters = C.pace ip-address = 192.168.11.100 [C.pace] delay = 50 filter = pace [main] addr = 1.1.150 client-addrs=1.1.151:2 cache = D.cache connections = A.tcp,A.unix,B.ipt systemd = systemd background = true
KNXD_OPTS=/etc/knxd.ini
(#)~:$ systemctl status knxd.service 22:05:03 ● knxd.service - KNX Daemon Loaded: loaded (/lib/systemd/system/knxd.service; enabled) Active: activating (auto-restart) (Result: signal) since Fr 2017-06-09 22:05: 19 CEST; 6s ago Process: 3796 ExecStart=/usr/bin/knxd $KNXD_OPTS (code=killed, signal=ABRT) Main PID: 3796 (code=killed, signal=ABRT) Jun 09 22:05:19 raspberrypi systemd[1]: Failed to start KNX Daemon. Jun 09 22:05:19 raspberrypi systemd[1]: Unit knxd.service entered failed state. Hint: Some lines were ellipsized, use -l to show in full. [Exit 3 ] (#)~:$ 22:05:26
(#)~:$ sudo systemctl stop knxd.socket 22:13:23 (#)~:$ sudo systemctl stop knxd.service 22:13:31 (#)~:$ sudo systemctl enable knxd.service 22:13:38 Synchronizing state for knxd.service with sysvinit using update-rc.d... Executing /usr/sbin/update-rc.d knxd defaults Executing /usr/sbin/update-rc.d knxd enable (#)~:$ sudo systemctl enable knxd.socket 22:13:48 (#)~:$ sudo systemctl start knxd.socket 22:14:03 (#)~:$ sudo systemctl start knxd.service 22:14:10 Job for knxd.service failed. See 'systemctl status knxd.service' and 'journalctl -xn' for details. [Exit 1 ] (#)~:$ ^C 22:14:16 [Exit 130 SIGINT] (#)~:$ journalctl -xn 22:14:28 -- Logs begin at Fr 2017-06-09 21:41:38 CEST, end at Fr 2017-06-09 22:14:26 CEST. -- Jun 09 22:14:16 raspberrypi sudo[4310]: pam_unix(sudo:session): session closed for user root Jun 09 22:14:18 raspberrypi dhcpcd[1061]: eth0: fe80::3a10:d5ff:feab:5336 router available Jun 09 22:14:23 raspberrypi dhcpcd[1061]: eth0: fe80::3a10:d5ff:feab:5336 router available Jun 09 22:14:26 raspberrypi systemd[1]: knxd.service holdoff time over, scheduling restart. Jun 09 22:14:26 raspberrypi systemd[1]: Stopping KNX Daemon... -- Subject: Unit knxd.service has begun shutting down -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit knxd.service has begun shutting down. Jun 09 22:14:26 raspberrypi systemd[1]: Starting KNX Daemon... -- Subject: Unit knxd.service has begun with start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit knxd.service has begun starting up. Jun 09 22:14:26 raspberrypi knxd[4357]: E00000000: [12:A.tcp] invalid transition: >up => down Jun 09 22:14:26 raspberrypi systemd[1]: knxd.service: main process exited, code=killed, status=6/ABR Jun 09 22:14:26 raspberrypi systemd[1]: Failed to start KNX Daemon. -- Subject: Unit knxd.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit knxd.service has failed. -- -- The result is failed.
[BackendServer]
class_name: BackendServer
class_path: plugins.backend
# user: admin
# password: very_secure_password
[knx]
class_name = KNX
class_path = plugins.knx
host = 127.0.0.1
port = 6720
# send_time = 600 # update date/time every 600 seconds, default none
# time_ga = 1/1/1 # default none
# date_ga = 1/1/2 # default none
# [ow]
# class_name = OneWire
# class_path = plugins.onewire
[visu]
class_name = WebSocket
class_path = plugins.visu_websocket
[smartvisu]
class_name = SmartVisu
class_path = plugins.visu_smartvisu
smartvisu_dir = /var/www/html/smartvisu
[cli]
class_name = CLI
class_path = plugins.cli
ip = 192.168.178.30
# update = True
[sql]
class_name = SQL
class_path = plugins.sqlite
2017-06-10 11:06:24 INFO Main Number of Threads: 7
2017-06-10 11:06:24 INFO Main SmartHomeNG stopped
2017-06-10 09:06:40 INFO Main Loading '/usr/local/smarthome/etc/smarthome.yaml' to 'OrderedDict'
2017-06-10 11:06:40 WARNING Main -------------------- Init SmartHomeNG 1.4.ae08cfc.dev --------------------
2017-06-10 11:06:40 INFO Main Init Scheduler
2017-06-10 11:06:40 INFO Main Init Plugins
2017-06-10 11:06:40 ERROR Main Unhandled exception: 'class_name'
<class 'KeyError'>
File "/usr/local/smarthome/bin/smarthome.py", line 653, in <module>
sh.start()
File "/usr/local/smarthome/bin/smarthome.py", line 315, in start
self._plugins = lib.plugin.Plugins(self, configfile=self._plugin_conf_basename)
File "/usr/local/smarthome/lib/plugin.py", line 65, in __init__
classname = _conf[plugin][KEY_CLASS_NAME]
smarthome@raspberrypi:~$ sudo service smarthome stop
smarthome@raspberrypi:~$ python3 /usr/local/smarthome/bin/smarthome.py -d
2017-06-10 10:56:18 INFO shyaml Main Loading '/usr/local/smarthome/etc/smarthome.yaml' to 'OrderedDict' -- shyaml.py:yaml_load:46
2017-06-10 12:56:18 WARNING smarthome Main -------------------- Init SmartHomeNG 1.4.ae08cfc.dev -------------------- -- smarthome.py:__init__:229
2017-06-10 12:56:18 DEBUG smarthome Main Python 3.5.2 -- smarthome.py:__init__:230
2017-06-10 12:56:18 DEBUG smarthome Main DB-APIs sqlite -- smarthome.py:__init__:231
2017-06-10 12:56:18 INFO scheduler Main Init Scheduler -- scheduler.py:__init__:89
2017-06-10 12:56:18 DEBUG scheduler Scheduler creating 5 workers -- scheduler.py:run:96
2017-06-10 12:56:18 INFO smarthome Main Init Plugins -- smarthome.py:start:314
2017-06-10 12:56:18 DEBUG plugin Main Plugin: BackendServer -- plugin.py:__init__:58
2017-06-10 12:56:18 ERROR smarthome Main Unhandled exception: 'class_name'
<class 'KeyError'>
File "/usr/local/smarthome/bin/smarthome.py", line 653, in <module>
sh.start()
File "/usr/local/smarthome/bin/smarthome.py", line 315, in start
self._plugins = lib.plugin.Plugins(self, configfile=self._plugin_conf_basename)
File "/usr/local/smarthome/lib/plugin.py", line 65, in __init__
classname = _conf[plugin][KEY_CLASS_NAME]
-- smarthome.py:_excepthook:542
^C2017-06-10 12:59:08 INFO smarthome Main Number of Threads: 7 -- smarthome.py:stop:379
2017-06-10 12:59:08 INFO smarthome Main SmartHomeNG stopped -- smarthome.py:stop:403
Exception ignored in: <module 'threading' from '/usr/local/lib/python3.5/threading.py'>
Traceback (most recent call last):
File "/usr/local/lib/python3.5/threading.py", line 1288, in _shutdown
t.join()
File "/usr/local/lib/python3.5/threading.py", line 1054, in join
self._wait_for_tstate_lock()
File "/usr/local/lib/python3.5/threading.py", line 1070, in _wait_for_tstate_lock
elif lock.acquire(block, timeout):
File "/usr/local/smarthome/bin/smarthome.py", line 407, in stop
exit()
File "/usr/local/lib/python3.5/_sitebuiltins.py", line 26, in __call__
raise SystemExit(code)
SystemExit: None
smarthome@raspberrypi:~$
WebSocket: protocol mismatch. SmartHomeNG protocol version=3, visu protocol version=4
BackendServer:
class_name: BackendServer
class_path: plugins.backend
user: admin
hashed_password: ...geheim....
knx:
class_name: KNX
class_path: plugins.knx
host: 127.0.0.1
port: 6720
# send_time = 600 # update date/time every 600 seconds, default none
# time_ga = 1/1/1 # default none
# date_ga = 1/1/2 # default none
# [ow]
# class_name = OneWire
# class_path = plugins.onewire
websocket:
class_name: WebSocket
class_path: plugins.visu_websocket
# ip = 0.0.0.0
# port = 2424
# tls = no
wsproto: 4
acl: rw
smartvisu:
class_name: SmartVisu
class_path: plugins.visu_smartvisu
smartvisu_dir: /var/www/html/smartvisu
cli:
class_name: CLI
class_path: plugins.cli
ip: 192.168.178.30
# update = True
sql:
class_name: SQL
# class_path: plugins.sqlite
class_path: plugins.sqlite_visu2_8
Wir verarbeiten personenbezogene Daten über die Nutzer unserer Website mithilfe von Cookies und anderen Technologien, um unsere Dienste bereitzustellen. Weitere Informationen findest Du in unserer Datenschutzerklärung.
Indem Du unten auf "ICH stimme zu" klickst, stimmst Du unserer Datenschutzerklärung und unseren persönlichen Datenverarbeitungs- und Cookie-Praktiken zu, wie darin beschrieben. Du erkennst außerdem an, dass dieses Forum möglicherweise außerhalb Deines Landes gehostet wird und bist damit einverstanden, dass Deine Daten in dem Land, in dem dieses Forum gehostet wird, gesammelt, gespeichert und verarbeitet werden.


Kommentar