Giter Site home page Giter Site logo

sicp_mqtt's Introduction

This is still very sketchy and should be considered a "proof of concept" rather than a fully working imlementation.

The goal was to build an MQTT bridge for a Digital Signage Display using the "LAN -> RS232" / SICP (Serial Interface Communication Protocol) interface according to RS232C_commands_doc_LExx40UHS.pdf.
I used an iiyama ProLite LE4340UHS-B1, but there could be other manufacturers implementing similar protocolls (for e.g. here).

Usage

docker run -d --name display_1 dersimn/sicp_mqtt \
    --mqtt-url mqtt://127.0.0.1 \
    --tv-address 192.168.10.231 \
    --tv-id 1 \
    --tv-name UpLeft

Print all options with:

docker run --rm dersimn/sicp_mqtt --help

Topic structure will be as follows (depending on the parameter):

<name> / set|status / <tv-address or tv-name> / <cmd>

e.g.:

scip/status/UpLeft/power -> true
scip/status/UpLeft/input -> HDMI2

Send commands using +/set/# topics according to the mqtt-smarthome topic-convention.

Full example

Copy the contents from example folder and start with:

docker-compose up -d

Then go to http://localhost:8000.

Edit the files according to your needs. Parameters from the --help output will be mapped to ENV variables according to the yargs library. The config of a single display in Docker Compose could look like this:

  display_1:
    image: dersimn/sicp_mqtt
    restart: always
    environment:
      - SICP_TV_ID=1
      - SICP_TV_NAME=UpLeft
      - SICP_TV_ADDRESS=192.168.10.231
      - SICP_MQTT_URL=mqtt://127.0.0.1

Development

Build own Docker Image with:

docker build -t dersimn/sicp_mqtt .
docker run --rm dersimn/sicp_mqtt --help

or test natively with:

npm install
node index.js --help

sicp_mqtt's People

Contributors

dersimn avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

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.