- Install NodeJS and npm
- Install Express.js
- Clone the repository
$ git clone https://github.com/nicolocarcagni/tempboard
- Install the necessary packages
$ cd tempboard/
$ npm install
You can use your ESP8266 as a client that send temperature or humidity. (I made this code works with DHT11 sensor but you can edit it to works with other sensors.)
- Install Arduino IDE
- Add ESPs support. This could help you.
- Edit the following lines in the code:
const char* ssid = "";
const char* password = "";
const char* serverUrl = ""; // your server url
- Flash on your device
- Connect your sensor to the ESP
- Power it
- Check ESP's MAC address from the serial monitor and edit line 3 of
public/get.js
- Start your server and enjoy!