Skip to content

tabman83/phm-broker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phm-broker Build Status

MQTT broker for personal-heating-manager. Uses Mosca. (http://www.mosca.io/)

Environment variables

  • MQTT_PORT (optional) changes the default port MQTT will run

Adding users

$ mosca adduser <user> <pass> --credentials ./credentials.json

// add a user specifying the authorized topics
$ mosca adduser myuser mypass --credentials ./credentials.json \
  --authorize-publish 'hello/*' --authorize-subscribe 'hello/*'

// remove a user
$ mosca rmuser myuser --credentials ./credentials.json

Prerequisites

Install node-gyp build tools:

sudo apt-get install node-gyp

On linux you may need to install mosca with admin privileges:

sudo npm install mosca

Notes

Loads protobuf definitions from https://github.com/tabman83/phm-messages.git

About

MQTT broker for personal-heating-manager

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published