https://github.com/tacticaltechjay/btpin-rotator
A bluetooth pin rotator I made for myself.
https://github.com/tacticaltechjay/btpin-rotator
bluez-tools bt-agent dbus javascript js shell shell-script
Last synced: about 2 months ago
JSON representation
A bluetooth pin rotator I made for myself.
- Host: GitHub
- URL: https://github.com/tacticaltechjay/btpin-rotator
- Owner: TacticalTechJay
- License: gpl-3.0
- Created: 2022-07-06T05:30:20.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-12T17:43:28.000Z (almost 4 years ago)
- Last Synced: 2025-03-15T04:11:39.702Z (over 1 year ago)
- Topics: bluez-tools, bt-agent, dbus, javascript, js, shell, shell-script
- Language: JavaScript
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# btPin-rotator
This simply rotates a bt-agent's pin. This is roughly done. No, I will not improve it... probably.
This is supposed to be used on linux with bt-agent from [bluez-tools](https://github.com/khvzak/bluez-tools)
You can follow .env.example on how to configure btPin-rotator. The config is as follows:
|Key|Value|Description|
|:-------|:-------:|------:|
|`TWILIO_ACCOUNT_SID`|String|This is the account SID for the use of Twilio.|
|`TWILIO_AUTH_TOKEN`|String|This is the auth token for the use of Twilio.|
|`TWILIO_FROM_PHONE`|String|The phone number to use on said Twilio account.|
|`TWILIO_TO_PHONE`|String|The phone number to send the new bluetooth pin to.|
|`PIN_PATH`|String|The full path to the pin file bluez-tools' bt-agent will use.|
|`CODE_LENGTH`|Number|The length of the new bluetooth pin. (JS Only)|
|`SERVICE`|String|The name the bt-agent service is under for restarting under new bluetooth pin.|