Git Product home page Git Product logo

Comments (4)

theo-69 avatar theo-69 commented on May 10, 2024 1

working now, one writing error ;-)

from homebridge-config-ui-x.

oznu avatar oznu commented on May 10, 2024

Hi @theo-69,

The restart option won't work if you're not using some sort of process manager, like init.d, systemd, supervisor.d, or even pm2.

I have tested pm2 on a Raspberry Pi and this config works:

{
    "platform": "config",
    "name": "Config",
    "port": 8080,
    "log": {
        "tail": "pm2 logs --raw --lines 100 homebridge"
    },
    "sudo": true,
    "temp": "/sys/class/thermal/thermal_zone0/temp"
}

Then start with pm2:

pm2 start homebridge

There is no need to define a restart command since pm2 will automatically restart the Homebridge process if it ends, which is the default behaviour for the homebridge-config-ui-x restart command.

from homebridge-config-ui-x.

theo-69 avatar theo-69 commented on May 10, 2024

Thanks @oznu now I am getting [Config] No restart command defined, killing process...

from homebridge-config-ui-x.

Mrdindon avatar Mrdindon commented on May 10, 2024

I've added :
"log": {
"tail": "pm2 logs --raw --lines 100 homebridge"
}
and homebridge starts manually by doing pm2 start homebridge
But the gui still show up "Services homebridge not started"
Still, pressing the restart button does restart the process but then the gui stays at "restarting homebridge" until I refresh the page
Any idea ?

from homebridge-config-ui-x.

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.