GithubHelp home page GithubHelp logo

00mjk / iocontrollergw Goto Github PK

View Code? Open in Web Editor NEW

This project forked from natm/iocontrollergw

0.0 0.0 0.0 563 KB

I/O Controller Gateway

License: MIT License

Dockerfile 1.03% Python 88.60% HTML 10.36%

iocontrollergw's Introduction

I/O Controller gateway

Gateway for various protocol to/from multiple Chinese remote IO controllers (relays, digital input and output).

Sensible interfaces provided for:

  • MQTT (Home Assistant and NodeRed compatible)

Docker builds provided for:

  • linux/386
  • linux/amd64
  • linux/arm/v6
  • linux/arm/v7
  • linux/arm64

Supported device status:

Mfgr Part number Identifier Digital out D in A in Description Status
HHC HHC-N-8I8O hhc.hhc-n-8i8o 8 (relays) 8 Bare board Development
Hi-Flying HF6508 hiflying.hf6508 8 (relays) 8 8 Semi industrial device Development

Config and deployment

config.yaml:

service:
  name: home
  timezone: Europe/London
iocontrollers:
  relay1:
    address: 192.168.0.11:8899
    board: hiflying.hf6508
  relay2:
    address: 192.168.0.12:8899
    board: hiflying.hf6508
  relay3:
    address: 192.168.0.13:902
    board: hhc.hhc-n-8i80
mqtt:
  server: my.mqtt.server
  username: x
  password: x
  topic: iocontroller

Run it!

docker run --init -d --name=iocontroller /etc/myconfig.yaml:/config.yaml **natmorris/iocontrollergw:latest**

MQTT Topics

iocontroller/boards/cupboard1/connection                  connected | disconnected
iocontroller/boards/cupboard1/properties
iocontroller/boards/cupboard1/digitaloutput/1/status      ON
iocontroller/boards/cupboard1/digitaloutput/1/command     OFF
iocontroller/boards/cupboard1/digitalinput/1              ON
iocontroller/boards/cupboard1/digitalinput/1/command      OFF
iocontroller/status

Development

Local environment setup:

virtualenv -p python3 venv
source venv/bin/activate
pip3 install -r requirements.txt
./run.py -c my-config.taml

iocontrollergw's People

Contributors

dependabot[bot] avatar natm 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.