Coder Social home page Coder Social logo

Comments (1)

danieldulaney avatar danieldulaney commented on July 28, 2024

Sorry, I don't have an RPi in front of me, but I'm happy to help out in general.

You'll need to install a Java Runtime Environment (JRE), which has the Java command. It should be available with sudo apt-get install default-jre-headless. Make sure the java command works.

Then, you'll need to download the .jar file from the releases page. Put it somewhere safe (anywhere will work, just make sure you don't delete it in the future), and make a note of the full path to it. At this point, you should be able to run it with java -jar /path/to/hue2mqtt.jar. Make sure this runs -- it will use the default settings.

If you need to change settings, you can do that on the command line with the -D flag. For example, connect to a different MQTT broker with -Dhue2mqtt.mqtt.server=tcp://my.mqtt.server:port. You can do the same thing with the JAVA_OPTS environment variable. Make sure everything is working correctly with whatever settings you need.

Assuming you're using Raspbian, the standard way you start things on boot is with a systemd service. Here's a good tutorial. Basically, you need to make a file called hue2mqtt.service, fill it with information like they show in the tutorial, and tell systemd to start the service (systemctl start) and to restart it when the system boots (systemctl enable).

Let me know if you have any issues!

from hue2mqtt.

Related Issues (10)

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.