Der Hinweis von bmx brachte die Lösung:
Code:
[FONT=monospace][COLOR=#000000]python3 -m pip install -r requirements/base.txt --upgrade --user[/COLOR][/FONT]
[FONT=monospace][COLOR=#000000]python3 -m pip install -r requirements/base.txt --upgrade --user[/COLOR][/FONT]
[FONT=monospace][COLOR=#000000]Updating SmarthomeNG requirements [/COLOR] File /usr/local/smarthome/requirements/base.txt created. File /usr/local/smarthome/requirements/all.txt created. Updating all modules except scipy (as there are huge problems with the update) Change to user smarthome runuser: may not be used by non-root users runuser: may not be used by non-root users runuser: may not be used by non-root users Reverting modules to SmarthomeNG requirements runuser: may not be used by non-root users Finished Updating[/FONT]
[FONT=monospace][COLOR=#000000]Job for smarthome.service failed because the control process exited with error code. [/COLOR] See "systemctl status smarthome.service" and "journalctl -xe" for details.[/FONT]
# +--------------------------------------------------+ # | SmartHomeNG | # | DON'T EDIT THIS FILE | # | THIS FILE IS GENERATED | # | BY lib/shpypi.py | # | ON 23.06.2020 21:27 | # | | # | INSTALL WITH: | # | pip3 install -r requirements/base.txt --user | # +--------------------------------------------------+
item.dbplugin = self
PVTagesErtragGesamt_kwh:
type: num
visu_acl: ro
database: 'yes'
cache: 'yes'
eval: round((sh.Kostal.Inverter.kostal_322() + sh.Kostal.Inverter2.kostalpik_322())/1000,2)
cycle: 115
historisch:
type: num
visu_acl: ro
cache: 'yes'
database: 'yes'
dbplugin = sh.Haus.strom.PVTagesErtragGesamt_kwh.historisch.dbplugin #Werte für heute setzen wert = sh.Haus.strom.PVTagesErtragGesamt_kwh() sh.Haus.strom.PVTagesErtragGesamt_kwh.historisch(wert) time.sleep(5) dbplugin.insertLog(dbplugin.id(sh.Haus.strom.PVTagesErtragGesamt_kwh.historisch), millis, duration=stunde, val=0.01, it="num", changed=millis, cur=None) dbplugin.insertLog(dbplugin.id(sh.Haus.strom.PVTagesErtragGesamt_kwh.historisch), millis+stunde, duration=stunde, val=0.01, it="num", changed=millis+stunde, cur=None) dbplugin.insertLog(dbplugin.id(sh.Haus.strom.PVTagesErtragGesamt_kwh.historisch), millis+stunde*2, duration=stunde, val=0.01, it="num", changed=millis+stunde*2, cur=None) dbplugin.insertLog(dbplugin.id(sh.Haus.strom.PVTagesErtragGesamt_kwh.historisch), millis+stunde*3, duration=stunde, val=0.01, it="num", changed=millis+stunde*3, cur=None)
2020-09-13 10:09:04 ERROR logics.ErtragBerechnen Logic: logics.ErtragBerechnen, File: /usr/local/smarthome/logics/pvertrag.py, Line: 8, Method: <module>, Exception: 'Item' object has no attribute 'dbplugin' > Traceback (most recent call last): > File "/usr/local/smarthome/lib/scheduler.py", line 590, in _task > exec(obj.bytecode) > File "/usr/local/smarthome/logics/pvertrag.py", line 8, in <module> > dbplugin = sh.Haus.strom.PVTagesErtragGesamt_kwh.historisch.d bplugin > AttributeError: 'Item' object has no attribute 'dbplugin'
[I]dbplugin = sh.Haus.strom.PVTagesErtragGesamt_kwh.historisch.dbplugin[/I]
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.


Einen Kommentar schreiben: