PI becomes almost impossible to purchase these days, this is a tiny bot to send slack messages to notify myself to buy CM4
It supports different country and multiple products
For example, find all CM4, RPI4 in the United States (us) e.g:
python3 main.py us CM4 RPI4
Or you can run in "mock" mode, which will simply load the mock.json as stub content
IS_MOCK=True python3 main.py us CM4
- clone this repo
- add a secret (Settings -> Security -> Actions -> Repository secrets) named SLACK_WEBHOOK_URL
- paste in your slack webhook url
Slack message is only triggered if there are available products
- Retrieve token from https://rpilocator.com/
- Makes a subsequent call (see src/api.py) for implementation details
THANKS https://rpilocator.com/! Please DO NOT USE this for commercial purpose
Send me a pull request!
See LICENSE.