.##....##..########..########.##......##
.###...##.##..##..##.##.......##..##..##
.####..##.##..##.....##.......##..##..##
.##.##.##..########..######...##..##..##
.##..####.....##..##.##.......##..##..##
.##...###.##..##..##.##.......##..##..##
.##....##..########..##........###..###.
Lightweight stock ticker tape for the Raspberry Pi Zero W, and Pimoroni's Four Letter pHAT.
- Raspberry Pi Zero W
- Raspberry Pi Zero W GPIO Male Header
- Pimoroni Four Letter pHAT
- Raspberry Pi Accessories - SD card, power, etc.
- Solder GPIO Header onto Raspberry Pi Zero W
- Follow the Pimoroni pHAT Setup Guide to solder pHAT Headers, and attach to Pi.
- Follow the Raspberry Pi Hardware Guide to set up a Raspberry Pi Zero W with raspbian, connect the Raspberry Pi to your Wifi AP/Router, and log in via SSH.
Log into the Raspberry Pi and clone the NSFWidget Repository and enter the directory:
$ git clone https://github.com/ianmclinden/NSFWidget.git
$ cd NSFWidget/
An installation script has been provided to install NSFWidget and the required dependencies, and automatically load NSFWidget at boot. Just run
$ sudo ./install.sh
or run with the --noboot
flag to keep from automatically starting NSFWidget at boot.
$ sudo ./install.sh --noboot
After installation, edit your stock preferences in /etc/nsfw/stocks.conf
. Then, run NSFWidget, using
$ sudo service nsfw start
OR
$ sudo systemctl start nsfw.service
NSFWidget requires the following python libraries:
- fourletterphat
- yahoo-finance which can be installed via pip.
Then, run using the python environment using
$ python nsfwidget.py [stocks_file.conf]
- nsfw.py: Main logic
- stocks.conf: Configures what stocks to watch
- install.sh: Installation script
Ian McLinden 2017 https://github.com/ianmclinden