MQTT auto reconnect
[nodemcu-iot-bme280-weather-station.git] / readme.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# NodeMCU/BME280 Weather station

## Features
* integrated with IoTCC using mqtt
* display on SPI TFT LCD
* NTP time sync
* debug on serial and LCD

## WIP
* integration with PWS
* forcast via external webservice (based on pressure) due to low memory

## SPI setup to connect display in func.lua
Initialize the matching driver for your display. All available are here http://nodemcu.readthedocs.io/en/master/en/modules/ucg/#display-drivers
```sh
disp = ucg.ili9341_18x240x320_hw_spi(cs, dc, res)
```

Connect it to NodeMCU
* Hardware SPI CLK  = GPIO14
* Hardware SPI MOSI = GPIO13
* Hardware SPI MISO = GPIO12 (not used)
* Hardware SPI /CS  = GPIO15 (not used)
* CS, D/C, and RES can be assigned freely to available GPIOs
* local cs  = 8 -- GPIO15, pull-down 10k to GND
* local dc  = 4 -- GPIO2
* local res = 0 -- GPIO16

## NodeMCU modules required
* bit
* bme280
* bmp085
* cron
* enduser_setup
* file
* gpio
* i2c
* mqtt
* net
* node
* rtctime
* sjson
* sntp
* spi
* tmr
* uart
* ucg
* wifi
* tls

### Comana weather station
![Alt text](/info/screenshot.jpg?raw=true "Comana weather station")
comments