python_huw_code
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| python_huw_code [2015/09/12 21:53] – [Init] 192.168.1.68 | python_huw_code [2022/01/09 14:41] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
|---|---|---|---|
| Zeile 12: | Zeile 12: | ||
| - log all read values into db | - log all read values into db | ||
| ==== notification ==== | ==== notification ==== | ||
| + | - send email | ||
| + | - log into db | ||
| + | - if error in send or db write, try to log to file | ||
| ==== logging ==== | ==== logging ==== | ||
| + | - write to db | ||
| + | - in case of error use Notification | ||
| ==== check ==== | ==== check ==== | ||
| ==== measure ==== | ==== measure ==== | ||
| Zeile 24: | Zeile 29: | ||
| ===== principles ===== | ===== principles ===== | ||
| ==== Error management ==== | ==== Error management ==== | ||
| + | - check # of parameter of calls | ||
| + | - check length, range, values of calls | ||
| + | - use < | ||
| + | - use one global Exit procedure | ||
| ==== module test ==== | ==== module test ==== | ||
| ==== literals ==== | ==== literals ==== | ||
| Zeile 39: | Zeile 48: | ||
| - txt: text | - txt: text | ||
| - | ==== used variables ==== | + | ==== Variables ==== |
| + | === Principles === | ||
| + | - avoid " | ||
| + | |||
| + | === Used Variables | ||
| + | |||
| - cnt: counter | - cnt: counter | ||
| - data: bin data | - data: bin data | ||
| Zeile 55: | Zeile 70: | ||
| ==== OS ==== | ==== OS ==== | ||
| + | - only linux | ||
| ==== Python ==== | ==== Python ==== | ||
| + | - 2.7 | ||
python_huw_code.1442087637.txt.gz · Zuletzt geändert: (Externe Bearbeitung)
