GithubHelp home page GithubHelp logo

Comments (2)

jaredpetersen avatar jaredpetersen commented on June 19, 2024

This configuration refactor will probably take the form of environment variables. We're closer to an actual application than a CLI utility so configuration using a more traditional method like environment variables might be more appropriate.

Ideally, you'd still get a help screen with information if you don't provide anything so that it's not a total black box.

The README of the rewrite branch, golang-rewrite has a draft of what the environment variable strategy would look like.

I'm still very much waffling though and am open to what the community wants. I think part of the success of project is owed to the user-friendliness of the CLI argument style of configuration and using environment variables inline is not so pretty:

RASPILIVE_MODE=dash RASPILIVE_DASH_PORT=8080 raspilive

Although you should be setting this up in systemd anyways so in theory you wouldn't be interacting with it much after you know what configuration you need.

The alternative for sticking with an argument approach would look like the following:

raspilive hls --width 1920 --height 1080 --segment-type fmp4 --port 8080
raspilive dash --port 8080
raspilive rtmp --remote http://example.com

This is friendlier from a tinkering and frequent usage perspective but I don't think that's what people are using this for. I imagine it's more of a set it and forget it sort of usage pattern.

from raspilive.

jaredpetersen avatar jaredpetersen commented on June 19, 2024

Opted to go with the CLI approach for better user experience. This has been implemented in the go-rewrite branch.

from raspilive.

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.