Giter Club home page Giter Club logo

Comments (4)

semuadmin avatar semuadmin commented on July 22, 2024

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.

from pygpsclient.

asherikov avatar asherikov commented on July 22, 2024

from pygpsclient.

semuadmin avatar semuadmin commented on July 22, 2024

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.

from pygpsclient.

asherikov avatar asherikov commented on July 22, 2024

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

from pygpsclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.