https://github.com/foxfirecodes/homebridge-app-switch
Use Homebridge to open and close apps
https://github.com/foxfirecodes/homebridge-app-switch
Last synced: 5 months ago
JSON representation
Use Homebridge to open and close apps
- Host: GitHub
- URL: https://github.com/foxfirecodes/homebridge-app-switch
- Owner: foxfirecodes
- Created: 2017-05-04T16:44:11.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-22T00:15:47.000Z (about 2 years ago)
- Last Synced: 2025-01-31T18:13:38.200Z (about 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Homebridge App Switch
This is a [Homebridge](https://github.com/nfarina/homebridge) plugin to control open and close applications with the flick of a (_virtual_) switch.
## Installation
This only works on macOS due to the use of `node-osascript` to turn the applications on & off.
1. `yarn global add homebridge-hermes-player`
2. Add the following to `~/.homebridge/config.json`:
```javascript
{
// ...
"accessories": [
// ...
{
"accessory": "AppSwitch",
"name": "VSC",
// This is the actual name of the application shown in macOS
"appName": "Visual Studio Code"
}
]
}
```
The `name` can be whatever you want, but the `accessory` must be `"AppSwitch"`.