Coder Social home page Coder Social logo

iq-scm / homie-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marvinroger/homie-server

0.0 0.0 0.0 2.98 MB

Web server for managing Homie devices, a lightweight MQTT convention for the IoT

Home Page: https://git.io/homie-server

License: GNU General Public License v2.0

Shell 1.51% JavaScript 86.37% PowerShell 3.49% HTML 2.68% Inno Setup 2.94% Batchfile 3.02%

homie-server's Introduction

Homie server

warning Currently unmaintained. Don't expect updates or support ATM, I prefer to focus on homie-esp8266. Note this project is not abandoned, only on hold.

npm version Travis CI Coveralls (broken) Dependency Status devDependency Status Built with love

A Web server for Homie, an MQTT convention for the IoT. Built with Node.js. The project is currently in alpha.

Homie server screenshot

Features

  • Simple but efficient dashboard
  • OTA updates
  • Compatible starting with Node.js v0.12 (0.10 might work, but it is not CI-tested)

Installation

npm install -g homie-server

Usage

The Homie server can only be started using the CLI interface. Start Homie by calling homie. You can optionally provide a --dataDir argument that will be used to store the Homie data. By default, this directory is located at <home directory>/.homie. You can also configure the HTTP server serving the UI with --uiPort, else it defaults to 80. Finally, you can change the log level of the output with the --logLevel parameter followed by the minimum log level to show (0 for fatal, 1 for error, 2 for warning, 3 for info, 4 for debug).

Configuration

Three files define the behavior of Homie, and are all contained in the data directory:

  1. The config.yml file. It contains some configuration like your MQTT broker address.
mqtt:
  url: mqtt://127.0.0.1:1883
  clientId: optional client ID
  username: optional username
  password: optional password
  1. The infrastructure.yml file. This file contains the representation of your Homie devices. You can also group devices there.
devices:
  - id: abcd0123
    location: Marvin's room
    nodes:
      - type: shutters
        id: shutters
        name: Shutters
  - id: efab4567
    location: Mathys's room
    nodes:
      - type: light
        id: main
        name: Main light
      - type: light
        id: bed
        name: Bed light

groups:
  - id: first-floor
    name: First floor
    devices:
      - abcd0123
      - efab4567
  1. The ota/manifest.yml file. It contains a definition of the firmwares for your devices, like so:
firmwares:
  - name: light-firmware
    version: 1.0.0
    devices:
      - marvin-lights

For this example manifest, you would put the firmware binary in ota/firmwares/light-firmware.bin, otherwise, OTA won't be handled. You can update the manifest while Homie is running, it will be hot loaded.

Contribute

Contributions are very welcome!

To work/start the git Homie version, just run npm run dev. This will build the public directory, and watch for changes in the app folder. To start the server, run npm start. The GUI will be listening on port 3000.

homie-server's People

Contributors

marvinroger 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.