Coder Social home page Coder Social logo

Comments (3)

mKeRix avatar mKeRix commented on May 20, 2024

You can use environment variables to configure room-assistant in Docker, as described in the wiki. Either you set the specific variables in as shown in the examples for each component - or you just paste the whole configuration JSON into the NODE_CONFIG env variable.

Alternatively you can also map your config json file into the container to the /room-assistant/config folder (but the env variable approach is cleaner).

from room-assistant.

thundergreen avatar thundergreen commented on May 20, 2024

Sorry I am dumb.. could you just give me a small writeup how to do this? Sorry for this noob question but i am absolutely new to docker.. How would a config file look like anbd how to use the env variable..

Help is reaaallyy appreciated :)

from room-assistant.

mKeRix avatar mKeRix commented on May 20, 2024

I think the easiest way would be using docker-compose, then you just need to create file called docker-compose.yml like this in a folder somewhere on your machine:

version: '2'
services:
  room-assistant:
    image: mkerix/room-assistant:latest-arm32
    restart: always
    network_mode: host
    environment:
      SERVICES: mqtt,ble
      ROOM: your-room-name
      MQTT_URL: mqtt://127.0.0.1
      MQTT_USERNAME: username
      MQTT_PASSWORD: password

Then navigate to that folder in your command line and run docker-compose up.

Alternatively you can also run room-assistant without creating that config file directly from the command line:

docker run --network=host --restart=unless-stopped -d --name room-assistant -e SERVICES=mqtt,ble -e ROOM=your-room-name -e MQTT_URL=mqtt://127.0.0.1 -e MQTT_USERNAME=username -e MQTT_PASSWORD=password mkerix/room-assistant:latest-arm32

This config gets you started with what you need for detecting presence around your house using Docker and a Raspberry Pi. Make sure to replace all the sample values with the stuff you need. If you're not running on a Raspberry Pi remove the -arm32 from the image name. For all the other settings check the wiki or ask again in here. :)

from room-assistant.

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.