Giter Site home page Giter Site logo

coelhocarlos / esp32stockticker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from patrick-e-rankin/esp32stockticker

0.0 1.0 0.0 2.89 MB

Basic stock ticker using ESP32 and MAX7219 LED Matrix. Produces a webpage so user can input a ticker.

C++ 100.00%

esp32stockticker's Introduction

ESP32StockTicker

Summary

ESP32 based stock ticker that uses a MAX7219 LED Matrix (mine is 4 segments but how many is up to you), that receives the ticker symbol from self served webpage.

I am currently using Yahoo Finance for price info every 5 seconds but you can change that to the API of your choice along with the update frequency.

This code utilizes both cores, without doing so causes a pause when prices get updated.
Technically should work on ESP8266 with changes. (and it is single core)

The ESP8266 needs the RSA fingerprint method: http.begin(server,"42:0A:3F:BB:EF:F1:FC:D9:FA:0F:23:8F:96:AA:B9:AA:4D:4E:85:15");

I am not a developer or programmer, so my code is not pretty, but it works and I work on it all the time.

This code is compatible with Arduino and PlatformIO.

Libraries Used:

LEDMatrixDriver by Bartosz Bielawski
ESPAsyncWebServer by Me No Dev
ArduinoJson

Setup

My personal ESP32 setup is as follows:

ESP32 Pins LED Matrix
3.3V VCC
GND GND
23 DIN
15 CS
18 CLK

You must insert your own SSID and password for your Wifi, so it can connect.

Upon getting an IP address it will display it continually on the LED Matrix until it receives its first ticker symbol.

From any browser input the IP address where you will be presented with a ticker input.

The program will automatically check for a new price every 5 seconds.

It also supports crypto, but you must use the Yahoo Finance format, for example BTC-USD for Bitcoin.

Any symbol that works on Yahoo Finance should technically work.

I got JSON working finally, so it now works a little better.


Updated 4/1/2021 - Finally got ArduinoJSON working and tried to make the code more readable.

FAQ

What happens when I put a bad ticker? Like "None"?
Core 1 has a fit and panics, causing the ESP32 to restart.

TODO

1) Better Error Handling
2) Multiple Ticker Support

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.