stass / finviz-frame

RPI 4 based finviz stockmap frame

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

finviz-frame

RPI 4 based finviz stockmap frame.

Fetches stock map data from finviz and shows it on your raspberry pi display. Finviz is awesome, subscribe to it!

Photo

Components

Follow the NeeGo assembly instructions to put it all together.

Software

I used Pyxian SDK from Renetec: https://www.renetec.io/pages/easy-gui-development-for-raspberry-pi It allows one to develop RPi graphical apps with just HTML and Javascript. Great fit for this usecase.

  • Download Pyxian from the URL above
  • Flash it to the SD card
  • Boot your RPI4 and configure WiFi from the Web UI
  • Copy the files from this repo to the /home/pi/.inox/apps/ directory on your Raspberry Pi
  • Install cacerts: sudo apt-get install ca-cacert
  • Add update.sh script to the crontab so it runs periodically using crontab -e. This is what I used: */5 * * * * /home/pi/.inox/apps/finviz/update.sh
  • You should see the finviz app in the Installed Apps secton of the Pyxis UI. Start it from there.
  • Enjoy!

Caveats

  • The smallest map available from FinViz is 788 pixels. This is too big for the RPi display, so I had to scale down the page using the CSS "zoom" attribute. This prevents hover events from working correctly. This can probably be fixed by installing a custom event handler to scale the offsets back to what they are supposed to be.
  • Finviz does not have an API, so the code fetches the finviz HTML page and parses it. This is likely break in the future if they change the format.
  • The data gets updated by refreshing the page every 5 minutes. This causes a flicker every refresh.

About

RPI 4 based finviz stockmap frame


Languages

Language:HTML 95.6%Language:Shell 4.4%