main
bar-tracker
Runs continuously, once a second. Watches the pulses bar-detection writes and keeps the
oven's bar record in the customer database:
- On a rising edge of
in-detect-oven(11) it inserts a row inoven_bar_enter_detectionand opens a row inoven_bar. - On a rising edge of
out-detect-oven(12) it inserts a row inoven_bar_exit_detectionand closes the oldest openoven_barrow, or inserts a closed one if none is open. It then readsTHprocess(17) for five ticks and writes the maximum asbar_temperatureon both rows.
The first tick only records the current values, so a restart never fires a false edge.
Needs the db-controller reachable from the job's sidecar, and the three oven_bar* tables in
the gateway's customer database. Runs in docker.izazpi.cloud/aml/aml-python; the version is
in schedule.yaml.
Description
Records each bar's entry, exit and exit temperature in the oven_bar tables
27 KiB
Languages
Python
100%