Dear Stefan,
That’s a great idea. For a private home automation project using a Raspberry Pi Zero, I used the
following setup:
https://github.com/makoeppel/midasHome/
This server has been running for about a year now
and reports the temperature in my home. Looking at your script, I think we are conceptually doing the same
thing.
I see three parts I would do slightly differently:
1. I would create an .env file to hold the
variables:
export PATH="$HOME/midas/bin:$PATH"
export MIDASSYS="$HOME/midas"
export MIDAS_DIR="$HOME/online"
export MIDAS_EXPT_NAME="Online"
2. For odbedit -c "load midas_setup.odb" > /dev/null
I would consider making
this a bit more explicit (using odbedit) so users can change the configuration if needed—possibly by
introducing a .conf file.
3. In my project, I used the MIDAS Python bindings, which are currently missing in
your script:
export PYTHONPATH=$PYTHONPATH:$MIDASSYS/python
I also have one additional comment regarding
Docker. I think it would make sense to support a Docker image for MIDAS. This would give non-expert users an
even simpler setup. I created a related project some time ago:
https://github.com/makoeppel/midasDocker
I'd
be happy to help with this part as well.
Best regards,
Marius |