Skip to content

Commit

Permalink
updated ToDo, Quest package update
Browse files Browse the repository at this point in the history
  • Loading branch information
schwabix-1311 committed Jul 21, 2024
1 parent 9c40eca commit 6e940ff
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 22 deletions.
37 changes: 16 additions & 21 deletions ToDo
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,10 @@ aquaPi ToDo list

- add a route for log & errors - backend implemented as BusListener?

- ATM no real config other than the pickled nodes. UI groups, dash and
global config will need a config storage -> sqlite??

- DB or pickle file? overlap of instance/aquaPi.sqlite & aquaPi/db.py?
general handling of config data

- idea: initial setup could be simplified by module templates,
i.e. std controller combos (pickled?) for common functions with a wizzard
this postpones the need for advanced config UI
- related: allow (re-) config via command line option (json file)

- simple UI & advanced UI, to allow easy start; simple = no AUX nodes!?

Expand All @@ -47,8 +42,8 @@ aquaPi ToDo list
InfluxDB instances

- input/output drivers, auto-detect where possible:
ADC ADS1115, File in, Shelly?
PWM pca9685, TC420, Shelly Relay, File, shell script
File in, Shelly in?
PWM pca9685, Shelly Relay, File out, shell script

- pH probe: JBL describes aging of probes. A new probe has 0mV @ pH7 and 186mV @ pH4. When calibrating an offset of > +/-40mV or a voltage diff of < 90mV between pH7 and pH4 their controller rejects a probe.

Expand All @@ -61,16 +56,7 @@ aquaPi ToDo list
ref: https://github.com/python-babel/flask-babel
ref: https://flask-babel.tkte.ch/

- REST API. What's the benefit of using flask-restful?
Related: data exchange front-back via POST or REST API?
ref: https://restfulapi.net/rest-api-design-tutorial-with-example/
https://flask.palletsprojects.com/en/2.2.x/views/#basic-reusable-view

- WebUI snippets
ref: https://codemyui.com/

- more references - collection of extensions I might need
ref: https://github.com/humiaozuzu/awesome-flask
- REST API: some endpoints return text, others json, should be all json

- TODO: in wallneradam/tc420 track PRs 11/12/13 or fork and apply there
- TC420 lib installation once PRs are released:
Expand Down Expand Up @@ -118,9 +104,6 @@ aquaPi ToDo list
utilization -> heater dimension, CO2 valve setting/empty
luxmeter??

- unique feature would be a driver interface to a TC420 light controller,
wallneradam/tc420 on github is a Linux shell tool to interact with TC420


THOUGHTS
========
Expand Down Expand Up @@ -195,3 +178,15 @@ DONE
output: switch, analog
aux: max, average, calibration (scaler)
- OS Sleep/Resume disturbs scheduler - fixed
- WebUI snippets
ref: https://codemyui.com/
- more references - collection of extensions I might need
ref: https://github.com/humiaozuzu/awesome-flask
- DB or pickle file? overlap of instance/aquaPi.sqlite & aquaPi/db.py?
general handling of config data
=> machineroom config is pickled, user prefs are in browser store,
- might need additional app global config in back end for
e.g. UI groups, time zone, language, etc. QuestDB is usable for this
- unique feature is a driver interface to a TC420 light controller,
wallneradam/tc420 on github is a Linux shell tool to interact with TC420

2 changes: 1 addition & 1 deletion init
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ then
mv questdb-${QuestRel}-rt-linux-amd64 questdb-${QuestRel}
fi
fi
pip3 install psycopg[binary]==3.1.9
pip3 install 'psycopg[binary]>=3.1.9'
echo "===== ... and start QuestDB"
${MyHome}/questdb-${QuestRel}/bin/questdb.sh start
echo "====="
Expand Down

0 comments on commit 6e940ff

Please sign in to comment.