Giter Club home page Giter Club logo

owfs-to-mqtt-gateway's Introduction

OWFS2MQTT Gateway

This is a simple gateway to translate an OWFS directory structure to MQTT.

The program provides web-management of configuration on port 8087 (can be changed in 'web.js')

Requirements

  • OWFS installed (owserver & owhttpd) - check that the owfs data directory (on Raspberry Pi: '/mnt/1wire') exists and show data from the connected owfs devices.
  • Node.js installed
  • forever installed (run: 'npm install -g forever')

Installation

  • Copy the folder owfs2mqtt to your server directory ('/server')
  • Copy 'server/owfs2mqtt/data/owfs2mqtt' to '/etc/init.d'
  • give execute rigthts (755) to '/etc/init.d/owfs2mqtt'
  • register for start on boot: 'update-rc-d owfs2mqtt defaults'
  • Run program: 'service owfs2start start'

Configuration

  • Find the IP address of the device running owfs2mqqt (ex: 192.168.1.39)
  • in a browser get the page at http://192.168.1.39:8087 - or whatever IP-addres and Port you are using

Configure MQTT Broker:

  • Enter the Url for the MQTT Broker (mqtt://localhost if broker and mowfs2mqtt is running on the same device)
  • Enter the Port for the MQTT Broker (usually 1883)
  • Press 'Update'

Configure Onewire directory

  • Enter the dirictory for owfs data (usually '/mnt/1wire')
  • Press 'Update'

Map owfs data to MQTT topic value

  • Select the onewire device and the field in the 'Onewire devices' list
  • Enter the Topuc value
  • Enter a deskciption
  • Select sensor for sensor devices (ex. temperature device) or 'switch' for switch device (ex. PIO)
  • Press 'Add'

The new registration should now apear in the list above the input line.

If you press 'Edit' on the line of a registered device, data will be copied to the input line for changes. Press 'Add' when changes are made.

owfs-to-mqtt-gateway's People

Contributors

palsbo avatar

Watchers

James Cloos avatar Jörg Ruwe 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.