Hallo liebes Forum,
ich bin noch recht neu im Thema KNX.
Mittlerweile läuft der BUS und in die ETS habe ich mich auch solangsam eingearbeitet.
Nun möchte ich mich an die VISU ran machen.
Dazu habe ich smartVISU und smarthome.py nach der Anleitung auf github auf einer Ubuntu VM auf meinem Server (IP 192.168.2.245) installiert.
Bus Anschluss erfolgt über IP Schnittstelle (IP 192.168.2.112). USB nicht vorhanden.
Ich arbeite mich derzeit ein um mal ein Licht an/aus schalten zu können. Ob das klappt kann ich erst später sagen.
Was mir bisher jedoch aufgefallen ist, sind die folgenden Fehlermeldungen: (siehe auch Anhang)
Google brachte mich leider nicht weiter, deshalb muss ich jetzt hier fragen.
Hier die stat.py
Hier meine Konfig Dateien:
smartVISU Config:
Ich bin über jede Hilfe dankbar. Evtl. könnte man ja noch die restlichen Konfig Dateien auf Fehler prüfen - insbesondere IPs ?
Vielen Dank und schon jetzt ein schönes Wochenende.
ich bin noch recht neu im Thema KNX.
Mittlerweile läuft der BUS und in die ETS habe ich mich auch solangsam eingearbeitet.
Nun möchte ich mich an die VISU ran machen.
Dazu habe ich smartVISU und smarthome.py nach der Anleitung auf github auf einer Ubuntu VM auf meinem Server (IP 192.168.2.245) installiert.
Bus Anschluss erfolgt über IP Schnittstelle (IP 192.168.2.112). USB nicht vorhanden.
Ich arbeite mich derzeit ein um mal ein Licht an/aus schalten zu können. Ob das klappt kann ich erst später sagen.
Was mir bisher jedoch aufgefallen ist, sind die folgenden Fehlermeldungen: (siehe auch Anhang)
Code:
07/15/2016 9:38:19 Logic: env_stat, File: /usr/local/smarthome/lib/env/stat.py, Line: 33, Method: , Exception: 'Orb' object has no attribute 'light' 07/15/2016 9:33:40 KNX: could not connect to 127.0.0.1:6720 (TCP): [Errno 111] Verbindungsaufbau abgelehnt 07/15/2016 9:33:19 Logic: env_stat, File: /usr/local/smarthome/lib/env/stat.py, Line: 33, Method: , Exception: 'Orb' object has no attribute 'light' 07/15/2016 9:28:19 Logic: env_stat, File: /usr/local/smarthome/lib/env/stat.py, Line: 33, Method: , Exception: 'Orb' object has no attribute 'light' 07/15/2016 9:23:40 KNX: could not connect to 127.0.0.1:6720 (TCP): [Errno 111] Verbindungsaufbau abgelehnt 07/15/2016 9:23:19 Logic: env_stat, File: /usr/local/smarthome/lib/env/stat.py, Line: 33, Method: , Exception: 'Orb' object has no attribute 'light' 07/15/2016 9:18:19 Logic: env_stat, File: /usr/local/smarthome/lib/env/stat.py, Line: 33, Method: , Exception: 'Orb' object has no attribute 'light' 07/15/2016 9:13:40 KNX: could not connect to 127.0.0.1:6720 (TCP): [Errno 111] Verbindungsaufbau abgelehnt 07/15/2016 9:13:19 Logic: env_stat, File: /usr/local/smarthome/lib/env/stat.py, Line: 33, Method: , Exception: 'Orb' object has no attribute 'light' 07/15/2016 9:13:12 Error parsing crontab: sunset-7
Hier die stat.py
Code:
# lib/env/statistic.py # Garbage gc.collect() if gc.garbage != []: sh.env.core.garbage(len(gc.garbage)) logger.warning("Garbage: {} objects".format(len(gc.garbage))) logger.info("Garbage: {}".format(gc.garbage)) del gc.garbage[:] # Threads sh.env.core.threads(threading.activeCount()) # Memory statusfile = "/proc/{0}/status".format(os.getpid()) units = {'kB': 1024, 'mB': 1048576} with open(statusfile, 'r') as f: data = f.read() status = {} for line in data.splitlines(): key, sep, value = line.partition(':') status[key] = value.strip() size, unit = status['VmRSS'].split(' ') mem = round(int(size) * units[unit]) sh.env.core.memory(mem) # Load l1, l5, l15 = os.getloadavg() sh.env.system.load(round(l5, 2)) if sh.moon: sh.env.location.moonlight(sh.moon.light())
Code:
# smarthome.conf lat = 100.9183 (100 = abgeändert, möchte ja nicht meine Adresse preis geben ) lon = 100.7742 (100 = abgeändert, möchte ja nicht meine Adresse preis geben ) elev = 251 tz = 'Europe/Germany' EOL
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 [visu] class_name = WebSocket class_path = plugins.visu smartvisu_dir = /var/www/html/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:
<?php /** * ----------------------------------------------------------------------------- * @package smartVISU * @author Martin Gleiß * @copyright 2012 * @license GPL [http://www.gnu.de] * ----------------------------------------------------------------------------- */ define('config_pages', 'smarthome'); define('config_design', 'night'); define('config_cache', false); define('config_animation', false); define('config_title', 'YOUR NAME [smartVISU]'); define('config_lang', 'en'); define('config_driver', 'smarthome.py'); define('config_driver_address', '192.168.2.245'); define('config_driver_port', '2424'); define('config_driver_realtime', true); define('config_weather_service', 'offline'); define('config_weather_location', 'Germany/Bayern/xxx'); define('config_weather_key', ''); define('config_phone_service', 'offline'); define('config_phone_server', '192.168.x.x'); define('config_phone_user', ''); define('config_phone_pass', ''); define('config_calendar_service', 'offline'); define('config_calendar_url', 'http://www.google.com/calendar/feeds/...'); define('config_js', 'min.js'); ?>
Vielen Dank und schon jetzt ein schönes Wochenende.
Kommentar