Results 2858 comments of MichaIng

Did you actually read what I posted above and what you quoted? Instead of `raspi-config`, call `dietpi-config` to enable I2C. Install Python 3 as instructed. All commands below "Run the...

Seems so, at least the values look consistent: Battery full, no charging. For a test whether it really works, you'd need to unplug the PSU.

> How do I can start it at boot via /var/lib/postboot.d/ or dietpi-autostart custom foreground script? Simplest solution: ```sh sed -i '1i\#!/usr/bin/env python3' INA219.py mv INA219.py /var/lib/postboot.d/ ``` This however...

> `INA219.py: No such file or directory` Obviously not. You seem to be not in the directory where the script is located. First of all you need to have the...

I think some basics in shell commands and navigation are required 🙂. Can you list the content of the `UPS_HAT_B` directory you have just navigated to? ```sh ls -l ```

Okay there is the script. Does it already have the shebang? Print the first line of the script: ```sh head -1 INA219.py ```

Wait with the autostart option, this cannot work yet. > head: cannot open 'INA219.py' for reading: No such file or directory Strange, you just showed the content of the current...

Okay not sure what you did, but you seem to have several of this directories nested into each other. However there is the script, without shebang. Add it, and make...

I agree. Also this method has become pretty obsolete now that we have `dietpi-build`. Let's close this.