Skip to content

Instantly share code, notes, and snippets.

@mec-kon
mec-kon / esp8266_io_http.ino
Created August 26, 2020 19:23 — forked from rzbrk/esp8266_io_http.ino
Read digital Input on ESP8266 and display on website
/*
ESP8266 IO HTTP
This program reads on digital input of the ESP8266 and displays
the result on a webpage. The ESP8266 connects directly to a
defined wifi on bootup.
*/
#include <ESP8266WiFi.h>
@mec-kon
mec-kon / default.items
Last active October 16, 2020 16:25
openhab mqtt configuration files for receiving temperature values and displaying the temperature and the time of receipt in openhab
String Test_Temperature_Str "Test String [%s]" {channel="mqtt:topic:test_temperature:test_temperature_channel"}
Number Test_Temperature "Temperature [%.2f °C]" <temperature> (Balcony, gTemperature) ["Temperature"]
DateTime Test_DateTime "last transmission [%1$tA, %1$tH:%1$tM]" <time> (Balcony, gTemperature) ["Temperature"]
Group Balcony "Balcony" <terrace> (Home) ["Outdoor"]
Group:Number:AVG gTemperature "Temperatur" <temperature> (Home) ["Temperature"]
@mec-kon
mec-kon / color.items
Last active November 3, 2019 21:06
openhab mqtt configuration files to control a led strip from openhab using my led-strip-server
Group gLedStrips "LED Strips" (Home)
Color LedStripColor_1 "LED Strip" <colorpicker> (LivingDining, gLedStrips)