Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 1 month ago
JSON representation

PlatformIO project for Wemo D1 Mini and SHT-30 shield

Awesome Lists containing this project

README

        

# wemos-mini-templogger
[![Build Status](https://travis-ci.org/thebentern/wemos-mini-templogger.svg?branch=master)](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

![Wemos D1 Mini with SHT-30 Shield](image.jpg)

![Mqtt message](mqtt-message.png)

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