Skip to content

fanqyxl/iOS-Battery-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Useless API to report a Apple devices battery level and for fetching the last reported value.

Requirements

  • Bun

Quick start

  1. Fill out .env
API_KEY=changme
  1. Install packages + run the server with Bun:
bun i
bun run start

Apple Shortcuts

  1. Open the Shortcuts app on iPhone iPad or Macbook.
  2. Create a new shortcut and add these:
    • Get Battery Level
    • Get contents of URL http://localhost:3000/api/update/macbook
    • Method: POST
    • Headers: Key: Authorization Value: Bearer API_KEY
    • Request Body: JSON, Key level, Type number, Value Battery Level
  3. Run the shortcut

Endpoints

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors