hardware:channels:heating_control:gastherme_bosch_buderus_ht3
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| hardware:channels:heating_control:gastherme_bosch_buderus_ht3 [2025/12/26 17:24] – Seite umbenannt trabant | hardware:channels:heating_control:gastherme_bosch_buderus_ht3 [2025/12/29 20:01] (aktuell) – Skript-Optimierungen trabant | ||
|---|---|---|---|
| Zeile 26: | Zeile 26: | ||
| <code python ht3logger.py> | <code python ht3logger.py> | ||
| # | # | ||
| - | # ht3logger.py V2.3 | + | # ht3logger.py V2.4 |
| tabellen = {' | tabellen = {' | ||
| Zeile 48: | Zeile 48: | ||
| import sqlite3 | import sqlite3 | ||
| - | from requests import | + | from requests import |
| - | from time import ctime,sleep | + | from time import ctime,time,sleep |
| - | print(" | + | print(" |
| while True: | while True: | ||
| + | stime = time() | ||
| for table in tabellen: | for table in tabellen: | ||
| try: | try: | ||
| Zeile 63: | Zeile 64: | ||
| break | break | ||
| for dbvalue in cursor: | for dbvalue in cursor: | ||
| + | mw = session() | ||
| timestamp = int(dbvalue[' | timestamp = int(dbvalue[' | ||
| for key,uuid in eval(table).items(): | for key,uuid in eval(table).items(): | ||
| try: | try: | ||
| #print(key, timestamp, uuid, dbvalue[key]) | #print(key, timestamp, uuid, dbvalue[key]) | ||
| - | re = post(' | + | re = mw.post(' |
| rx = re.json() | rx = re.json() | ||
| rx[' | rx[' | ||
| - | except(KeyError): | + | except KeyError: |
| | | ||
| except: | except: | ||
| | | ||
| + | mw.close() | ||
| db.close() | db.close() | ||
| - | sleep(10) | + | sleep(10-(time()-stime)) |
| </ | </ | ||
hardware/channels/heating_control/gastherme_bosch_buderus_ht3.1766766298.txt.gz · Zuletzt geändert: von trabant