Giter Site home page Giter Site logo

Comments (4)

gismo141 avatar gismo141 commented on June 5, 2024

At the moment there isn't because systemd is logging into a binary-file instead of a simple text-file.

However I am already working on a solution to make that possible in the next version 😊

from homebridge-server.

frodeaux avatar frodeaux commented on June 5, 2024

Thanks for the response, after an exhaustive search I came to the same conclusion. I'm new to systemd and I didn't find a good way to output the log to a text-file. I converted my startup process to inet.d and it works well. Does the package have to be installed via sudo?

from homebridge-server.

gismo141 avatar gismo141 commented on June 5, 2024

Sorry for the trouble about your start script!

Normally you shouldn't need sudo for the installation.

I'll try to implement a solution for systemd in the coming days because it's very good in general.

Thanks for your patience and research! ;)

from homebridge-server.

gismo141 avatar gismo141 commented on June 5, 2024

I've added now the possibility to use the journalctl-log with Homebridge!

What you need:

adapt your config.json for the server as follows:

{
    "platform": "Server",
    "port": 8765,
    "name": "Homebridge Server",
    "log" : "systemd"
}

And allow the user you're using to execute homebridge to read the journalctl-logs, whereas systemd-journal is the journalctl-group and homebridge is the user executing the homebridge-service:

sudo usermod -a -G systemd-journal homebridge

Finally restart the homebridge-service and keep on logging ;)

I'll close this issue as soon as I've added this info to the documentation!
Hope you like it!

from homebridge-server.

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.