{"id":29690293,"url":"https://github.com/aneisch/epaper-stock-ticker-display","last_synced_at":"2026-02-08T17:33:07.892Z","repository":{"id":302716003,"uuid":"1012251501","full_name":"aneisch/epaper-stock-ticker-display","owner":"aneisch","description":"ESPHome E-Paper Stock Display","archived":false,"fork":false,"pushed_at":"2025-07-23T07:23:05.000Z","size":1222,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-16T19:17:40.728Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aneisch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-02T04:00:32.000Z","updated_at":"2025-07-23T07:22:25.000Z","dependencies_parsed_at":"2025-07-03T21:33:31.485Z","dependency_job_id":"f27fbc9c-b84b-41bd-ace7-0bd19588f93c","html_url":"https://github.com/aneisch/epaper-stock-ticker-display","commit_stats":null,"previous_names":["aneisch/epaper-stock-ticker-display"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/aneisch/epaper-stock-ticker-display","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aneisch%2Fepaper-stock-ticker-display","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aneisch%2Fepaper-stock-ticker-display/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aneisch%2Fepaper-stock-ticker-display/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aneisch%2Fepaper-stock-ticker-display/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aneisch","download_url":"https://codeload.github.com/aneisch/epaper-stock-ticker-display/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aneisch%2Fepaper-stock-ticker-display/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29238356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T14:18:14.570Z","status":"ssl_error","status_checked_at":"2026-02-08T14:18:14.071Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-23T06:06:41.521Z","updated_at":"2026-02-08T17:33:07.887Z","avatar_url":"https://github.com/aneisch.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stock Ticker Display (ESPHome + ePaper)\n\nThis project displays live stock ticker data on a 2.13\" ePaper screen using ESPHome and a Lolin C3 Mini board. It connects over WiFi, fetches pricing from a self-hosted user-defined HTTP JSON endpoint, and supports OTA updates, captive portal fallback WiFi configuration, market-hours scheduling, and more.\n\n![ePaper Display](images/ticker_display.jpg)\n\n![Web Interface](images/interface.png)\n\n---\n\n## Hardware\n\n- **Microcontroller**: Lolin C3 Mini (ESP32-C3)\n- **Display**: [Waveshare 2.13\" ePaper TTGO b74 variant](https://www.amazon.com/dp/B0D22JJ18B)\n- **Connections**:\n\n| Function     | Pin        | Color Label |\n|--------------|------------|--------------|\n| `clk_pin`    | GPIO2      | Yellow       |\n| `mosi_pin`   | GPIO4      | Blue         |\n| `cs_pin`     | GPIO6      | Orange       |\n| `dc_pin`     | GPIO10     | Green        |\n| `busy_pin`   | GPIO3      | Purple       |\n| `reset_pin`  | GPIO5      | White        |\n| `3v`         | 3V         | Grey         |\n| `GND`        | GND        | Brown        |\n\n---\n\n## Features\n\n- **Smart market-hours logic**: Only updates when markets are open (inclusive of pre and post-market).\n- **WiFi fallback mode**: Auto-starts Access Point + captive portal if no connection is available.\n- **User-adjustable fetch interval**: From 30 seconds to 1 hour (default 30 seconds). Only updates display if change occurred.\n- **OTA firmware updates** via ESPHome dashboard, command line, or web interface.\n- **Local Web UI**: For easy manual control and diagnostics. You can connect via the name.local, eg: `http://stock_ticker_display_main.local`\n- **Supports Custom HTTP endpoint** for price data (must return JSON).\n\n---\n\n## Software Overview\n\nThis project uses [ESPHome](https://esphome.io) and should be deployed via the ESPHome dashboard or CLI.\n\n### Substitutions\n\n```yaml\nsubstitutions:\n  name: stock_ticker_display_main\n  clk_pin: GPIO2\n  mosi_pin: GPIO4\n  cs_pin: GPIO6\n  dc_pin: GPIO10\n  busy_pin: GPIO3\n  reset_pin: GPIO5\n```\n\n### JSON Endpoint Format\n\nTo display a custom ticker, your JSON endpoint *must* return the below at minimum. Your endpoint can be protected or hosted locally. ESPHome supports SSL (validation disabled by default).\n\n```json\n{\n  \"symbol\": \"AAPL\",\n  \"timestamp\": \"2025-07-03T15:59:58-05:00\",\n  \"changePercentage\": \"-0.88\",\n  \"latestPrice\": 196.11,\n  \"period\": \"after-hours\"\n}\n```\nValid Entries for `period`: `['pre-market', 'regular-market', 'after-hours']`\n\nNote: `$` will be prepended to `latestPrice` on display. `%` will be appended to `changePercentage` on display.\n\n\n---\n\n## Display Modes\n\n- **STA Mode + Connected**: Shows price, symbol, and % change.\n- **STA Mode + Connecting**: \"WiFi Connecting...\" notice with timeout.\n- **AP Mode**: Fallback instructions with captive portal address.\n\n![Connecting](images/connecting.jpg)\n\n![Fallback](images/fallback.jpg)\n\nWhen switching between display modes, the epaper deisplay will do a full refresh. After the first two pricing updates, the display will fall back to a partial refresh, with a full refresh occuring every 50 refreshes (to clean up ghosting)\n\n---\n\n## Automation \u0026 Scripts\n\n### Auto-fetch at boot:\n- Waits for WiFi.\n- Updates display immediately.\n\n### Interval updates:\n- Conditionally runs `fetch_and_update` based on:\n  - Market hour window\n  - Selected refresh interval\n  - WiFi connected status\n\n### Partial display update:\n- Sets set_full_update_every to ensure only partial update\n- Refreshes display (3x) with a delay in between to clean up artifacts\n---\n\n## Secrets.yaml\n\nIf building from scratch, the following are required fields:\n\n```yaml\nwifi_ssid: \"your_home_wifi\"\nwifi_password: \"your_wifi_password\"\nwifi_ssid_two: \"fallback_wifi\"\nwifi_password_two: \"fallback_password\"\nepaper_price: \"https://your-server.com/price-feed.json\"\n```\n\n---\n\n## Fonts\n\nIncludes [Montserrat Black](https://fonts.google.com/specimen/Montserrat) in 3 sizes:\n- Price (50pt)\n- Ticker (20pt)\n- WiFi/Instructions (12pt)\n\n---\n\n## Debugging\n\n- **View Logs** via ESPHome CLI or Web UI.\n- Log level: `DEBUG`\n\n---\n\n## Flashing\n\n```bash\nesphome run stock_ticker_display.yaml\n```\n\nOr upload a compiled binary via the OTA update mechanism on the web interface (you can connect via the name.local, eg: `http://stock_ticker_display_main.local`, or via the captive/WiFi setup interface) after the first flash. A compiled binary in OTA format is available in this repository's releases. You can use this and then tweak the parameters via the web interface.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faneisch%2Fepaper-stock-ticker-display","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faneisch%2Fepaper-stock-ticker-display","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faneisch%2Fepaper-stock-ticker-display/lists"}