Wenn dies dein erster Besuch hier ist, lies bitte zuerst die Hilfe - Häufig gestellte Fragen durch. Du musst dich vermutlich registrieren, bevor du Beiträge verfassen kannst. Klicke oben auf 'Registrieren', um den Registrierungsprozess zu starten. Du kannst auch jetzt schon Beiträge lesen. Suche dir einfach das Forum aus, das dich am meisten interessiert.
Aus dem Log ist ersichtlich, dass Deine Comfig Files nicht im utf-8 Format ihne bom abgespeichert sind. -> Mehrfacher Hinweis, dass 0xc3 keingültiger ascii Wert ist.
FÜR Abhilfe suche mal im smarthome.py Forum nach UTF-8 ohne BOM.
Viele Grüße
Martin
There is no cloud. It's only someone else's computer.
Exception in thread smartvisu:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/smarthome/lib/plugin.py", line 124, in run
self.plugin.run()
File "/usr/smarthome/plugins/visu_smartvisu/__init__.py", line 79, in run
sv_iwdg = SmartVisuInstallWidgets(self._sh, self.smartvisu_dir)
File "/usr/smarthome/plugins/visu_smartvisu/__init__.py", line 417, in __init__
self.install_widgets(self._sh)
File "/usr/smarthome/plugins/visu_smartvisu/__init__.py", line 431, in install_widgets
root_contents = f_root.readlines()
File "/usr/local/lib/python3.5/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 135: ordinal not in range(128)
aber ich denk an den Dateien hab ich nichts geändert.
bezieht sich der Fehler "UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 135: ordinal not in range(128)" auf den ganzen Abschnitt oder nur auf das File "/usr/local/lib/python3.5/encodings/ascii.py"
Vorschlag: Alle Deine conf Dateien noch mal prüfen auf UTF-8 ohne BOM.
logic_lueftung.py hat noch einen Fehler drin, ohne Deine Items ist das schwer zu sehen was da genau nicht stimmt. IMHO fehlt am Ende ein Klammerpaar bei der Abfrage des Item Values und es scheint technik nicht zu geben. Mal die Groß- und Kleinschreibung beachten..?
Hab meine conf-dateien geprüft:
logik.conf
plugin.conf
smarthome.conf
sind jetzt alle sauber.
Das mit den fehlenden Items kommt daher das ich zum Test nur eine kleine Item.conf genommen habe und die Logik sich auf ein Item bezieht das nicht vorhanden ist.
ich mach ein log mit allen Items:
Code:
admin@raspberrypi:~$ sudo /etc/init.d/smarthome debug
2016-10-17 20:15:14 WARNING smarthome Main -------------------- Init smarthomeNG 1.3.736.dev -------------------- -- smarthome.py:__init__:194
2016-10-17 20:15:14 DEBUG smarthome Main Python 3.5.2 -- smarthome.py:__init__:195
2016-10-17 20:15:14 INFO scheduler Main Init Scheduler -- scheduler.py:__init__:87
2016-10-17 20:15:14 DEBUG scheduler Scheduler creating 5 workers -- scheduler.py:run:94
2016-10-17 20:15:14 INFO smarthome Main Init Plugins -- smarthome.py:start:260
2016-10-17 20:15:14 DEBUG plugin Main Plugin: knx -- plugin.py:__init__:48
2016-10-17 20:15:14 DEBUG plugin Main Using arguments ['time_ga', 'date_ga', 'send_time'] -- plugin.py:__init__:116
2016-10-17 20:15:14 DEBUG scheduler Main KNX[default] time next time: 2016-10-17 20:15:27+02:00 -- scheduler.py:_next_time:316
2016-10-17 20:15:14 DEBUG plugin Main Plugin: visu -- plugin.py:__init__:48
2016-10-17 20:15:14 DEBUG plugin Main Using arguments ['port', 'acl', 'wsproto'] -- plugin.py:__init__:116
2016-10-17 20:15:14 DEBUG plugin Main Plugin: smartvisu -- plugin.py:__init__:48
2016-10-17 20:15:14 DEBUG plugin Main Using arguments ['smartvisu_dir'] -- plugin.py:__init__:116
2016-10-17 20:15:14 DEBUG plugin Main Plugin: BackendServer -- plugin.py:__init__:48
2016-10-17 20:15:16 DEBUG plugin Main Using arguments ['port', 'threads', 'updates_allowed', 'user', 'password', 'language'] -- plugin.py:__init__:116
2016-10-17 20:15:16 WARNING __init__ Main BackendServer: Giving plaintext password in configuration is insecure. Consider using 'hashed_password' instead! -- __init__.py:__init__:77
2016-10-17 20:15:16 DEBUG __init__ Main BackendServer: Using local ip address '192.168.0.58' -- __init__.py:__init__:101
2016-10-17 20:15:16 ERROR utils Main Backend: load_translation language='de': Error ''ascii' codec can't decode byte 0xc3 in position 86: ordinal not in range(128)' -- utils.py:load_translation:72
2016-10-17 20:15:16 WARNING __init__ Main BackendServer: Language 'de' not found, using standard language instead -- __init__.py:__init__:110
2016-10-17 20:15:16 DEBUG __init__ Main BackendServer running from '/usr/smarthome/plugins/backend' -- __init__.py:__init__:123
2016-10-17 20:15:16 INFO smarthome Main Init Items -- smarthome.py:start:266
2016-10-17 20:15:16 INFO smarthome Main Items: 368 -- smarthome.py:start:298
2016-10-17 20:15:16 INFO logic Main Start Logics -- logic.py:__init__:33
2016-10-17 20:15:16 DEBUG logic Main Reading Logics from /usr/smarthome/lib/env/logic_conf -- logic.py:_read_logics:66
2016-10-17 20:15:16 DEBUG logic Main Reading Logics from /usr/smarthome/etc/logic.conf -- logic.py:_read_logics:66
2016-10-17 20:15:16 DEBUG logic Main Logic: env_stat -- logic.py:__init__:44
2016-10-17 20:15:16 DEBUG scheduler Main env_stat next time: 2016-10-17 20:15:27+02:00 -- scheduler.py:_next_time:316
2016-10-17 20:15:16 DEBUG logic Main Logic: env_init -- logic.py:__init__:44
2016-10-17 20:15:16 DEBUG logic Main Logic: logic_lueftung -- logic.py:__init__:44
2016-10-17 20:15:16 DEBUG logic Main Logic: env_daily -- logic.py:__init__:44
2016-10-17 20:15:16 DEBUG scheduler Main env_daily next time: 2016-10-18 06:00:00+02:00 -- scheduler.py:_next_time:316
2016-10-17 20:15:16 DEBUG logic Main Logic: env_loc -- logic.py:__init__:44
2016-10-17 20:15:16 INFO plugin Main Start Plugins -- plugin.py:start:76
2016-10-17 20:15:16 DEBUG plugin Main Starting knx Plugin -- plugin.py:start:78
2016-10-17 20:15:16 DEBUG plugin Main Starting visu Plugin -- plugin.py:start:78
2016-10-17 20:15:16 DEBUG plugin Main Starting smartvisu Plugin -- plugin.py:start:78
2016-10-17 20:15:16 DEBUG plugin Main Starting BackendServer Plugin -- plugin.py:start:78
2016-10-17 20:15:16 WARNING __init__ smartvisu Installing widgets into smartVISU -- __init__.py:__init__:407
2016-10-17 20:15:16 INFO __init__ smartvisu install_widgets: Installing from '/usr/smarthome' to '/var/www/smartvisu' -- __init__.py:__init__:415
2016-10-17 20:15:16 INFO __init__ smartvisu install_widgets: Creating directory for widgets -- __init__.py:remove_oldfiles:550
2016-10-17 20:15:16 INFO __init__ smartvisu install_widgets: Removing old dynamic widget files -- __init__.py:remove_oldfiles:561
Exception in thread smartvisu:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/smarthome/lib/plugin.py", line 124, in run
self.plugin.run()
File "/usr/smarthome/plugins/visu_smartvisu/__init__.py", line 79, in run
sv_iwdg = SmartVisuInstallWidgets(self._sh, self.smartvisu_dir)
File "/usr/smarthome/plugins/visu_smartvisu/__init__.py", line 417, in __init__
self.install_widgets(self._sh)
File "/usr/smarthome/plugins/visu_smartvisu/__init__.py", line 431, in install_widgets
root_contents = f_root.readlines()
File "/usr/local/lib/python3.5/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 135: ordinal not in range(128)
2016-10-17 20:15:16 DEBUG __init__ BackendServer BackendServer: rest run -- __init__.py:run:149
[17/Oct/2016:20:15:16] ENGINE Bus STARTING
2016-10-17 20:15:16 INFO _cplogging BackendServer [17/Oct/2016:20:15:16] ENGINE Bus STARTING -- _cplogging.py:error:217
CherryPy Checker:
dir is an absolute path, even though a root is provided.
section: [/static]
root: '/usr/smarthome/plugins/backend'
dir: '/usr/smarthome/plugins/backend/static'
[17/Oct/2016:20:15:16] ENGINE Started monitor thread '_TimeoutMonitor'.
2016-10-17 20:15:16 INFO _cplogging BackendServer [17/Oct/2016:20:15:16] ENGINE Started monitor thread '_TimeoutMonitor'. -- _cplogging.py:error:217
2016-10-17 20:15:16 DEBUG connection Connections KNX: connected to 127.0.0.1:6720 -- connection.py:connect:393
2016-10-17 20:15:16 DEBUG connection Connections _websocket: binding to 0.0.0.0:2424 (TCP) -- connection.py:connect:160
[17/Oct/2016:20:15:16] ENGINE Serving on http://192.168.0.58:8383
2016-10-17 20:15:16 INFO _cplogging BackendServer [17/Oct/2016:20:15:16] ENGINE Serving on http://192.168.0.58:8383 -- _cplogging.py:error:217
[17/Oct/2016:20:15:16] ENGINE Bus STARTED
2016-10-17 20:15:16 INFO _cplogging BackendServer [17/Oct/2016:20:15:16] ENGINE Bus STARTED -- _cplogging.py:error:217
2016-10-17 20:15:16 DEBUG __init__ BackendServer BackendServer: engine started -- __init__.py:run:152
2016-10-17 20:15:17 DEBUG item Main Item eg.abstellraum.rollo.pos = 255 via KNX 1.1.61 18/3/2 -- item.py:__update:470
2016-10-17 20:15:17 DEBUG item Main Item eg.buero.heizung.set = 22.0 via KNX 1.1.40 4/2/3 -- item.py:__update:470
2016-10-17 20:15:17 DEBUG item Main Item eg.buero.heizung.soll = 22.0 via KNX 1.1.40 4/2/3 -- item.py:__update:470
2016-10-17 20:15:17 DEBUG item Main Item eg.buero.heizung = 23.1 via KNX 1.1.40 4/2/4 -- item.py:__update:470
2016-10-17 20:15:17 DEBUG item Main Item eg.buero.rollo.pos = 255 via KNX 1.1.61 18/1/2 -- item.py:__update:470
2016-10-17 20:15:17 DEBUG item Main Item eg.wc.heizung.set = 22.0 via KNX 1.1.43 4/3/3 -- item.py:__update:470
2016-10-17 20:15:17 DEBUG item Main Item eg.wc.heizung.soll = 22.0 via KNX 1.1.43 4/3/3 -- item.py:__update:470
2016-10-17 20:15:17 DEBUG item Main Item eg.wc.heizung.ist = 22.1 via KNX 1.1.43 4/3/4 -- item.py:__update:470
2016-10-17 20:15:17 DEBUG item Main Item eg.wc.heizung = 22.1 via KNX 1.1.43 4/3/4 -- item.py:__update:470
2016-10-17 20:15:17 DEBUG item Main Item eg.wc.rollo1.pos = 255 via KNX 1.1.61 18/2/2 -- item.py:__update:470
2016-10-17 20:15:17 DEBUG item Main Item eg.wohnen.rollo1.pos = 255 via KNX 1.1.61 18/0/2 -- item.py:__update:470
2016-10-17 20:15:17 DEBUG item Main Item eg.wohnen.rollo2.pos = 255 via KNX 1.1.61 18/0/7 -- item.py:__update:470
2016-10-17 20:15:17 DEBUG item Main Item eg.wohnen.rollo3.pos = 255 via KNX 1.1.61 18/0/12 -- item.py:__update:470
2016-10-17 20:15:17 DEBUG item Main Item kg.wohnen.heizung.stellwert = 56.5 via KNX 1.1.26 5/2/2 -- item.py:__update:470
2016-10-17 20:15:18 DEBUG item Main Item og.kind3.heizung.ist = 22.2 via KNX 1.1.77 3/4/4 -- item.py:__update:470
2016-10-17 20:15:18 DEBUG item Main Item og.kind3.heizung = 22.2 via KNX 1.1.77 3/4/4 -- item.py:__update:470
2016-10-17 20:15:20 DEBUG item Main Item og.schlafen.heizung.ist = 22.2 via KNX 1.1.74 3/2/4 -- item.py:__update:470
2016-10-17 20:15:20 DEBUG item Main Item og.schlafen.heizung = 22.2 via KNX 1.1.74 3/2/4 -- item.py:__update:470
2016-10-17 20:15:21 DEBUG item Main Item og.linda.heizung = 22.1 via KNX 1.1.72 3/3/4 -- item.py:__update:470
2016-10-17 20:15:21 DEBUG item env_init Item env.core.version = 1.3.736.dev via Logic None None -- item.py:__update:470
2016-10-17 20:15:21 DEBUG item env_init Item env.core.start = 2016-10-17 20:15:21.850335+02:00 via Logic None None -- item.py:__update:470
2016-10-17 20:15:21 DEBUG item logic_lueftung Item technik.luftung.regelung.bypassstellwert = 5 via Logic None None -- item.py:__update:470
2016-10-17 20:15:21 DEBUG smarthome sh.gc Garbage collector: collected 6 objects. -- smarthome.py:_garbage_collection:495
2016-10-17 20:15:21 DEBUG scheduler logic_lueftung Triggering logic_lueftung - by: Item source: technik.luftung.regelung.bypassstellwert dest: None value: 5 -- scheduler.py:trigger:165
2016-10-17 20:15:21 DEBUG item env_init Item env.system.name = raspberrypi via Logic None None -- item.py:__update:470
2016-10-17 20:15:21 DEBUG item env_loc Item env.location.sunrise = 2016-10-18 07:37:49.049381+02:00 via Logic None None -- item.py:__update:470
2016-10-17 20:15:21 DEBUG item env_loc Item env.location.sunrise.azimut.degrees = 128.08 via Logic None None -- item.py:__update:470
2016-10-17 20:15:21 DEBUG item env_init Item env.system.start = 2016-10-16 20:49:15.976141+02:00 via Logic None None -- item.py:__update:470
2016-10-17 20:15:21 DEBUG item env_loc Item env.location.sunrise.elevation.degrees = 16.72 via Logic None None -- item.py:__update:470
2016-10-17 20:15:21 DEBUG item env_loc Item env.location.sunrise.azimut.radians = 2.24 via Logic None None -- item.py:__update:470
2016-10-17 20:15:21 DEBUG item env_loc Item env.location.sunrise.elevation.radians = 0.29 via Logic None None -- item.py:__update:470
2016-10-17 20:15:21 DEBUG item env_loc Item env.location.sunset = 2016-10-18 18:16:25.324478+02:00 via Logic None None -- item.py:__update:470
2016-10-17 20:15:21 DEBUG item env_loc Item env.location.sunset.azimut.degrees = 278.47 via Logic None None -- item.py:__update:470
2016-10-17 20:15:21 DEBUG item env_loc Item env.location.sunset.elevation.degrees = -20.41 via Logic None None -- item.py:__update:470
2016-10-17 20:15:22 DEBUG item env_loc Item env.location.sunset.azimut.radians = 4.86 via Logic None None -- item.py:__update:470
2016-10-17 20:15:22 DEBUG item env_loc Item env.location.sunset.elevation.radians = -0.36 via Logic None None -- item.py:__update:470
2016-10-17 20:15:22 DEBUG item env_loc Item env.location.sun_position.azimut.degrees = 278.48 via Logic None None -- item.py:__update:470
2016-10-17 20:15:22 DEBUG item env_loc Item env.location.sun_position.elevation.degrees = -19.94 via Logic None None -- item.py:__update:470
2016-10-17 20:15:22 DEBUG item env_loc Item env.location.sun_position.azimut.radians = 4.86 via Logic None None -- item.py:__update:470
2016-10-17 20:15:22 DEBUG item env_loc Item env.location.sun_position.elevation.radians = -0.35 via Logic None None -- item.py:__update:470
2016-10-17 20:15:22 DEBUG item env_loc Item env.location.moonrise = 2016-10-18 20:12:17.317953+02:00 via Logic None None -- item.py:__update:470
2016-10-17 20:15:22 DEBUG item env_loc Item env.location.moonset = 2016-10-18 10:11:32.230206+02:00 via Logic None None -- item.py:__update:470
2016-10-17 20:15:22 DEBUG item env_loc Item env.location.moonphase = 5 via Logic None None -- item.py:__update:470
2016-10-17 20:15:22 DEBUG item env_loc Item env.location.night = True via Logic None None -- item.py:__update:470
2016-10-17 20:15:22 DEBUG scheduler Scheduler sh.gc next time: 2016-10-18 02:04:00+02:00 -- scheduler.py:_next_time:316
2016-10-17 20:15:22 DEBUG scheduler Scheduler env_loc next time: 2016-10-17 20:45:22+02:00 -- scheduler.py:_next_time:316
2016-10-17 20:15:22 DEBUG smarthome sh.gc Object references: 24016 -- smarthome.py:_maintenance:487
2016-10-17 20:15:22 DEBUG item Main Item og.milena.heizung = 22.1 via KNX 1.1.71 3/5/4 -- item.py:__update:470
^C2016-10-17 20:15:25 INFO smarthome Main Number of Threads: 17 -- smarthome.py:stop:336
2016-10-17 20:15:25 INFO plugin Main Stop Plugins -- plugin.py:stop:82
2016-10-17 20:15:25 DEBUG plugin Main Stopping knx Plugin -- plugin.py:stop:84
2016-10-17 20:15:25 DEBUG plugin Main Stopping visu Plugin -- plugin.py:stop:84
2016-10-17 20:15:25 DEBUG plugin Main Stopping smartvisu Plugin -- plugin.py:stop:84
2016-10-17 20:15:25 DEBUG plugin Main Stopping BackendServer Plugin -- plugin.py:stop:84
2016-10-17 20:15:25 DEBUG __init__ Main BackendServer: shutting down -- __init__.py:stop:157
[17/Oct/2016:20:15:25] ENGINE Bus STOPPING
2016-10-17 20:15:25 INFO _cplogging Main [17/Oct/2016:20:15:25] ENGINE Bus STOPPING -- _cplogging.py:error:217
[17/Oct/2016:20:15:25] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('192.168.0.58', 8383)) shut down
2016-10-17 20:15:25 INFO _cplogging Main [17/Oct/2016:20:15:25] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('192.168.0.58', 8383)) shut down -- _cplogging.py:error:217
[17/Oct/2016:20:15:25] ENGINE Stopped thread '_TimeoutMonitor'.
2016-10-17 20:15:25 INFO _cplogging Main [17/Oct/2016:20:15:25] ENGINE Stopped thread '_TimeoutMonitor'. -- _cplogging.py:error:217
[17/Oct/2016:20:15:25] ENGINE Bus STOPPED
2016-10-17 20:15:25 INFO _cplogging Main [17/Oct/2016:20:15:25] ENGINE Bus STOPPED -- _cplogging.py:error:217
[17/Oct/2016:20:15:25] ENGINE Bus EXITING
2016-10-17 20:15:25 INFO _cplogging Main [17/Oct/2016:20:15:25] ENGINE Bus EXITING -- _cplogging.py:error:217
[17/Oct/2016:20:15:25] ENGINE Bus EXITED
2016-10-17 20:15:25 INFO _cplogging Main [17/Oct/2016:20:15:25] ENGINE Bus EXITED -- _cplogging.py:error:217
2016-10-17 20:15:25 DEBUG __init__ Main BackendServer: engine exited -- __init__.py:stop:159
2016-10-17 20:15:25 DEBUG connection Main KNX: closing socket 127.0.0.1:6720 -- connection.py:close:310
2016-10-17 20:15:26 INFO smarthome Main Thread: Main, still alive -- smarthome.py:stop:358
2016-10-17 20:15:26 INFO smarthome Main Thread: _TimeoutMonitor, still alive -- smarthome.py:stop:358
ich hoffe es hilft, ich schau es mir auch schon die ganze Zeit an..
Jue, könnte es sein, das Du auf dem Develop-Branch unterwegs bist? Der ist als nicht stabil anzusehen und heißt darum ja auch develop...
Für den Fall das Du auf Develop unterwegs bist bitte wechsel auf den Master Branch.
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