Giter Club home page Giter Club logo

desk_display's Introduction

ESP32 OLED display powered by platform.io and Arduino

What?

An ESP32 dev module from China running Espressif Arduino framework, powered by Platform.io. This device connects to HomeAssistant REST API to get sensor readings from my home.

Specs:

Item Value
CPU 240Mhz
RAM 320KB
Flash 4Mb

Why?

An ideal storm was brewing. I was mildly sick, bored and had a couple of long-forgotten ESP32 microcontrollers in the drawer. Taking a career shift into management inspired me to write code for fun!

Features

  • Fully open-source
  • 3D printed case (SOON!)
  • ESP deep sleep support
  • ESP touch support
  • Non-blocking loop/Timer based
  • SSD1306 0.96" OLED display
  • Supports calling multiple REST API endpoints using the khoih-prog/AsyncHTTPSRequest_Generic library
  • Low-memory footprint JSON handling using the bblanchon/ArduinoJson library
  • NTP time synchronization

UI Features

  • Displays time, date and date of week
  • Displays inside sensor reading and outside temperature attribute from HomeAssistant
  • Displays animated icon when connecting to WiFi
  • Uses animated WiFi icon when displaying WiFi RSSI
  • Multiple separate pages of UI - Setup/Connecting to WiFi, normal operation and entering sleep
  • Internal webserver for configuration
  • Displays stock ticker current price (SOON!)

Setup

Clone this project and open it as a Platform.io project. Create a srcsecrets.h file under src/ directory and set your own values for SSID, WiFi password, HomeAssistant API URL(SSL is supported), HTTP Auth header and HomeAssistant Entity ID's:

static const PROGMEM char SSID[] = "ssid";
static const PROGMEM char PASSWORD[] = "password";
static const PROGMEM char API_URL[] = "http://homeassistant.ip:8123/api/states/";

static const PROGMEM char AUTH_HEADER[] = " Bearer MyToken";

static const PROGMEM char IN_SENSOR_ID[] = "sensor.id";
static const PROGMEM char OUT_SENSOR_ID[] = "sensor.id";

desk_display's People

Contributors

artis101 avatar

Watchers

 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.