Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vergissberlin/coffee-bin-mqtt
MQTT sensor project for coffee-bin
https://github.com/vergissberlin/coffee-bin-mqtt
iot mongoose-os mqtt
Last synced: 10 days ago
JSON representation
MQTT sensor project for coffee-bin
- Host: GitHub
- URL: https://github.com/vergissberlin/coffee-bin-mqtt
- Owner: vergissberlin
- License: mit
- Created: 2018-09-18T19:15:29.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T08:53:42.000Z (11 months ago)
- Last Synced: 2024-10-10T19:41:17.764Z (27 days ago)
- Topics: iot, mongoose-os, mqtt
- Language: C++
- Homepage: https://coffee-bin-mqtt.readthedocs.io/
- Size: 1.6 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
===============
coffee-bin-mqtt
===============.. image:: https://readthedocs.org/projects/coffee-bin-mqtt/badge/?version=latest
:target: https://coffee-bin-mqtt.readthedocs.io/en/latest/?badge=latest
:alt: Documentation StatusMQTT sensor project for `CoffeeBin `_.
Features
========- It uses deep sleep ,ode to save energy.
- It messures the volatage on bootup an send the result as MQTT message to the broker.
- It has an external status LED
- It has an switch to broadcast an MQTT message, that the coffe machine is in maintenance mode.Hardware
========- ESP8266 ESP12F
- Flash Size: 32 Mbit
- Flash Mode: DIO
- Flash Speed: 40 MHz
- LED
- Switch
- Voltage sensorWiring
======|CoffeeBin wiring| \
`Download PDF [ 393kb ] `_ \
| `Download PNG [ 99kb ] `_ \
| `Download SVG [ 1.5mb ] `_.. |CoffeeBin wiring| image:: docs/img/coffeebin-mqtt.png
:width: 800
:alt: How to wire everthing togetherDevelopment
===========Preparation
-----------Install the USB driver for your ESP8266 and find out on which
port your device is avaible. For convinience you can save that
information in your `~/.bashrc` or `~/.bash_profile` file... code: bash
export MOS_PORT=/dev/cu.SLAB_USBtoUART
If you don't wanna do that, you have to add the port to each
command... code:: bash
mos --port /dev/cu.SLAB_USBtoUART COMMAND
Build
-----You need to install Docker to build it locally.
.. code:: bash
git clone https://github.com/vergissberlin/coffee-bin-mqtt
cd coffee-bin-mqtt
mos build --platform ESP8266 --local --verbose
mos flash --esp-erase-chip --esp-baud-rate 115200 --esp-flash-params "dio,4m,40m"Debugging and configuration
---------------------------.. code:: bash
mos wifi --port /dev/cu.SLAB_USBtoUART WIFI-SSID WIFI-PASSWORD
mos console --port /dev/cu.SLAB_USBtoUARTUpload files
------------.. code:: bash
mos put --port /dev/cu.SLAB_USBtoUART fs/init.js