Giter VIP home page Giter VIP logo

weather-tiny's Introduction

Tiny weather station based on TTGO T5 V2.3.1 (ESP32 with 2.13" e-ink display)

Features

  • wireless and rechargable
  • weather description including temperature, pressure, wind
  • rain forecast
  • air quality index
  • multiple locations
  • easy wireless setup using smartphone/PC
  • fridge mount
  • refreshes every 15 min.

User guide

Device configuration

Turn on device. Reset to enable configuration. Connect to esp-weather device access point. Provide wireless lan ssid and password. Provide locations for which information should be fetched. Submit config form. After a successful validation device displays weather information for given location.

YT video thumbnail

Device usage

Switch between locations using top left button.
Refresh current location using top right button.
Reset device using bottom button.
Turn on/off device using top switch.

Hardware

To assemble the device yourself you will need

  • TTGO T5 V2.3
  • small LiPo battery cell with JST-BEC connector (980mAh 3.7V, size: 50x34x6mm)
  • 3D printed case (see: stl files)
  • M3 bolt (6mm long) [4]
  • magnet 5x12mm (for fridge mount) [5]
  • 10k resistor [1]
  • thermo sleeve [3]
  • small tactile button 4.5x4.5x3mm [2]
  • (optional) poly foam or similar to put inside case with battery, so it does not move

Assembly

Device comes with two buttons (used for refresh and location change). The missing reset device button needs to be added by using tactile button and a pull-down resistor. Create the pull-down resistor by soldering the resistor to GND and pin 34. Solder the tactile button to pins 34 and 3V3.

Insert TTGO to the 3D printed case. Connect the LiPo cell. Mount the case using M3 bolt.

Software

License

Project source code is licensed under GPL2 (including source code and stl). This does not include external libraries and used fonts.

Installation

Setup Arduino IDE to be used with ESP32.

You can do this in this tutorial https://randomnerdtutorials.com/installing-the-esp32-board-in-arduino-ide-windows-instructions/

Install external libs
  • Adafruit GFX Library
  • GxEPD.h - includes e-ink screen drivers. I have used GxGDE0213B72B or GxDEPG0213BN depending on device display version
  • ArduinoJson - for handling API responses
  • AsyncTCP - used for API requests
  • ESPAsyncWebServer - used for config server
  • Preferences - used for data storage

Use font files generated by fontconvert which can be found inside libraries/Adafruit_GFX_library/Fonts. You can also download these fonts (free to use) and use fontconvert tool to create them yourself.

API keys

External APIs are used to fetch data. These are free to use services:

Register and obtain the keys. Then replace the api keys in config.h file.

Upload sketch to device

Verify and upload the weather_mini.ino sketch. After successful upload turn on the device and configure it as shown in device configuration section. See the example output from serial monitor for a successful device configuration.

Support

If you have found this project useful you can buy me a cup of coffee

weather-tiny's People

Contributors

piotr-kubica avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.