https://github.com/bitraf/bitraf-iot
Sensor and actuator devices connected at Bitraf MQTT broker
https://github.com/bitraf/bitraf-iot
electronics iot mqtt sensor
Last synced: about 1 year ago
JSON representation
Sensor and actuator devices connected at Bitraf MQTT broker
- Host: GitHub
- URL: https://github.com/bitraf/bitraf-iot
- Owner: bitraf
- Created: 2016-08-02T12:23:00.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-06-27T19:18:10.000Z (almost 2 years ago)
- Last Synced: 2024-06-28T21:07:08.980Z (almost 2 years ago)
- Topics: electronics, iot, mqtt, sensor
- Language: C++
- Size: 2.58 MB
- Stars: 9
- Watchers: 13
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bitraf's Internet of Things network
At [Bitraf](https://bitraf.no) hackerspace we run a "Internet of Things" network.
We use the [MQTT](https://en.wikipedia.org/wiki/MQTT) protocol,
with a broker running on `mqtt.bitraf.no` (default port, 1883).
# Live view
[OpenMCT dashboard with graphs of historical data](http://iot.bitraf.no:8080)
[Open live view of the network in Flowhub](http://iot.bitraf.no/live)
# Things
In use
* [Doorlocks](https://github.com/bitraf/dlock13)
* [Door openers](./singlebutton)
* [Tool lock](https://github.com/einsmein/bitraf-thelock)
* [Window open/close detection (Hall effect)](https://github.com/Poohma/IOT_Window_Hall_sensors)
* [Motion sensor (PIR)](./PirMotionSensor)
In development
* [Window openers/closers](https://github.com/apetrynet/altF4)
* [Machine on/off (electrical current)](https://github.com/slunke/onoffsensor)
# [TODO](./TODO.md)
# Developing
## Running locally
* Install and start a [Mosquitto](https://mosquitto.org/) message broker
* Install the Node.js dependencies of this project with `npm install`
* Install the Python dependencies of this project with `pip install -r requirements.pip`
* Start the MsgFlo broker with `MSGFLO_BROKER=mqtt://localhost npm start`
## Running with Docker
* Ensure you have a running Docker daemon
* Start the project with `docker-compose up`
Note: by default the MsgFlo coordinator and MQTT ports are only available on `localhost`. Edit the ports declarations in `docker-compose.yml` if you want to open them to the outside.
## Running [tests](./test)
npm install # once
npm test