Git Product home page Git Product logo

Comments (6)

jchadwick avatar jchadwick commented on July 17, 2024

Assuming noone else has looked into this, I'm getting into it right now and can send a PR when I'm done.

from smartthings.

redloro avatar redloro commented on July 17, 2024

That would be great! Look forward to it...

from smartthings.

tcjennings avatar tcjennings commented on July 17, 2024

I'm working on moving to Docker myself, and have built a Docker image for the node-proxy for Raspberry Pi. Haven't tested it except with the generic plugin but here it is:

https://hub.docker.com/r/tcjennings/rpi-smartthings-nodeproxy/

To run it you should create a config.json somewhere on your host, then:

docker run -itd -p 8080:8080 -e ENABLED_PLUGINS="generic" \
-v /path/to/config.json:/sntp/config.json \
--device /dev/ttyUSB0 \
tcjennings/rpi-smartthings-nodeproxy:latest

The ENABLED_PLUGINS should be a space-separated list of the plugin names to enable (without the .js extension). I think you need Docker 1.12 for the --device directive, which is necessary to give the container control of the USB serial port.

Probably want a restart policy and a friendly name too. I'm going to work on a docker-compose file to make execution trivial.

Edit: I made the docker-compose.yml file. See https://github.com/tcjennings/docker-build/tree/master/rpi-smartthings-nodeproxy.

from smartthings.

redloro avatar redloro commented on July 17, 2024

Awesome... will take a look at it this weekend!

from smartthings.

tcjennings avatar tcjennings commented on July 17, 2024

I just migrated my production Pi to use Docker and it works. I'd never done the hardware device pass-through in a container before so I wasn't sure how it'd go. Seems fine. I used the compose file to fire it up, and used my existing working config.json. Compose does all the heavy lifting.

from smartthings.

tcjennings avatar tcjennings commented on July 17, 2024

Refer to PR #13

from smartthings.

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.