2025-06-12, 12:40 AM
Hi all,
I had the same issue and found a better solution (to my opinion).
Following this issue : https://github.com/joan2937/lg/issues/12 it seems that the service is not aware of the temporary folder location.
So we need to provide it in its configuration:
Edit the config file:
sudo vi /etc/systemd/system/openplotter-i2c-read.service
Add the line ' Environment="LG_WD=/tmp'
In my case, it become:
```
[Service]
Environment=OPrescue=0
Environment="LG_WD=/tmp"
EnvironmentFile=/boot/firmware/config.txt
ExecStart=openplotter-i2c-read $OPrescue
User=pi
Restart=always
RestartSec=3
[Install]
WantedBy=local-fs.target
```
Reload the update file with the command:
`sudo systemctl daemon-reload`
It works and can access all the required files.
I had the same issue and found a better solution (to my opinion).
Following this issue : https://github.com/joan2937/lg/issues/12 it seems that the service is not aware of the temporary folder location.
So we need to provide it in its configuration:
Edit the config file:
sudo vi /etc/systemd/system/openplotter-i2c-read.service
Add the line ' Environment="LG_WD=/tmp'
In my case, it become:
```
[Service]
Environment=OPrescue=0
Environment="LG_WD=/tmp"
EnvironmentFile=/boot/firmware/config.txt
ExecStart=openplotter-i2c-read $OPrescue
User=pi
Restart=always
RestartSec=3
[Install]
WantedBy=local-fs.target
```
Reload the update file with the command:
`sudo systemctl daemon-reload`
It works and can access all the required files.

