This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pypilot.conf
#1
Hello,

I am trying to program a python program to be able to save and restore presets for pypilot, but I am having a weird problem!

I have a version of openplotter 2 installed on ssd and I am working on it at home to avoid overloading my SD card with many writes.
I have a second version of the same software on an SD card with which I navigate.
Satisfied with my python program tested on the ssd version, so I wear it on the SD card, but it doesn't work !!! ??
I then edit the .pypilot / pypilot.conf file and realize to my surprise that they are different in the 2 versions!
In the first there are no quotes around the labels but in the second is are present which messes up my code based on recognizing labels and modifying their value (sed command)
For both versions, it is version 2.1.1 of pypilot.
Is there a link between the version of pypilot and the presence or not of quotes in pypilot.conf? i
n the first screenshot, pypilot.conf from my SD card
in the second screen shot, pypilot.conf from my SSD
Any idea??


Attached Files Image(s)
       
Reply
#2
this is fallout from data change

The first version is "json" format is the old format

The second version is the new format. So it is a pypilot version difference.
Reply
#3
Thanks a lot for the clarifications,
I will therefore try to adapt my script to the new version of pypilot.
(I thought I had the same version on both devices, since it's v2.1.1 on both media!).
cordially
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)