Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/loiccoyle/tinyticker
🚀 A tiny Raspberry Pi powered ePaper ticker
https://github.com/loiccoyle/tinyticker
cryptocurrency diy eink epaper finance raspberry-pi stocks ticker waveshare
Last synced: about 1 month ago
JSON representation
🚀 A tiny Raspberry Pi powered ePaper ticker
- Host: GitHub
- URL: https://github.com/loiccoyle/tinyticker
- Owner: loiccoyle
- License: mit
- Created: 2021-10-02T13:42:59.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-06T01:56:39.000Z (7 months ago)
- Last Synced: 2024-06-06T02:31:38.346Z (7 months ago)
- Topics: cryptocurrency, diy, eink, epaper, finance, raspberry-pi, stocks, ticker, waveshare
- Language: Python
- Homepage: https://loiccoyle.com/tinyticker
- Size: 4.81 MB
- Stars: 10
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
🚀 tinyticker 🚀
`tinyticker` uses a Raspberry Pi zero W and a small ePaper display to periodically display a stock or crypto chart.
A `flask` web interface is created to set the ticker options and control the Raspberry Pi.
`tinyticker` uses the [`cryptocompare`](https://github.com/lagerfeuer/cryptocompare) API to query the crypto price information, you'll need to get yourself a free [API key](https://min-api.cryptocompare.com/pricing). As well as the [`yfinance`](https://github.com/ranaroussi/yfinance) package to get the stock financial data.
## 🛒 Hardware
Shopping list:
- [Raspberry Pi Zero WH](https://www.adafruit.com/product/3708)
- One of these ePaper displays:
- [Waveshare ePaper 2.13in Black & White](https://www.waveshare.com/wiki/2.13inch_e-Paper_HAT)
- [Waveshare ePaper 2.13in Black, White & Red]()
- [Waveshare ePaper 2.13in Black, White & Yellow]()
- [Waveshare ePaper 2.7in Black & White](https://www.waveshare.com/wiki/2.7inch_e-Paper_HAT)
- [Waveshare ePaper 7.5in Black, White & Red](https://www.waveshare.com/wiki/7.5inch_e-Paper_HAT_(B)_Manual)
- A micro sd card## 📦 Installation
### Recommended setup
Flash the [tinyticker image](https://drive.google.com/drive/folders/1U-PGzkOtSynN6FGDq2MsXF9kXGdkzd0D) onto a SD card and you should be good to go.
> [!NOTE]
> To build your own image, see the [`pi-gen`](https://github.com/loiccoyle/pi-gen) repo.### Manual setup
> [!NOTE]
> This is much more involved than the recommended setup and will most likely require some debugging.
ExpandI highly recommend using [comitup](https://github.com/davesteele/comitup) to setup the networking on your RPi.
- Write the `comitup` [image](https://davesteele.github.io/comitup/latest/comitup-lite-img-latest.html) to your sd card
- Boot up the RPi and setup the networking
- ssh into your RPi, you'll probably want to change the password while you're at it
- Enable the [SPI interface](https://www.raspberrypi-spy.co.uk/2014/08/enabling-the-spi-interface-on-the-raspberry-pi/)
- (Optional) rename the hostname of your RPi by editing the `/etc/hostname` and `/etc/hosts` file
- (Optional) rename the Wifi AP name by editing the `/etc/comitup.conf` file
- Install the `BCM2835` driver:```sh
curl http://www.airspayce.com/mikem/bcm2835/bcm2835-1.60.tar.gz | tar xzv
cd bcm2835-1.60/
./configure
make
make install
```- Install `pip`:
```sh
sudo apt install python3-pip
```- Install dependency requirements:
```sh
sudo apt install libxml2-dev libxslt1-dev libatlas-base-dev ninja-build patchelf libopenjp2-7 libtiff-dev libjpeg-dev
```- Install `tinyticker`:
```sh
pip install tinyticker
```- To setup `tinyticker` to start on boot, copy over the [`systemd` unit files](./systemd) and enable them.
## 👢 First boot
On first boot, you will need to connect your RPi to your wifi network.
- Connect to the `tinyticker` wifi AP
- Select the wifi network you want your RPi to connect to
- Enter the wifi passwordYour RPi will now connect to your wifi and the `tinyticker` services will start.
Once the web app is running, head over to `http://tinyticker.local` to configure it.