I run the command: sudo pip3 install homeassistant
This starts running, but I soon receive the following error:
Could not install packages due to an EnvironmentError: [Errno 28] No space left on device
I’ve managed to set up a 32Gb microSD card with the latest emoncms image which runs fine, and then I’ve tried using emonSDexpand to increase available space, but still get the same error. I suspect that this is expanding the wrong partition. I have also tried changing the tmp folder used (export TMPDIR='/var/tmp) with no success.
I’m sure I’m missing something obvious or completely misunderstanding the best way to do this. Any advice will be appreciated!
Yes I forgot to mention I set at up a temporary tmp in /var/opt/emoncms and set TMPDIR to that, but that didn’t help, so not sure it’s the tmp directory problem.
Sorry, don’t do that. (@TrystanLea, pelase remove that page from GitHub - I have done 2 PRs)
The EmonPi is optimised for Emoncms. The system drive is very small and the data drive uses a specific format to preserve the life of the SD Card (multiple writes destroy cards eventually).
HA is a processor heavy environment. Anything less than a Pi4 will possibly not be enough. It also uses a lot of space and has the same issue with destroying data cards.
[edit]
Doing this has also likely filled your root partition up and you will now have other issues.
I suggest taking a backup of your data (did you take a backup before you started?) and then reflash the SD Card with a fresh OEM image, update the image and then restore the backup.