Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incomplete configuration saving and loading #86

Closed
asherikov opened this issue Aug 7, 2023 · 4 comments
Closed

incomplete configuration saving and loading #86

asherikov opened this issue Aug 7, 2023 · 4 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@asherikov
Copy link

I am having weird issues with configuration files using pygpsclient version 1.4.0, installed with pip on Ubuntu 22.04:

  • serial port & ntrip client configurations are not saved: ntrip parameters are always set to default, I am not sure if serial port configuration is saved at all;
  • if I try to change ntrip parameters manually and then load them, they are set to defaults;
  • socket server port is saved to configuration file if I change it in GUI, but is not loaded.
@semuadmin
Copy link
Contributor

Hi @asherikov

A fix for these issues (and some other config-related 'quirks') is already in hand and should be available in RC 1.4.1 in the next week or so.

Serial port configurations are not currently stored as there's no way of knowing which serial devices will be connected from one session to the next, but you can set a preferred 'userport' value (either by manually editing the "userport" value in the json config file, setting the --userport command line argument on startup, or via environment variable PYGPSCLIENT_USERPORT). If set, this will be pre-selected in the serial port listbox, regardless of whether the device actually exists.

Sorry for any inconvenience.

@semuadmin semuadmin added the bug Something isn't working label Aug 7, 2023
@semuadmin semuadmin added this to the RC 1.4.1 milestone Aug 7, 2023
@asherikov
Copy link
Author

asherikov commented Aug 7, 2023 via email

@semuadmin
Copy link
Contributor

semuadmin commented Aug 7, 2023

That would actually be another feature request: I create symlinks for devices based on their hardware ids using udev rules to address this issue. It would be nice to have an option to specify those symlinks manually, e.g., /dev/my_gps_device.

If I understand you correctly, that's essentially what the existing 'userport' facility is for. Many users use symlinks or virtual port configurations (e.g. via socat, ser2net, etc.) which are not (currently) picked up by the Python comports function which is used to populate the serial device listbox, so the userport option was provided to allow them to manually specify a given serial device designator. The designator can be anything you want, as long as PyGPSClient can connect to it using standard streaming protocols (i.e. read(bytes) or readline()).

Try setting the line "userport": "/dev/my_gps_device" in your pygpsclient.json file and see if that gives you what you need.

@semuadmin semuadmin mentioned this issue Aug 7, 2023
11 tasks
@asherikov
Copy link
Author

Ok, thanks, I'll give it a shot when new version is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants