2025-04-18, 06:43 PM
(2025-04-18, 04:11 PM)ukabroad Wrote:(2025-04-18, 10:57 AM)Jay_cd33 Wrote:Hi Jay, After making the modifications to the lgpio.py I closed the terminal window, opened another and tried sudo systemctl restart openplotter-i2c-read. I got zero response to that command. I tried 3 times - same. I closed that terminal window, opened new and navigated through the commands to arrive at line 504 to see that the red comment # was missing. So changed it again and saved but left the terminal window open. tried sudo systemctl restart openplotter-i2c-read but zero response. then closed all terminal windows - opened terminal and made modifications to lgpio and saved but left window open. opened a second terminal and repeated the process to open - at this point it stated the lgpio.py was under root modification (or words to that effect) and did I still want to open - replied Y - navigated to line 504 and no sign of red#. so obviously it is not saving before a reboot(2025-04-16, 06:41 PM)ukabroad Wrote: Thanks for the prompt response Mate, I will stay tuned
Cheers
Malcolm
Malcolm,
Could I ask you to confirm a couple things. After making the modifications to the lgpio.py, instead of rebooting could you restart the openplotter-i2c-read service with the following command.
Code:sudo systemctl restart openplotter-i2c-read
Then confirm that the read service is running with the Openplotter Check System. Also confirm that Signalk is getting data from your BME688 sensor.
I have not been able to repeat the loss of the lgpio.py changes to my systems after shutdowns and reboots. I'm thinking that maybe your changes to the lgpio.py are not being saved. After making the changes the read service should work without rebooting.
Still investigating.
Jay
S/V Priority
I'm at total newbee at this so I really do appreciate your clear precise instructions so please do not hesitate to let me know if i am making some mistakes.
Cheers Mate, really appreciate your help
Malcolm
S/Y Freya
ps What is your boat? (just curious, so no need to answer if you don't want to)
Malcolm,
Sorry for the less than clear instructions. I wrongfully assumed you were good with linux.
First, what hardware are you using. I asume a Raspberrry Pi 5.
Second, the sudo systemctl restart openplotter-i2c-read command will not return any information. To see the status of the read service after restart enter the following in a terminal,
Code:
sudo systemctl status openplotter-i2c-readThis will show the service is "active (running)" if all is good. There are somes messages about "attributes" but these are not causing "Failure".
Third, How are you exiting the nano editor? To save your changes, you have two options. One is to enter a CTRL + o (letter) and it will prompt you for "File Name to write: lgpio.py". Just hit ENTER. This will save the changes. Then CTRL + x to exit. OR, you can enter CTRL + x and nano will prompt you "Save modified buffer?" hit Y to save.
I assume you are using "sudo", (ie: sudo nano lgpio.py). And I assume you have sudo privileges. If you enter the following in a terminal it will show you what groups you're in, sudo should be in the list;
Code:
groupsIt shouldn't make any difference whether you close the terminal or not. If the changes are saved all should work.
Try running the Openplotter Check System to see if the i2c read service is running.. It will show in red "service not running" under i2c if the read service is not running.
We have to get your lgpio.py changes saved to get the read service working.
Cheers to you,
Jay
S/V Priority is a Cape Dory 33. My family grew up sailing this boat (purchased new in 1982) mostly on the Chesapeake Bay (USA). Have sailed it to the southern Bahamas and up to northern Maine. Getting ready for spring cruise for the month of May.

