{"id":44618908,"url":"https://github.com/jdamcd/inky-stocks","last_synced_at":"2026-02-14T13:34:37.956Z","repository":{"id":279127561,"uuid":"937781801","full_name":"jdamcd/inky-stocks","owner":"jdamcd","description":"Stock ticker for Pi Zero \u0026 Inky pHAT","archived":false,"fork":false,"pushed_at":"2026-01-14T19:43:39.000Z","size":1706,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-14T23:37:31.621Z","etag":null,"topics":["e-ink","inkyphat","pimoroni","raspberry-pi-zero","yahoo-finance"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jdamcd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-23T21:49:50.000Z","updated_at":"2026-01-14T19:43:44.000Z","dependencies_parsed_at":"2025-02-23T23:38:20.412Z","dependency_job_id":null,"html_url":"https://github.com/jdamcd/inky-stocks","commit_stats":null,"previous_names":["jdamcd/inky-stocks"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jdamcd/inky-stocks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdamcd%2Finky-stocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdamcd%2Finky-stocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdamcd%2Finky-stocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdamcd%2Finky-stocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdamcd","download_url":"https://codeload.github.com/jdamcd/inky-stocks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdamcd%2Finky-stocks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29444803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T12:43:28.304Z","status":"ssl_error","status_checked_at":"2026-02-14T12:43:14.160Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["e-ink","inkyphat","pimoroni","raspberry-pi-zero","yahoo-finance"],"created_at":"2026-02-14T13:34:37.362Z","updated_at":"2026-02-14T13:34:37.949Z","avatar_url":"https://github.com/jdamcd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Inky Stocks\n\nA stock ticker for the Raspberry Pi Zero \u0026 Pimoroni Inky displays, fetching daily stock performance from the Yahoo Finance API:\n\n- Supports any symbol on Yahoo Finance\n- Displays the most recent day if the market is closed\n- Works for 24/7 symbols like BTC-USD\n- Plots the end of the previous day if the market opened \u003c2 hours ago\n- Supports both Inky pHAT (250x122) and Inky wHAT (400x300) displays\n\n![Output on the Inky pHAT](readme-img/photo.jpg)\n\n## Setup\n\nYou'll need a Raspberry Pi Zero 2 (or WH) with either:\n- [Pimoroni Inky pHAT](https://shop.pimoroni.com/products/inky-phat) (250x122 version)\n- [Pimoroni Inky wHAT](https://shop.pimoroni.com/products/inky-what)\n\n[Install the Inky library](https://learn.pimoroni.com/article/getting-started-with-inky-phat) on your Raspberry Pi before running this script.\n\n1. Activate your Python virtual environment, e.g. the default from the Inky pHAT install guide:\n\n   ```bash\n   source ~/.virtualenvs/pimoroni/bin/activate\n   ```\n\n2. Install the project dependencies:\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n## Example usage\n\n| Index | Stock | Crypto |\n|---------|-------------|---------|\n| `python stocks.py --symbol ^FTSE` | `python stocks.py --symbol AAPL` | `python stocks.py --symbol BTC-USD` |\n| ![FTSE](readme-img/example_ftse.png) | ![AAPL](readme-img/example_aapl.png) | ![BTC](readme-img/example_btc.png) |\n\n### Multiple symbols (wHAT only)\n\n```bash\n# Show 3 major indices\npython stocks.py --symbols ^GSPC ^FTSE ^DJI\n```\n\n### Options\n\n- Add the `--three-color` flag if you have a black/white/red variant of the display and you want the red highlights.\n- Install the Pimoroni LED SHIM alongside the pHAT and it'll will light up green or red depending on whether the stock is up or down.\n- You can test without hardware by running the display variant script directly (`stocks_phat.py` or `stocks_what.py`) with the same arguments. The screen output will be saved as a PNG.\n\n### Auto refresh\n\n1. Create a bash script in the project directory and make it executable (`touch run.sh \u0026\u0026 chmod +x run.sh`):\n\n    ```bash\n    #!/bin/bash\n    source ~/.virtualenvs/pimoroni/bin/activate\n    python ~/inky-stocks/stocks.py --symbol ^FTSE --three-color\n    ```\n\n2. Add a cron job to run the script every 15 minutes:\n\n    ```bash\n    crontab -e\n    ```\n\n    ```\n    */15 * * * * ~/inky-stocks/run.sh\n    ```\n\n## Disclaimer\n\nObviously this is just for fun, there are no guarantees about the accuracy of the data, and you shouldn't use this to make any financial decisions. :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdamcd%2Finky-stocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdamcd%2Finky-stocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdamcd%2Finky-stocks/lists"}