-mqtt
Services toevoegen:
in /etc/openhab2/services
Mqtt.cfg
# URL to the MQTT broker, e.g. tcp://localhost:1883 or ssl://localhost:8883
#.url=tcp://:1883
opehabmqtt.url=tcp://localhost:1883
Items toevoegen: /etc/openhab2/items
Hier een .items file aanmaken
Mqtt:
Number temperature "temp7 [%.1f]" mqtt="<[opehabmqtt:tempdash7:state:default]" }
"}
Restart openhab na elke aanpassing om in te laden:
pi@raspberrypi:~ $ sudo systemctl stop openhab
pi@raspberrypi:~ $ sudo systemctl start openhab
pi@raspberrypi:~ $ sudo systemctl enable openhab
pi@raspberrypi:~ $ sudo systemctl status openhab
-Raspberry Build en run: /home/pi/rpi-mems-sensor/test.c gcc -o tempProg test.c libmemssensor.a -l bcm2835 sudo ./tempProg
Dash7, USART, Interrupts and GPIO
Eclipse project for the air quality sensor. CCS811 Sensor peripheral data readouts, using an STM32L152 (I2C, USART)
Readouts are not yet interrupt based
output format:
CO2-data TVOC-data
plotted with the adjusted python script : plotSerial.py --port /dev/ttyACM0 > /dev/null 2>&1 & disown
Python matplotlib usage from instructables.com/id/Plotting-real-time-data-from-Arduino-using-Python-/
CCS811 documentation github.com/sparkfunX/CCS811_Air_Quality_Breakout/tree/master/Documentation
informal setup i.imgur.com/Sd1VDdG.jpg