Skip to content

Monitor rpilocator to notify you to buy (e.g:) cm4, RPI4. It is a slack message away!

License

Notifications You must be signed in to change notification settings

jayzeng/rpilocator_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rpilocator bot

PI becomes almost impossible to purchase these days, this is a tiny bot to send slack messages to notify myself to buy CM4

Usage:

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

Run in your environment

  1. clone this repo
  2. add a secret (Settings -> Security -> Actions -> Repository secrets) named SLACK_WEBHOOK_URL
  3. paste in your slack webhook url

Example output: image

Slack message is only triggered if there are available products

How it works

  1. Retrieve token from https://rpilocator.com/
  2. Makes a subsequent call (see src/api.py) for implementation details

THANKS https://rpilocator.com/! Please DO NOT USE this for commercial purpose

Contributing

Send me a pull request!

License

See LICENSE.

About

Monitor rpilocator to notify you to buy (e.g:) cm4, RPI4. It is a slack message away!

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages