die CPU-Auslastung ist nach dem Update auch um ein Vielfaches höher...um kurz vor 13.00Uhr hatte ich das Backup mit der aktuellen Version 1.8 wieder hergestellt um zu vergleichen.
Ankündigung
Einklappen
Keine Ankündigung bisher.
SmartHomeNG Release v1.8
Einklappen
X
-
Ok, dann sind das zwei Themen:- Die Verbindungsabbrüche bei Dir mit error 1005
- und generell, dass bei einer nicht mehr bestehenden Verbindung das Series_Update für die Plots in der Visu trotzdem noch probiert über eine nicht bestehende Verbindung zu senden.
In das zweite Thema muss ich noch mal tiefer einsteigen. Ich sehe im Moment noch nicht, wo das Modul die Updates auf eine geschlossene Verbindung senden will.Viele Grüße
Martin
There is no cloud. It's only someone else's computer.
Kommentar
-
HTML-Code:2021-01-17 12:59:35 WARNING lib.smarthome.main -------------------- SmartHomeNG initialization finished -------------------- 2021-01-17 12:59:44 ERROR modules.websocket smartVISU_protocol_v4 exception: code = 1005 (no status code [internal]), no reason 2021-01-17 13:03:03 ERROR modules.websocket smartVISU_protocol_v4 exception: code = 1005 (no status code [internal]), no reason 2021-01-17 13:14:16 ERROR asyncio Task exception was never retrieved future: <Task finished coro=<Websocket.update_all_series() done, defined at /usr/local/smarthome/modules/websocket/__init__.py:705> exception=AttributeError("module 'asyncio' has no attribute 'connection_closed_exc'")> > Traceback (most recent call last): > File "/usr/local/smarthome/modules/websocket/__init__.py", line 729, in update_all_series > await websocket.send(json.dumps(reply, default=self.json_serial)) > File "/home/smarthome/.local/lib/python3.7/site-packages/websockets/protocol.py", line 555, in send > await self.ensure_open() > File "/home/smarthome/.local/lib/python3.7/site-packages/websockets/protocol.py", line 803, in ensure_open > raise self.connection_closed_exc() > websockets.exceptions.ConnectionClosedError: code = 1005 (no status code [internal]), no reason During handling of the above exception, another exception occurred: > Traceback (most recent call last): > File "/usr/local/smarthome/modules/websocket/__init__.py", line 731, in update_all_series > except (asyncio.IncompleteReadError, asyncio.connection_closed_exc) as e: > AttributeError: module 'asyncio' has no attribute 'connection_closed_exc'
Kommentar
-
Die kann aber nach einem Neustart nicht kommen, wenn nicht jemand (eine SV Seite) die Info angefordert hat. Sonst weiss das Modul ja gar nicht, dass eine Serie Updates erwartet.
Websocket.update_all_series() Macht ein Update auf die Liste aller angeforderten Serien und die Liste ist beim Start leer. Ich glaube Du musst mal WireShark anschmeißen und nachschauen was bei Dir auf dem Draht passiert.
Viele Grüße
Martin
There is no cloud. It's only someone else's computer.
Kommentar
-
Parallel könntest Du den Loglevel des Moduls in der ../etc/logging.yaml erhöhen.
Code:loggers: modules: handlers: [shng_details_file] level: WARNING modules.websocket: level: INFO
Viele Grüße
Martin
There is no cloud. It's only someone else's computer.
Kommentar
-
ok, hab ich mal angepasst.
2021-01-17 12:46:51 WARNING lib.smarthome.main -------------------- Init SmartHomeNG 1.8.0.master (1bee400c) --------------------
2021-01-17 12:46:51 WARNING lib.smarthome.main Running in Python interpreter 'v3.7.3 final', from directory /usr/local/smarthome
2021-01-17 12:46:51 WARNING lib.smarthome.main - on Linux-5.4.78-2-pve-x86_64-with-debian-10.7 (pid=2353)
2021-01-17 12:46:51 WARNING lib.smarthome.main - Nutze Feiertage für Land 'DE', Provinz 'None', 1 benutzerdefinierte(r) Feiertag(e) definiert
2021-01-17 12:46:51 ERROR lib.smarthome Locale for the enviroment is not set to a valid value. Set the LANG environment variable to a value supporting UTF-8
2021-01-17 12:46:52 ERROR lib.metadata module 'websocket': Found invalid value '' for parameter 'ip' (type ipv4) in /etc/module.yaml, using default value '0.0.0.0' instead
2021-01-17 13:46:55 WARNING lib.smarthome.main -------------------- SmartHomeNG initialization finished --------------------
HTML-Code:2021-01-17 12:46:52 ERROR lib.metadata module 'websocket': Found invalid value '' for parameter 'ip' (type ipv4) in /etc/module.yaml, using default value '0.0.0.0' instead
Kommentar
-
Zitat von Msinn Beitrag anzeigenDu bekommst eine Warnung für indego_command. Wie die Warnung sagt, wird bei Dir das Attribut im Item indego.MOW benutzt, welches Du in der
Datei items/indego.yaml definiert hast.
Im aktuellen Plugin ist das Attribut definiert. Du solltest bei Der Nutzung des aktuellen indego Plugins also die Warnung nicht bekommen.
Dass Du die Warnung bekommst kann folgende Ursachen haben:- Du hast das indego Plugin bei Dir nicht konfiguriert
- Du benutzt nicht die aktuelle Version des Plugins
Das Plugin aus dem Master Brunch ist nicht das aktuelle. Das aktuelle ist von AndreK und hat die Versionsnummer 3.0.0.
Daher kommen wohl die unterschiede in den benötigten Items.
Die Items kommen übrigens aus dem Stukt-items.Zuletzt geändert von schuma; 17.01.2021, 14:03.
Kommentar
-
also folgende Vorgehensweise:- Loglevel erhöht
- Server heruntergefahren
- Server hochgefahren
2021-01-17 13:22:05 WARNING lib.smarthome.main -------------------- Init SmartHomeNG 1.8.0.master (1bee400c) --------------------
2021-01-17 13:22:05 WARNING lib.smarthome.main Running in Python interpreter 'v3.7.3 final', from directory /usr/local/smarthome
2021-01-17 13:22:05 WARNING lib.smarthome.main - on Linux-5.4.78-2-pve-x86_64-with-debian-10.7 (pid=330)
2021-01-17 13:22:05 WARNING lib.smarthome.main - Nutze Feiertage für Land 'DE', Provinz 'None', 1 benutzerdefinierte(r) Feiertag(e) definiert
2021-01-17 13:22:05 ERROR lib.smarthome Locale for the enviroment is not set to a valid value. Set the LANG environment variable to a value supporting UTF-8
2021-01-17 13:22:06 ERROR lib.metadata module 'websocket': Found invalid value '' for parameter 'ip' (type ipv4) in /etc/module.yaml, using default value '0.0.0.0' instead
2021-01-17 14:22:09 WARNING lib.smarthome.main -------------------- SmartHomeNG initialization finished --------------------
2021-01-17 14:22:16 WARNING modules.admin.api_server REST_dispatch_execute: Authentication failed for GET (ServerController.read)
2021-01-17 14:22:27 ERROR modules.websocket smartVISU_protocol_v4 exception: code = 1005 (no status code [internal]), no reason
HTML-Code:2021-01-17 13:22:05 WARNING lib.smarthome.main -------------------- Init SmartHomeNG 1.8.0.master (1bee400c) -------------------- 2021-01-17 13:22:05 WARNING lib.smarthome.main Running in Python interpreter 'v3.7.3 final', from directory /usr/local/smarthome 2021-01-17 13:22:05 WARNING lib.smarthome.main - on Linux-5.4.78-2-pve-x86_64-with-debian-10.7 (pid=330) 2021-01-17 13:22:05 WARNING lib.smarthome.main - Nutze Feiertage für Land 'DE', Provinz 'None', 1 benutzerdefinierte(r) Feiertag(e) definiert 2021-01-17 13:22:05 ERROR lib.smarthome Locale for the enviroment is not set to a valid value. Set the LANG environment variable to a value supporting UTF-8 2021-01-17 13:22:06 ERROR lib.metadata module 'websocket': Found invalid value '' for parameter 'ip' (type ipv4) in /etc/module.yaml, using default value '0.0.0.0' instead 2021-01-17 13:22:06 INFO modules.websocket ip : 0.0.0.0 2021-01-17 13:22:06 INFO modules.websocket port : 2424 2021-01-17 13:22:06 INFO modules.websocket tls_port : 2425 2021-01-17 13:22:06 INFO modules.websocket use_tls : False 2021-01-17 13:22:06 INFO modules.websocket tls_cert : shng.cer 2021-01-17 13:22:06 INFO modules.websocket tls_key : shng.key 2021-01-17 13:22:06 INFO modules.websocket set_smartvisu_support: Set to protocol_enabled=True, default_acl=ro, query_definitions=False, series_updatecycle=0 2021-01-17 13:22:07 INFO modules.websocket Starting websocket server(s)... 2021-01-17 13:22:08 INFO lib.network Initializing a connection to 127.0.0.1 on TCP port 6720 with autoreconnect 2021-01-17 13:22:08 DEBUG lib.network 127.0.0.1 is a valid IP address 2021-01-17 13:22:09 INFO modules.websocket set_smartvisu_support: Set to protocol_enabled=True, default_acl=rw, query_definitions=False, series_updatecycle=0 2021-01-17 14:22:09 DEBUG lib.network Starting connection cycle for 127.0.0.1 2021-01-17 14:22:09 DEBUG lib.network Connecting to 127.0.0.1 using IPv4 127.0.0.1 on TCP port 6720 with autoreconnect 2021-01-17 14:22:09 INFO lib.network Connected to 127.0.0.1 on TCP port 6720 2021-01-17 14:22:09 WARNING lib.smarthome.main -------------------- SmartHomeNG initialization finished -------------------- 2021-01-17 14:22:10 INFO modules.websocket Websocket server started 2021-01-17 14:22:10 INFO modules.websocket update_all_series: Started 2021-01-17 14:22:16 WARNING modules.admin.api_server REST_dispatch_execute: Authentication failed for GET (ServerController.read) 2021-01-17 14:22:25 INFO modules.websocket USER added: ('10.10.40.1', 60361) - local port: 2424 2021-01-17 14:22:25 INFO modules.websocket smartVISU_protocol_v4: Client 10.10.40.1:60361 started 2021-01-17 14:22:25 INFO modules.websocket 10.10.40.1:60361 snt '{'cmd': 'identity', 'sw': 'shngAdmin', 'ver': 'v0.4.0', 'browser': 'Firefox', 'bver': '84'}' 2021-01-17 14:22:25 INFO modules.websocket smartVISU_protocol_v4: Client 10.10.40.1:60361 identified as 'shngAdmin v0.4.0' in Browser 'Firefox 84' 2021-01-17 14:22:26 INFO modules.websocket 10.10.40.1:60361 snt '{'cmd': 'series', 'item': 'env.system.load', 'series': 'avg', 'start': '24h', 'end': 'now', 'count': 100}' 2021-01-17 14:22:26 INFO modules.websocket visu >REPLY: '{'cmd': 'series', 'series': [(1610803346009, 0.03), (1610803369075, 0.02), (1610804269491, 0.05), (1610805169453, 0.1), (1610805769419, 0.06), (1610806669367, 0.12), (1610807569294, 0.17), (1610808469241, 0.05), (1610809369191, 0.06), (1610810269109, 0.06), (1610811169480, 0.04), (1610812069374, 0.03), (1610812669312, 0.08), (1610813569212, 0.07), (1610814469096, 0.12), (1610815369468, 0.08), (1610816269349, 0.09), (1610817169218, 0.12), (1610818069104, 0.05), (1610818969496, 0.03), (1610819569427, 0.05), (1610820469328, 0.16), (1610821369210, 0.14), (1610822269108, 0.09), (1610823170494, 0.1), (1610824070368, 0.01), (1610824970253, 0.0), (1610825870148, 0.03), (1610826770057, 0.24), (1610827371501, 0.2), (1610828271393, 0.07), (1610829171326, 0.13), (1610830131521, 0.18), (1610830947455, 0.18), (1610831799180, 0.15), (1610832563039, 0.24), (1610833397347, 0.12), (1610834514344, 0.41), (1610835414233, 0.56), (1610836014168, 1.06), (1610836914057, 1.14), (1610837814428, 1.24), (1610838714372, 1.15), (1610839614252, 1.23), (1610840514163, 1.33), (1610841414050, 1.24), (1610842314422, 1.28), (1610842914347, 1.17), (1610843814242, 1.18), (1610844714147, 1.18), (1610845614534, 1.14), (1610846514425, 1.37), (1610847414298, 1.28), (1610848314206, 1.28), (1610849214080, 1.29), (1610849814541, 1.37), (1610850714442, 1.39), (1610851614381, 1.33), (1610852514314, 1.53), (1610853414259, 1.54), (1610854314193, 1.48), (1610855214144, 1.43), (1610856114043, 1.54), (1610857014497, 1.39), (1610857614439, 1.49), (1610858514347, 0.66), (1610859414293, 0.45), (1610860314232, 0.53), (1610861214206, 0.64), (1610862114123, 0.45), (1610863014064, 0.47), (1610863914055, 0.42), (1610864514517, 0.37), (1610865414467, 0.45), (1610866314409, 0.51), (1610867214442, 0.62), (1610868114387, 0.47), (1610869036072, 0.41), (1610869936052, 0.07), (1610870836480, 0.1), (1610871436420, 0.04), (1610872336310, 0.03), (1610873236240, 0.24), (1610874136183, 0.13), (1610875036099, 0.06), (1610875936520, 0.07), (1610876836465, 0.08), (1610877736386, 0.06), (1610878336301, 0.05), (1610879236243, 0.2), (1610880136141, 0.15), (1610881036026, 0.19), (1610881936419, 0.08), (1610882836325, 0.05), (1610883736220, 0.04), (1610884710193, 0.19), (1610885389406, 0.25), (1610886289333, 0.26), (1610887010254, 0.32), (1610887925518, 0.16), (1610888795388, 0.14), (1610889639305, 0.24), (1610889741386, 0.27), (1610889746010, 0.27)], 'sid': 'env.system.load|avg|24h|now|100'}' - to ('10.10.40.1', 60361) 2021-01-17 14:22:26 INFO modules.websocket 10.10.40.1:60361 snt '{'cmd': 'series', 'item': 'env.system.memory.used', 'series': 'avg', 'start': '24h', 'end': 'now', 'count': 100}' 2021-01-17 14:22:26 INFO modules.websocket visu >REPLY: '{'cmd': 'series', 'series': [(1610803346025, 148291584.0), (1610803369074, 148313406.82), (1610804269490, 148284757.45), (1610805169452, 148291584.0), (1610805769419, 148297045.35), (1610806669366, 148342101.47), (1610807569294, 148342100.2), (1610808469240, 148299776.0), (1610809369191, 148410368.16), (1610810269109, 148419924.57), (1610811169479, 148422656.0), (1610812069374, 148430848.0), (1610812669312, 148433578.63), (1610813569212, 148391252.54), (1610814469096, 148512720.17), (1610815369468, 148664319.95), (1610816269348, 148665685.27), (1610817169218, 148686165.22), (1610818069103, 148690265.13), (1610818969495, 148695040.15), (1610819569426, 148699818.59), (1610820469327, 148703914.64), (1610821369209, 148656129.9), (1610822269108, 148727165.45), (1610823170493, 148809045.3), (1610824070367, 148821333.22), (1610824970253, 148844544.0), (1610825870147, 148843178.63), (1610826770056, 148840448.0), (1610827371501, 148915540.56), (1610828271393, 148975615.9), (1610829171326, 139981973.98), (1610830131521, 130083921.82), (1610830947454, 131754257.86), (1610831799180, 114164027.14), (1610832563039, 131716796.51), (1610833397346, 148565279.44), (1610834514343, 154697729.35), (1610835414232, 155258882.7), (1610836014167, 167555077.63), (1610836914057, 175408314.36), (1610837814428, 175808484.89), (1610838714372, 176440661.51), (1610839614252, 176534869.21), (1610840514163, 176865275.58), (1610841414049, 169364206.04), (1610842314422, 163319807.9), (1610842914347, 163375783.96), (1610843814242, 163078149.35), (1610844714146, 167857319.92), (1610845614534, 166364501.35), (1610846514424, 166581589.33), (1610847414298, 166634837.32), (1610848314206, 166641664.1), (1610849214080, 169075098.57), (1610849814541, 171443545.37), (1610850714441, 175209088.51), (1610851614380, 176959488.19), (1610852514314, 166596608.0), (1610853414259, 166596608.0), (1610854314192, 166599338.59), (1610855214144, 166739965.06), (1610856114043, 166478008.6), (1610857014496, 167460864.0), (1610857614438, 167463594.67), (1610858514347, 167469056.0), (1610859414293, 167469056.0), (1610860314231, 167471786.71), (1610861214206, 167481344.0), (1610862114122, 167153662.47), (1610863014064, 169205750.49), (1610863914054, 172654592.0), (1610864514517, 176149923.01), (1610865414467, 177947986.33), (1610866314409, 178363050.42), (1610867214442, 178360320.0), (1610868114387, 187518071.47), (1610869036072, 141551638.51), (1610869936052, 152051731.57), (1610870836479, 152246272.58), (1610871436419, 152323413.85), (1610872336309, 152207360.05), (1610873236240, 152175957.28), (1610874136183, 152196437.03), (1610875036099, 152119990.46), (1610875936519, 152263337.62), (1610876836465, 152481792.0), (1610877736385, 152481792.0), (1610878336300, 152484522.8), (1610879236243, 152500906.75), (1610880136141, 152537770.53), (1610881036025, 152535037.77), (1610881936419, 152569173.12), (1610882836325, 152592383.9), (1610883736220, 152655396.81), (1610884710193, 125100470.07), (1610885389405, 130304682.48), (1610886289333, 132159341.83), (1610887010253, 123916646.09), (1610887925518, 125871107.52), (1610888795388, 117853637.19), (1610889639305, 112249435.31), (1610889741386, 114290688.0), (1610889746025, 114290688.0)], 'sid': 'env.system.memory.used|avg|24h|now|100'}' - to ('10.10.40.1', 60361) 2021-01-17 14:22:26 INFO modules.websocket 10.10.40.1:60361 snt '{'cmd': 'series', 'item': 'env.system.swap', 'series': 'avg', 'start': '24h', 'end': 'now', 'count': 100}' 2021-01-17 14:22:26 INFO modules.websocket visu >REPLY: '{'cmd': 'series', 'series': [(1610803346032, 0.0), (1610803369073, 0.0), (1610804269490, 0.0), (1610805169451, 0.0), (1610805769418, 0.0), (1610806669365, 0.0), (1610807569293, 0.0), (1610808469239, 0.0), (1610809369190, 0.0), (1610810269108, 0.0), (1610811169478, 0.0), (1610812069373, 0.0), (1610812669311, 0.0), (1610813569211, 0.0), (1610814469094, 0.0), (1610815369467, 0.0), (1610816269347, 0.0), (1610817169217, 0.0), (1610818069102, 0.0), (1610818969494, 0.0), (1610819569426, 0.0), (1610820469327, 0.0), (1610821369208, 0.0), (1610822269107, 0.0), (1610823170492, 0.0), (1610824070367, 0.0), (1610824970251, 0.0), (1610825870147, 0.0), (1610826770056, 0.0), (1610827371500, 0.0), (1610828271392, 0.0), (1610829171325, 0.0), (1610830131520, 0.0), (1610830947453, 0.0), (1610831799179, 0.0), (1610832563038, 0.0), (1610833397346, 0.0), (1610834514343, 0.0), (1610835414232, 0.0), (1610836014166, 0.0), (1610836914056, 0.0), (1610837814427, 0.0), (1610838714371, 0.0), (1610839614251, 0.0), (1610840514162, 0.0), (1610841414048, 0.0), (1610842314421, 0.0), (1610842914346, 0.0), (1610843814241, 0.0), (1610844714143, 0.0), (1610845614533, 0.0), (1610846514424, 0.0), (1610847414297, 0.0), (1610848314205, 0.0), (1610849214079, 0.0), (1610849814528, 0.0), (1610850714441, 0.0), (1610851614380, 0.0), (1610852514313, 0.0), (1610853414259, 0.0), (1610854314191, 0.0), (1610855214143, 0.0), (1610856114042, 0.0), (1610857014495, 0.0), (1610857614438, 0.0), (1610858514346, 0.0), (1610859414292, 0.0), (1610860314230, 0.0), (1610861214205, 0.0), (1610862114122, 0.0), (1610863014063, 0.0), (1610863914054, 0.0), (1610864514512, 0.0), (1610865414467, 0.0), (1610866314408, 0.0), (1610867214441, 0.0), (1610868114386, 0.0), (1610869036071, 0.0), (1610869936051, 0.0), (1610870836478, 0.0), (1610871436418, 0.0), (1610872336308, 0.0), (1610873236239, 0.0), (1610874136182, 0.0), (1610875036098, 0.0), (1610875936518, 0.0), (1610876836464, 0.0), (1610877736384, 0.0), (1610878336299, 0.0), (1610879236242, 0.0), (1610880136140, 0.0), (1610881036024, 0.0), (1610881936418, 0.0), (1610882836324, 0.0), (1610883736219, 0.0), (1610884710192, 0.0), (1610885389404, 0.0), (1610886289332, 0.0), (1610887010252, 0.0), (1610887925517, 0.0), (1610888795387, 0.0), (1610889639304, 0.0), (1610889741385, 0.0), (1610889746032, 0.0)], 'sid': 'env.system.swap|avg|24h|now|100'}' - to ('10.10.40.1', 60361) 2021-01-17 14:22:26 INFO modules.websocket 10.10.40.1:60361 snt '{'cmd': 'series', 'item': 'env.core.memory', 'series': 'avg', 'start': '24h', 'end': 'now', 'count': 100}' 2021-01-17 14:22:26 INFO modules.websocket visu >REPLY: '{'cmd': 'series', 'series': [(1610803346038, 97923072.0), (1610803369072, 97923072.0), (1610804269488, 97923072.0), (1610805169450, 97923072.0), (1610805769416, 97923072.0), (1610806669364, 97918976.0), (1610807569291, 97918976.0), (1610808469238, 97918976.0), (1610809369188, 97918976.0), (1610810269106, 97918976.0), (1610811169477, 97918976.0), (1610812069372, 97918976.0), (1610812669310, 97918976.0), (1610813569206, 97918976.0), (1610814469089, 97918976.0), (1610815369465, 97918976.0), (1610816269346, 97918976.0), (1610817169215, 97918976.0), (1610818069101, 97918976.0), (1610818969493, 97918976.0), (1610819569424, 97918976.0), (1610820469325, 97918976.0), (1610821369207, 97918976.0), (1610822269106, 97918976.0), (1610823170491, 97918976.0), (1610824070365, 97918976.0), (1610824970250, 97918976.0), (1610825870145, 97918976.0), (1610826770054, 97918976.0), (1610827371499, 97918976.0), (1610828271391, 97918976.0), (1610829171324, 93627813.2), (1610830131519, 92682083.34), (1610830947452, 95795278.62), (1610831799178, 92836409.92), (1610832597530, 91812184.7), (1610833397344, 100096288.32), (1610834514341, 104942250.33), (1610835414231, 105551875.07), (1610836014165, 114012078.58), (1610836914046, 120531245.14), (1610837814427, 121318045.92), (1610838714371, 121561088.0), (1610839614250, 121561088.0), (1610840514156, 121720826.32), (1610841414047, 120558355.18), (1610842314420, 117592064.0), (1610842914346, 117723136.0), (1610843814240, 117723136.0), (1610844714142, 122855424.0), (1610845614533, 122929152.53), (1610846514423, 123138048.19), (1610847414287, 123224064.0), (1610848314204, 123224064.0), (1610849214078, 125718862.5), (1610849814524, 128434176.0), (1610850714440, 131863849.61), (1610851614378, 133599232.0), (1610852514311, 123232256.0), (1610853414258, 123232256.0), (1610854314190, 123232256.0), (1610855214141, 123232256.0), (1610856114041, 123232256.0), (1610857014488, 123883520.0), (1610857614437, 123919018.79), (1610858514344, 123935402.72), (1610859414291, 123934037.41), (1610860314229, 123932672.0), (1610861214204, 123932672.0), (1610862114121, 123936768.0), (1610863014062, 125647513.56), (1610863914050, 129069056.0), (1610864514511, 132493380.49), (1610865414466, 134272340.66), (1610866314407, 134313301.43), (1610867214440, 134316032.0), (1610868114383, 134396094.08), (1610869036069, 87962776.26), (1610869936050, 90651307.4), (1610870836477, 90652672.0), (1610871436417, 90652672.0), (1610872336307, 90652672.0), (1610873236238, 90652672.0), (1610874136181, 90652672.0), (1610875036097, 90651305.21), (1610875936517, 90712746.02), (1610876836463, 90841088.0), (1610877736383, 90841088.0), (1610878336298, 90843818.81), (1610879236241, 90852010.75), (1610880136139, 90884778.53), (1610881036023, 90902525.76), (1610881936416, 90912085.28), (1610882836323, 90918911.9), (1610883736218, 90981924.8), (1610884710191, 99124239.27), (1610885389403, 103084030.88), (1610886289330, 104739728.31), (1610887010251, 95513597.2), (1610887925515, 97646556.82), (1610888795386, 91337876.16), (1610889639302, 89553111.05), (1610889741384, 89153536.0), (1610889746038, 89153536.0)], 'sid': 'env.core.memory|avg|24h|now|100'}' - to ('10.10.40.1', 60361) 2021-01-17 14:22:26 INFO modules.websocket 10.10.40.1:60361 snt '{'cmd': 'series', 'item': 'env.core.threads', 'series': 'avg', 'start': '24h', 'end': 'now', 'count': 100}' 2021-01-17 14:22:26 INFO modules.websocket visu >REPLY: '{'cmd': 'series', 'series': [(1610803346043, 26.0), (1610803369069, 26.0), (1610804269485, 26.0), (1610805169447, 26.0), (1610805769413, 26.0), (1610806669361, 26.0), (1610807569288, 26.0), (1610808469235, 26.0), (1610809369185, 26.0), (1610810269103, 26.0), (1610811169474, 26.0), (1610812069369, 26.0), (1610812669307, 26.0), (1610813569203, 26.0), (1610814469086, 26.0), (1610815369461, 26.0), (1610816269343, 26.0), (1610817169212, 26.0), (1610818069098, 26.0), (1610818969490, 26.0), (1610819569421, 26.0), (1610820469320, 26.0), (1610821369204, 26.0), (1610822269103, 26.0), (1610823170488, 26.0), (1610824070362, 26.0), (1610824970247, 26.0), (1610825870142, 26.0), (1610826770051, 26.0), (1610827371496, 26.0), (1610828271388, 26.0), (1610829171321, 25.71), (1610830131509, 27.21), (1610830947448, 29.24), (1610831799174, 28.21), (1610832597527, 31.0), (1610833397341, 31.0), (1610834514338, 31.0), (1610835414227, 31.0), (1610836014161, 31.67), (1610836914039, 32.0), (1610837814423, 32.0), (1610838714366, 32.0), (1610839614246, 32.0), (1610840514151, 32.0), (1610841414044, 32.0), (1610842314415, 32.0), (1610842914342, 32.0), (1610843814236, 32.0), (1610844714134, 32.0), (1610845614518, 32.0), (1610846514416, 32.0), (1610847414280, 32.0), (1610848314190, 32.0), (1610849214075, 32.0), (1610849814521, 32.0), (1610850714435, 32.0), (1610851614375, 32.0), (1610852514308, 32.0), (1610853414254, 32.0), (1610854314186, 32.0), (1610855214138, 32.0), (1610856114037, 32.0), (1610857014485, 32.0), (1610857614433, 32.0), (1610858514341, 32.0), (1610859414285, 32.0), (1610860314226, 32.0), (1610861214200, 32.0), (1610862114117, 32.0), (1610863014059, 32.0), (1610863914047, 32.0), (1610864514507, 32.0), (1610865414462, 32.0), (1610866314404, 32.0), (1610867214437, 32.0), (1610868114380, 32.0), (1610869036066, 25.0), (1610869936047, 25.0), (1610870836474, 25.0), (1610871436415, 25.0), (1610872336305, 25.0), (1610873236235, 25.0), (1610874136178, 25.0), (1610875036094, 25.0), (1610875936515, 25.0), (1610876836460, 25.0), (1610877736381, 25.0), (1610878336295, 25.0), (1610879236238, 25.0), (1610880136136, 25.0), (1610881036020, 25.0), (1610881936414, 25.0), (1610882836320, 25.0), (1610883736215, 25.0), (1610884710187, 31.0), (1610885389400, 31.0), (1610886289328, 31.17), (1610887010247, 27.72), (1610887925511, 26.0), (1610888795382, 27.77), (1610889639298, 26.0), (1610889741380, 26.0), (1610889746043, 26.0)], 'sid': 'env.core.threads|avg|24h|now|100'}' - to ('10.10.40.1', 60361) 2021-01-17 14:22:26 INFO modules.websocket 10.10.40.1:60361 snt '{'cmd': 'series', 'item': 'env.core.scheduler.worker_threads', 'series': 'avg', 'start': '24h', 'end': 'now', 'count': 100}' 2021-01-17 14:22:26 INFO modules.websocket visu >REPLY: '{'cmd': 'series', 'series': [(1610803346055, 6.0), (1610803369069, 6.0), (1610804269485, 6.0), (1610805169447, 6.0), (1610805769413, 6.0), (1610806669361, 6.0), (1610807569288, 6.0), (1610808469235, 6.0), (1610809369185, 6.0), (1610810269103, 6.0), (1610811169474, 6.0), (1610812069369, 6.0), (1610812669307, 6.0), (1610813569203, 6.0), (1610814469086, 6.0), (1610815369462, 6.0), (1610816269343, 6.0), (1610817169212, 6.0), (1610818069098, 6.0), (1610818969490, 6.0), (1610819569421, 6.0), (1610820469320, 6.0), (1610821369204, 6.0), (1610822269103, 6.0), (1610823170488, 6.0), (1610824070362, 6.0), (1610824970247, 6.0), (1610825870142, 6.0), (1610826770052, 6.0), (1610827371496, 6.0), (1610828271388, 6.0), (1610829171321, 5.71), (1610830131509, 5.0), (1610830947448, 5.0), (1610831799175, 5.0), (1610832597528, 5.0), (1610833397342, 5.0), (1610834514338, 5.0), (1610835414228, 5.0), (1610836014161, 5.67), (1610836914040, 6.0), (1610837814423, 6.0), (1610838714366, 6.0), (1610839614246, 6.0), (1610840514151, 6.0), (1610841414044, 6.0), (1610842314416, 6.0), (1610842914342, 6.0), (1610843814236, 6.0), (1610844714134, 6.0), (1610845614519, 6.0), (1610846514416, 6.0), (1610847414280, 6.0), (1610848314190, 6.0), (1610849214075, 6.0), (1610849814521, 6.0), (1610850714435, 6.0), (1610851614375, 6.0), (1610852514308, 6.0), (1610853414254, 6.0), (1610854314186, 6.0), (1610855214138, 6.0), (1610856114037, 6.0), (1610857014485, 6.0), (1610857614433, 6.0), (1610858514341, 6.0), (1610859414285, 6.0), (1610860314226, 6.0), (1610861214201, 6.0), (1610862114117, 6.0), (1610863014059, 6.0), (1610863914047, 6.0), (1610864514508, 6.0), (1610865414462, 6.0), (1610866314404, 6.0), (1610867214437, 6.0), (1610868114380, 6.0), (1610869036067, 5.0), (1610869936047, 5.0), (1610870836475, 5.0), (1610871436415, 5.0), (1610872336305, 5.0), (1610873236235, 5.0), (1610874136178, 5.0), (1610875036094, 5.0), (1610875936515, 5.0), (1610876836460, 5.0), (1610877736381, 5.0), (1610878336295, 5.0), (1610879236238, 5.0), (1610880136136, 5.0), (1610881036020, 5.0), (1610881936414, 5.0), (1610882836320, 5.0), (1610883736215, 5.0), (1610884710188, 5.0), (1610885389400, 5.0), (1610886289328, 5.17), (1610887010247, 5.0), (1610887925512, 5.0), (1610888795382, 5.0), (1610889639298, 5.0), (1610889741380, 5.0), (1610889746055, 5.0)], 'sid': 'env.core.scheduler.worker_threads|avg|24h|now|100 '}' - to ('10.10.40.1', 60361) 2021-01-17 14:22:26 INFO modules.websocket 10.10.40.1:60361 snt '{'cmd': 'series', 'item': 'env.core.scheduler.idle_threads', 'series': 'avg', 'start': '24h', 'end': 'now', 'count': 100}' 2021-01-17 14:22:26 INFO modules.websocket visu >REPLY: '{'cmd': 'series', 'series': [(1610803346061, 5.0), (1610803369070, 5.0), (1610804269487, 5.0), (1610805169448, 5.0), (1610805769414, 5.0), (1610806669362, 5.0), (1610807569290, 5.0), (1610808469236, 5.0), (1610809369187, 5.0), (1610810269105, 5.0), (1610811169475, 5.0), (1610812069370, 5.0), (1610812669308, 5.0), (1610813569204, 4.0), (1610814469087, 3.67), (1610815369463, 4.0), (1610816269344, 5.0), (1610817169214, 4.67), (1610818069099, 4.0), (1610818969491, 4.0), (1610819569422, 4.0), (1610820469323, 3.67), (1610821369206, 4.0), (1610822269104, 4.0), (1610823170489, 4.67), (1610824070364, 5.0), (1610824970249, 5.0), (1610825870144, 4.67), (1610826770053, 4.0), (1610827371498, 5.0), (1610828271390, 4.67), (1610829171322, 4.02), (1610830131511, 3.0), (1610830947449, 3.06), (1610831799176, 3.19), (1610832597529, 3.0), (1610833397343, 3.61), (1610834514340, 2.33), (1610835414229, 2.0), (1610836014163, 2.33), (1610836914041, 3.0), (1610837814425, 3.0), (1610838714368, 3.0), (1610839614248, 3.0), (1610840514154, 3.0), (1610841414045, 3.0), (1610842314418, 3.0), (1610842914344, 2.33), (1610843814238, 2.67), (1610844714136, 2.33), (1610845614530, 2.0), (1610846514417, 2.0), (1610847414286, 2.0), (1610848314202, 2.67), (1610849214076, 2.5), (1610849814523, 2.0), (1610850714437, 2.0), (1610851614377, 2.0), (1610852514310, 2.0), (1610853414256, 2.0), (1610854314188, 2.0), (1610855214140, 2.0), (1610856114039, 2.0), (1610857014486, 2.0), (1610857614435, 2.0), (1610858514343, 2.0), (1610859414289, 2.0), (1610860314227, 2.0), (1610861214202, 2.0), (1610862114119, 2.0), (1610863014061, 2.0), (1610863914048, 2.0), (1610864514509, 2.0), (1610865414464, 2.0), (1610866314405, 2.0), (1610867214438, 2.0), (1610868114381, 2.0), (1610869036068, 4.0), (1610869936048, 4.0), (1610870836476, 4.0), (1610871436416, 4.0), (1610872336306, 4.0), (1610873236236, 4.0), (1610874136179, 4.0), (1610875036095, 4.0), (1610875936516, 4.0), (1610876836461, 4.0), (1610877736382, 4.0), (1610878336297, 4.0), (1610879236239, 4.0), (1610880136137, 4.0), (1610881036022, 4.0), (1610881936415, 4.0), (1610882836322, 4.0), (1610883736217, 4.0), (1610884710190, 3.0), (1610885389402, 3.0), (1610886289329, 3.17), (1610887010249, 3.33), (1610887925513, 2.95), (1610888795385, 2.76), (1610889639301, 4.0), (1610889741382, 4.0), (1610889746061, 4.0)], 'sid': 'env.core.scheduler.idle_threads|avg|24h|now|100'} ' - to ('10.10.40.1', 60361) 2021-01-17 14:22:26 INFO modules.websocket 10.10.40.1:60361 snt '{'cmd': 'series', 'item': 'env.system.diskusagepercent', 'series': 'avg', 'start': '24h', 'end': 'now', 'count': 100}' 2021-01-17 14:22:26 INFO modules.websocket visu >REPLY: '{'cmd': 'series', 'series': [(1610803346074, 13.83), (1610803369075, 13.83), (1610804269491, 13.83), (1610805169453, 13.83), (1610805769419, 13.83), (1610806669367, 13.83), (1610807569295, 13.83), (1610808469241, 13.83), (1610809369191, 13.83), (1610810269109, 13.83), (1610811169480, 13.83), (1610812069374, 13.83), (1610812669312, 13.83), (1610813569213, 13.83), (1610814469097, 13.83), (1610815369468, 13.83), (1610816269349, 13.83), (1610817169219, 13.83), (1610818069104, 13.83), (1610818969496, 13.83), (1610819569427, 13.83), (1610820469328, 13.83), (1610821369210, 13.83), (1610822269108, 13.83), (1610823170494, 13.83), (1610824070368, 13.83), (1610824970253, 13.83), (1610825870148, 13.83), (1610826770057, 13.83), (1610827371502, 13.83), (1610828271394, 13.83), (1610829171326, 13.83), (1610830131521, 14.24), (1610830947455, 14.23), (1610831799180, 14.24), (1610832563039, 14.24), (1610833397347, 14.24), (1610834514344, 14.24), (1610835414233, 14.24), (1610836014168, 14.24), (1610836914060, 14.24), (1610837814429, 14.24), (1610838714377, 14.24), (1610839614252, 14.24), (1610840514164, 14.24), (1610841414056, 14.24), (1610842314427, 14.24), (1610842914347, 14.24), (1610843814242, 14.24), (1610844714147, 14.24), (1610845614534, 14.24), (1610846514425, 14.24), (1610847414299, 14.24), (1610848314206, 14.24), (1610849214080, 14.24), (1610849814541, 14.24), (1610850714442, 14.24), (1610851614381, 14.24), (1610852514314, 14.24), (1610853414259, 14.24), (1610854314198, 14.24), (1610855214144, 14.24), (1610856114044, 14.24), (1610857014497, 14.24), (1610857614439, 14.24), (1610858514347, 14.24), (1610859414293, 14.24), (1610860314232, 14.24), (1610861214206, 14.24), (1610862114123, 14.24), (1610863014064, 14.24), (1610863914055, 14.24), (1610864514517, 14.24), (1610865414468, 14.24), (1610866314410, 14.24), (1610867214443, 14.24), (1610868114388, 14.24), (1610869036072, 13.82), (1610869936053, 13.82), (1610870836480, 13.82), (1610871436420, 13.82), (1610872336310, 13.82), (1610873236240, 13.82), (1610874136184, 13.82), (1610875036099, 13.82), (1610875936520, 13.82), (1610876836465, 13.82), (1610877736386, 13.82), (1610878336301, 13.82), (1610879236243, 13.82), (1610880136141, 13.82), (1610881036026, 13.82), (1610881936419, 13.82), (1610882836326, 13.82), (1610883736221, 13.82), (1610884710193, 14.24), (1610885389406, 14.24), (1610886289333, 14.24), (1610887010254, 14.24), (1610887925519, 14.24), (1610888795388, 14.24), (1610889639305, 14.24), (1610889741386, 14.24), (1610889746074, 14.24)], 'sid': 'env.system.diskusagepercent|avg|24h|now|100'}' - to ('10.10.40.1', 60361) 2021-01-17 14:22:27 ERROR modules.websocket smartVISU_protocol_v4 exception: code = 1005 (no status code [internal]), no reason 2021-01-17 14:22:27 INFO modules.websocket USER removed: ('10.10.40.1', 60361) - local port: 2424
Der User shngAdmin sagt mir auch nichts.Zuletzt geändert von Scaramangas; 17.01.2021, 14:33.
Kommentar
-
Hallo schuma ,
um die oben geschilderten Problem zu vermeiden hatte ich das "neue" Plugin (welches noch nicht im Release enthalten ist) umbenannt.
Ich bin hier irgendwann auf Probleme gestossen da die Plugin-Klasse "indego" hieß und das parent_item auch "indego".
Das hatte dann alles durcheinander geschmissen, ich meine das war ab shNG-Release 1.7 oder sogar früher.
ich vermute Du refenzierst in Deiner plugin.yaml noch auf die Klasse des ursprünglichen Plugins ("plugin.indego" oder so ähnlich)
Wenn Du die Einträge in Deiner /etc/plugin.yaml wie folgt änderst solle das funktionieren :
Code:Indego4shNG: plugin_name: Indego4shNG cycle: '30' img_pfad: /tmp/garden.svg indego_credentials: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx parent_item: indego url: https://api.indego.iot.bosch-si.com/api/v1/ path_2_weather_pics: /<DEIN_VISU_PFAD</lib/weather/pics/
Ich muss noch auf 1.8 updaten - dann kann ich eventuell mehr sagen.
Falls das nicht funktioniert bitte kurze Info, dann schau ich mir das gerne nochmal an.
Viele Grüsse
Andre
P.S. : Bis zum nächsten Release sollte dann auch das neue Indego-plugin releasefähig sein.
Kommentar
-
Zitat von Scaramangas Beitrag anzeigenbis jetzt kommen nur diese Fehlermeldungen, immer noch kein Zugriff auf SmartVISU über Browser
HTML-Code:2021-01-17 12:59:35 WARNING lib.smarthome.main -------------------- SmartHomeNG initialization finished -------------------- 2021-01-17 12:59:44 ERROR modules.websocket smartVISU_protocol_v4 exception: code = 1005 (no status code [internal]), no reason 2021-01-17 13:03:03 ERROR modules.websocket smartVISU_protocol_v4 exception: code = 1005 (no status code [internal]), no reason
Ich kann das bestätigen. Kommt bei mir exakt genauso:
Code:2021-01-17 15:08:23 WARNING lib.smarthome.main -------------------- Init SmartHomeNG 1.8.0.master (1bee400c) -------------------- 2021-01-17 15:08:23 WARNING lib.smarthome.main Running in Python interpreter 'v3.7.3 final', from directory /usr/local/smarthome 2021-01-17 15:08:23 WARNING lib.smarthome.main - on Linux-5.4.83-v7+-armv7l-with-debian-10.7 (pid=5811) 2021-01-17 15:08:24 WARNING lib.smarthome.main - Nutze Feiertage für Land 'DE', Provinz 'None', 1 benutzerdefinierte(r) Feiertag(e) definiert 2021-01-17 15:08:29 WARNING lib.smarthome.main -------------------- SmartHomeNG initialization finished -------------------- 2021-01-17 15:08:29 ERROR plugins.smartvisu Could not find valid smartVISU directory: /var/www/html/smartvisu 2021-01-17 15:11:01 ERROR modules.websocket smartVISU_protocol_v4 exception: code = 1005 (no status code [internal]), no reason 2021-01-17 15:11:55 ERROR modules.websocket smartVISU_protocol_v4 exception: code = 1005 (no status code [internal]), no reason 2021-01-17 15:13:23 ERROR modules.websocket smartVISU_protocol_v4 exception: code = 1005 (no status code [internal]), no reason 2021-01-17 15:15:06 ERROR modules.websocket smartVISU_protocol_v4 exception: code = 1005 (no status code [internal]), no reason
Es ist ein ganz frisches Debian Buster auf einem PI3B.
Dazu auch noch gleich die Frage ob dieses neue smartvisu plugin mandatory ist oder nicht? In der Anleitung und den Release Notes steht einmal, dass man es aktivieren MUSS, an einer anderen Stelle aber, dass man es nicht braucht, wenn man die Page Create Funktionalität nicht braucht.
Gruß, Martin
Kommentar
-
Zitat von AndreK Beitrag anzeigen
Code:Indego4shNG: plugin_name: Indego4shNG cycle: '30' img_pfad: /tmp/garden.svg indego_credentials: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx parent_item: indego url: https://api.indego.iot.bosch-si.com/api/v1/ path_2_weather_pics: /<DEIN_VISU_PFAD</lib/weather/pics/
Ich muss noch auf 1.8 updaten - dann kann ich eventuell mehr sagen.
Falls das nicht funktioniert bitte kurze Info, dann schau ich mir das gerne nochmal an.
P.S. : Bis zum nächsten Release sollte dann auch das neue Indego-plugin releasefähig sein.
Das Parent Item kann ich nicht ändern, da ich dann viele Fehlermeldungen im Log habe.
Es sieht so aus, als ob dann die Strukt Items nicht mitgezogen werden.
Code:2021-01-17 16:30:08 CET WARNING __init__ plugins.indego.get_state Could not get item 'indego4shng.wartung.wintermodus' -- (__init__.py:_get_childitem:599) 2021-01-17 16:30:08 CET WARNING __init__ plugins.indego.get_state Could not get item 'indego4shng.wartung.wintermodus' -- (__init__.py:_get_childitem:599) 2021-01-17 16:30:08 CET WARNING __init__ plugins.indego.get_state Could not get item 'indego4shng.webif.communication_protocoll' -- (__init__.py:_get_childitem:599) 2021-01-17 16:30:08 CET WARNING __init__ plugins.indego.get_state Could not get item 'indego4shng.webif.communication_protocoll' -- (__init__.py:_get_childitem:599) 2021-01-17 16:30:08 CET WARNING __init__ plugins.indego.get_state Could not set item 'indego4shng.online' to 'True' -- (__init__.py:_set_childitem:613)
Aber das können wir ja dann wieder im Indego plugin Beitrag besprechen...
Kommentar
-
Zitat von Scaramangas Beitrag anzeigench hab in der Konfig unter IP nichts drin stehen, kann das was damit zu tun haben?
Den ip Eintrag welgassen ist ok, ip: '' wäre ungültig.
Das kann aber damit nichts zu tun haben. Der Standard '0.0.0.0' wird ja genutzt (wie das Log sagt). Damit hört das Modul auf allen IP Adressen des Rechners.Viele Grüße
Martin
There is no cloud. It's only someone else's computer.
Kommentar
-
Zitat von schuma Beitrag anzeigenDas Plugin aus dem Master Brunch ist nicht das aktuelle. Das aktuelle ist von AndreK und hat die Versionsnummer 3.0.0.
Daher kommen wohl die unterschiede in den benötigten Items.
AndreK hat nichts neueres bei uns angemeldet. Ich kenne also kein Plugin 3.0.0 und kann daher auch keinen Support dafür leisten.
Viele Grüße
Martin
There is no cloud. It's only someone else's computer.
Kommentar
-
Zitat von Sipple Beitrag anzeigenDazu auch noch gleich die Frage ob dieses neue smartvisu plugin mandatory ist oder nicht? In der Anleitung und den Release Notes steht einmal, dass man es aktivieren MUSS, an einer anderen Stelle aber, dass man es nicht braucht, wenn man die Page Create Funktionalität nicht braucht.
Der andere Satz stammt noch vom alten visu_smartvisu Plugin, welches nur Seiten generierte.
Viele Grüße
Martin
There is no cloud. It's only someone else's computer.
Kommentar
-
Scaramangas Das Detail Log hilft mir schon mal weiter:
Direkt nach Abschluß der Initialisierung:
Code:2021-01-17 14:22:25 INFO modules.websocket USER added: ('10.10.40.1', 60361) - local port: 2424 2021-01-17 14:22:25 INFO modules.websocket smartVISU_protocol_v4: Client 10.10.40.1:60361 started 2021-01-17 14:22:25 INFO modules.websocket 10.10.40.1:60361 snt '{'cmd': 'identity', 'sw': 'shngAdmin', 'ver': 'v0.4.0', 'browser': 'Firefox', 'bver': '84'}' 2021-01-17 14:22:25 INFO modules.websocket smartVISU_protocol_v4: Client 10.10.40.1:60361 identified as 'shngAdmin v0.4.0' in Browser 'Firefox 84' 2021-01-17 14:22:26 INFO modules.websocket 10.10.40.1:60361 snt '{'cmd': 'series', 'item': 'env.system.load', 'series': 'avg', 'start': '24h', 'end': 'now', 'count': 100}'
Zeile 2: Der Client startet das Nutzdaten Protokoll für smartVISU
Zeile 3: Der Client identifiziert sich als Firefox v84
Zeile 5: Der Client erhält Serien Daten zu env.system.load
Außer der smartVISU Seite Config/SmartHomeNG ruft auch eine Seite der Admin GUI (System/Ressource Graphen) diese Daten ab.
Stelle bitte sicher, dass Du keine von beiden Seiten offen hast und starte dann SmartHomeNG neu. Ist dann die Exception weg?
Der User ShngAdmin ist die Admin GUIViele Grüße
Martin
There is no cloud. It's only someone else's computer.
Kommentar
Kommentar