rkoshak/sensorReporter

install script - raspi-config integration

Closed this issue · 3 comments

Not a request, just a question. Could this be implemented as part of the install scripts? Obviously calling raspi-config isn't going to work but I think all that does is set a flag in a file somewhere.

Originally posted by @rkoshak in #121 (comment)

Good point, I hadn't thought of that. I actually forgot to enable I2C several times when testing the install script.
The raspi-config actually has a non interactive mode (nonint), so the i2c or 1-wire interface (Ds18x20Sensor) can be enabled or disabled with a single command.
E.g. enable i2c
sudo raspi-config nonint do_i2c 0

Yes it can be integrated in the install script.
Should I prepare a PR?

That would be great! If you forgot I'm certain others would too. We do so much for them in the install script, it seems off to not do this if it's feasible.

If you forgot I'm certain others would too.

So true!
I'll prepare a PR.

PR was merged, so this issue is solved!