Git Product home page Git Product logo

m5stack-core2-stock-tracker's Introduction

A Stock Tracking app for the M5Stack Core 2


This is a simple application written for the ESP32 micro controller that uses Yahoo Finance to display the price of stocks on a screen.

Setup and installation


  1. Clone this repository to your computer
  2. Open the folder with Visual Studio Code. The appropriate extensions and libraries should automatically get installed.
  3. Copy lv_conf.h from the root folder into .pio/libdeps/lvgl

Now we need to setup the SD card, the WiFi SSID and password as well as the list of stocks get stored here.

  1. On the root of your SD card create a file called config.json
  2. Paste the following text into the file and replace YOUR_SSID and YOUR_PASSWORD with the ssid and password for your WiFi network. The SECONDS_BETWEEN_STOCK_SWITCHES value can be changed to modify how long each stock is displayed on screen.
{
  "WIFI_SSID": "YOUR_SSID",
  "WIFI_PASSWORD": "YOUR_PASSWORD",
  "SECONDS_BETWEEN_STOCK_SWITCHES": 5
}

Finally, connect your M5Core2 and and select the upload button in VS Code.

Usage


Upon first boot you will be asked to select a stock ticker. Use the rollers to enter it and click add. It will take a moment for the graphs to be filled in as the project is setup to only make 5 API calls per minute. This helps mitigate your IP address getting rate limited by Yahoo.

To add another stock, click the rightmost button on the M5Core2. To remove stocks, click the leftmost button.

m5stack-core2-stock-tracker's People

Contributors

vtallen 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.