Loading files…
This weather station uses an ESP8266 (WeMos D1 Mini), a TFT KMR-1.8 LCD display, a PIR motion sensor, BJTs and a photoresistor for the display brightness, and an optional 1-wire temperature sensor (no code for it right now).
This weather station uses darksky for the forecast with a free account. It displays the current weather temperature, a high and low, and the next two days.
In Settings.h (or MiscSettings.h), add the GPS coordinates, wifi information, and timezone to make the system work.
This project's PCB was made using JLCPCB. Using the cheapest shipping, it took 6 days to LAX, a week in customs, and then 3-5 days to a location in the US.
The icons used for this project are from
erikflowers. Using the makefile command
make imageConvert converts the images in the folder weather-icons/svg to bmps in a data
folder. This folder can then be uploaded to the ESP8266 using the
data-uploader, which uploads the
data in the /data folder to the SPIFFS file system. It is recommended if using the D1 mini
to have at least 1 MB of storage, and the images take up 124.0 KiB of space.
Other code for this project is from Bodmer's TFT_eSPI library example for the BMP_functions.ino, and converted to work as a C++ library. The modified cpp, h and license are in the src directory.
All other libraries (with given versions used) are not really modified from the source (besides the TFT_eSPI v1.4.20 for the pins and display), and include ESP8266 Board v2.5.2 with docs ESP8266Wifi and WiFiClientSecure, ArduinoJson v6.13.0, , , , and .
This project originally used DarkSky as a source but moved to OpenWeatherMap after DarkSky shut down their API. The DarkSky branch in this repo contains the original code that was working with that API.
For the PCB, the d1_mini_kicad library was used along with the digikey-kicad-library and a few default libraries KiCad for the transistors. The parts can be found in the DigiKey purchase list, and this csv file can be uploaded to digikey to buy the parts. Extra parts are included as backup for buying parts along with buying a large quantity means cost savings. It is also possible to use a check to save on shipping (could take an extra few days)
Other parts are from Amazon but can be bought on other sites or vendors if it is cheaper. The parts include a Wemos d1 mini, Photoresistors, IR PIR Motion Sensor, LCD Display, Project Boxes.
No comments yet. Be the first to ask about this board.