Skip to content

axsddlr/rpilocator_api

Repository files navigation

rpilocator api

(for Raspberry Pi 4 Model B only)

An Unofficial REST API for rpilocator.com

Built by Andre Saddler

heroku

Current Endpoints

/pi4/<region>

  • Method: GET
  • Cached Time: 300 seconds (5 Minutes)
  • Region: US, UK
  • Response:

/pi4/<region>/<model GiB #>

  • Method: GET
  • Cached Time: 300 seconds (5 Minutes)
  • Region: 1, 2, 4, 8

Installation

Source

$ git clone https://github.com/axsddlr/rpilocator_api/
$ cd rpilocator_api
$ pip install -r requirements.txt

Usage

python3 main.py
OR 
uvicorn main:app --reload --port 3000

Contributing

Feel free to submit a pull request or an issue!

License

The MIT License (MIT)