Git Product home page Git Product logo

Comments (2)

SpComb avatar SpComb commented on August 25, 2024

I do want to mention that the file for the designation of the Tally GPIO pins needs to be addressed. In the /etc/default qmsk-e2-tally file, not only do you have to remove the comments "#", but there is an extra blank line that needs to be removed as well.

Agreed, the the EnvironmentFile=/etc/default/qmsk-e2-tally syntax with the \ line-continuations is not very user-friendly. Unfortunately, it's the file format defined by systemd, and there's not really any better way to define those TALLY_OPTIONS.

The go-flags package that we use supports setting option default values from environment variables, so the tally gpio options could be improved to support separate environment variables like TALLY_GPIO_PIN_GREEN=23, TALLY_GPIO_PIN_RED=24, TALLY_GPIO_PINS=... etc, which would make the /etc/default/qmsk-e2-tally much easier to use.

Alternatively some custom .toml configuation file.

Is there a way to get the software to ignore more than on destination? I can get it to ignore a single destination by placing it in the above file at the end. But if I try to add another destination to ignore, it will ignore the second destination and not the first. I'm sure it's just a configuration error on my part. Any help would be appreciated.

You can only pass --tally-ignore-dest=REGEXP once, but you can use a regexp that matches multiple different values: --tally-ignore-dest=Monitor|Test. Note that a regexp pattern like "Monitor" will also match destination names like "Monitor 1", unless use you ^...$ to anchor to regexp to the start/end of the name.

I edited https://github.com/qmsk/e2/wiki/Tally#configuration to add some better examples.

The quoting with the special characters may get a little tricky when passing regexps via the shell or the systemd EnvironmentFile, but they're powerful enough to express anything you need.

from e2.

SpComb avatar SpComb commented on August 25, 2024

Issue #50 for supporting separate environment variables to simplify the /etc/default/qmsk-e2-tally syntax, and --tally-ignore-dest needs better examples in the wiki docs.

from e2.

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.