https://github.com/codetheweb/ifttt-bluetooth-proximity
A script to add Bluetooth proximity detection to IFTTT flows
https://github.com/codetheweb/ifttt-bluetooth-proximity
Last synced: 29 days ago
JSON representation
A script to add Bluetooth proximity detection to IFTTT flows
- Host: GitHub
- URL: https://github.com/codetheweb/ifttt-bluetooth-proximity
- Owner: codetheweb
- Created: 2019-04-03T17:34:59.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-03T19:40:38.000Z (about 6 years ago)
- Last Synced: 2025-02-05T17:38:47.150Z (3 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 📶 IFTTT Bluetooth Proximity
A script to add Bluetooth proximity detection to IFTTT flows (using an IFTTT webhook). As this uses `hcitool`, it **does not** work on Windows or macOS.
## Usage
Environment variables:
- `IFTTT_TOKEN`: the webhook token
- `KNOWN_DEVICES`: the MAC addresses of Bluetooth devices you want to sense, seperated by commas
- `INTERVAL_SECONDS`: (optional, default **5**) the interval in seconds between scans
- `AT_LEAST_1_EVENT`: (optional, default **someone_home**) the IFTTT event that's emitted when at least one device is nearby
- `AT_MOST_0_EVENT`: (optional, default **everyone_gone**) the IFTTT event that's emitted when all devices are not foundExample run command:
```shell
docker run -d \
--name bluetooth-proximity \
--privileged \
--net=host \
--restart always \
codetheweb/ifttt-bluetooth-proximity
```