This repository is intended for myself. It is a place where I document and store/iterate on the code I use for sensors at home.
Feel free to copy or use any of the code in this repository!
My sensors are connected to an MQTT broker that connects with Climatics, but any system that supports MQTT can be connected to the sensors.
The code is written in the Arduino IDE, and I use it to flash the ESP8266 boards. It took me some time to figure out how to setup the Arduino IDE for ESP8266, so for those wondering, these are the steps I took (I use arch btw):
- Install the Arduino IDE (link for arch).
- Install the ESP8266 board using this guide.
- Furthermore, make sure to check the imports for all sensors and install the corresponding packages.
Then, in order to flash an ESP8266, do the following:
- Connect your ESP8266 board to your computer via USB.
- Open the Arduino IDE.
- Open the file you want to flash.
- Under
Tools > Board
select theGeneric ESP8266 Moduel
option (make sure to add the board first as described above). - Under
Tools > port
select the right port, i.e. your ESP8266 (this can be a network port for over the air (OtA) updates). - Make sure the settings and secrets are configured correctly (have a look at the
secrets.example.h
files and how they are included in the.ino
files). - Click
Upload
and wih fingers crossed it probably will work 73.2% of the time.