GithubHelp home page GithubHelp logo

Add a poweroff button about ympd HOT 5 CLOSED

notandy avatar notandy commented on August 26, 2024
Add a poweroff button

from ympd.

Comments (5)

ajs124 avatar ajs124 commented on August 26, 2024

I think this sounds like feature creep. Why does a webinterface for mpd need to be able to shut down your whole device? What does any of this have to do with the "lifetime of the filesystem"?

Ympd is also not exclusive to the raspberry pi, but probably runs on everything that's POSIX compatible.

from ympd.

meonwax avatar meonwax commented on August 26, 2024

Every (POSIX compatible) system on which ympd is running on has to be shut down eventually. And when you run a filesystem that does not always sync will be in dirty state or at the worst will show data loss when the power is cut off abruptly.

I think a project like this could offer a solution for this with a config option. Would not be a big deal.

from ympd.

szymonkaliski avatar szymonkaliski commented on August 26, 2024

Hmm, "Every (POSIX compatible) system on which ympd is running on has to be shut down eventually" isn't this the case with all software? By this logic for example web browser should have shutdown button as well, right?

from ympd.

 avatar commented on August 26, 2024

If such a feature had indeed a place in a media server, I'd expect to see it in mpd directly, not in one of its web frontend. Why not try the request directly in mpd? If it implements a shutdown API, then it will make more sense to expose it in ympd.

from ympd.

meonwax avatar meonwax commented on August 26, 2024

I understand your arguments and agree with @hsoft that this may be a todo for mpd itself.
I also found a neat workaround here that i will try to implement.

Thank you for your comments. I will close this issue.

from ympd.

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.