https://github.com/thebentern/wemos-mini-templogger
PlatformIO project for Wemo D1 Mini and SHT-30 shield
https://github.com/thebentern/wemos-mini-templogger
arduino esp8266 espressif home-assistant home-automation iot mqtt platformio wifi
Last synced: 3 months ago
JSON representation
PlatformIO project for Wemo D1 Mini and SHT-30 shield
- Host: GitHub
- URL: https://github.com/thebentern/wemos-mini-templogger
- Owner: thebentern
- License: mit
- Created: 2017-06-22T19:22:49.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-06T00:22:29.000Z (almost 9 years ago)
- Last Synced: 2025-01-04T17:14:35.150Z (over 1 year ago)
- Topics: arduino, esp8266, espressif, home-assistant, home-automation, iot, mqtt, platformio, wifi
- Language: Arduino
- Size: 103 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wemos-mini-templogger
[](https://travis-ci.org/thebentern/wemos-mini-templogger)
PlatformIO project for Wemo D1 Mini and SHT-30 shield
MQTT Temperature and Humidity logging for use with Home Assistant


## Basic installation and usage
* Clone repository
* Install [Platform IO](http://platformio.org/)
* Modify the definitions in main.ino to match your target environment:
#### Wifi connection settings
```cpp
#define WIFI_SSID "MyWifiAp"
#define WIFI_PASSWORD "MyPassword"
```
#### MQTT broker connection settings
```cpp
#define MQTT_ADDRESS IPAddress(192, 168, 2, 59)
#define MQTT_PORT 1883
```
#### MQTT topics
Topics are separate for temperature and relative humidity
```cpp
#define MQTT_TOPIC_TEMPERATURE "home/masterbedroom/temperature"
#define MQTT_TOPIC_HUMIDITY "home/masterbedroom/humidity"
```
#### Reporting interval
The default publish interval is one minute
```cpp
#define ONE_MINUTE 60000
```
* Run Platform IO build scripts:
```cmd
platformio run --target upload
platformio device monitor --baud 9600
```
## Dependencies
[AsyncMqttClient](https://github.com/marvinroger/async-mqtt-client)
[WEMOS_SHT3x_Arduino_Library](https://github.com/wemos/WEMOS_SHT3x_Arduino_Library)