Moin zusammen,
ich habe Probleme die Verbindung zum owserver herzustellen.
Als Busmaster verwende ich den LinkUSBi
meine plugins.conf
meine owfs.conf:
smarthome.log
Smarthome.py kann also keine Verbindung zum owserver herstellen.
Was funktioniert:
1. per Zugriff via Browser auf den owhttpd wird der Busmaster auch angezeigt.
2. wenn ich den owserver über die Kommandozeile mit dem Befehl :
starte und dann smarthome neu starte, erscheint der Error nicht mehr im Log und die Verbindung scheint zu klappen.
hat jemand eine Idee woran das liegen könnte?
ich habe Probleme die Verbindung zum owserver herzustellen.
Als Busmaster verwende ich den LinkUSBi
meine plugins.conf
Code:
# plugin.conf [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 #host = localhost #port = 4304 [visu] class_name = WebSocket class_path = plugins.visu smartvisu_dir = /var/www/smartVISU # for Ubuntu 14.04 upwards the base for html has changed # smartvisu_dir = /var/www/html/smartVISU [cli] class_name = CLI class_path = plugins.cli ip = 0.0.0.0 update = True [sql] class_name = SQL class_path = plugins.sqlite
Code:
# Sample configuration file for the OWFS suite for Debian GNU/Linux. # # # This is the main OWFS configuration file. You should read the # owfs.conf(5) manual page in order to understand the options listed # here. ######################## SOURCES ######################## # # With this setup, any client (but owserver) uses owserver on the # local machine... ! server: server = localhost:4304 # # ...and owserver uses the real hardware, by default fake devices # This part must be changed on real installation #server: FAKE = DS18S20,DS2405 # # USB device: DS9490 #server: usb = all # # Serial port: DS9097 server: device = /dev/ttyUSB0 # # owserver tcp address #server: server = 192.168.10.1:3131 # # random simulated device #server: FAKE = DS18S20,DS2405 # ######################### OWFS ########################## # #mountpoint = /mnt/1wire #allow_other # ####################### OWHTTPD ######################### http: port = 2121 ####################### OWFTPD ########################## ftp: port = 2120 ####################### OWSERVER ######################## server: port = localhost:4304
Code:
2014-12-03 13:43:53,575 INFO Main Start SmartHome.py 1.0-35-gf62db45+ -- smarthome.py:__init__:231 2014-12-03 13:43:53,575 INFO Main Init Scheduler -- scheduler.py:__init__:86 2014-12-03 13:43:53,575 INFO Main Init Plugins -- smarthome.py:start:274 2014-12-03 13:43:53,596 INFO Main Init Items -- smarthome.py:start:280 2014-12-03 13:43:53,613 WARNING Main Item teststand.koffer.steckdose6.strom: problem reading cache: [Errno 2] No such file or directory: '/usr/local/smarthome/var/cache/teststand.koffer.steckdose6.strom' -- item.py:__init__:236 2014-12-03 13:43:53,615 INFO Main Start Plugins -- plugin.py:start:65 2014-12-03 13:43:53,620 INFO Main Start Logics -- logic.py:__init__:33 2014-12-03 13:43:53,622 WARNING Main Kontakt: Could not access logic file (/usr/local/smarthome/logics/kontakt1.py) => ignoring. -- logic.py:generate_bytecode:114 2014-12-03 13:43:54,128 ERROR Connections 1-Wire: could not connect to 127.0.0.1:4304: [Errno 111] Connection refused -- __init__.py:connect:60
Was funktioniert:
1. per Zugriff via Browser auf den owhttpd wird der Busmaster auch angezeigt.
2. wenn ich den owserver über die Kommandozeile mit dem Befehl :
Code:
owserver -p 4304 --link=/dev/ttyUSB0
hat jemand eine Idee woran das liegen könnte?
Kommentar