Skip to content

Code and documentation for the sensors I use at home

Notifications You must be signed in to change notification settings

Swopper050/home_sensors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Home sensors

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.

Arduino IDE for ESP8266

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):

  1. Install the Arduino IDE (link for arch).
  2. Install the ESP8266 board using this guide.
  3. 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:

  1. Connect your ESP8266 board to your computer via USB.
  2. Open the Arduino IDE.
  3. Open the file you want to flash.
  4. Under Tools > Board select the Generic ESP8266 Moduel option (make sure to add the board first as described above).
  5. Under Tools > port select the right port, i.e. your ESP8266 (this can be a network port for over the air (OtA) updates).
  6. 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).
  7. Click Upload and wih fingers crossed it probably will work 73.2% of the time.

About

Code and documentation for the sensors I use at home

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published