https://github.com/davidsword/alfred-unicorn-busy-server
🦄 Alfred Workflow to manage status of a Unicorn Busy Server.
https://github.com/davidsword/alfred-unicorn-busy-server
alfred-workflow raspberry-pi
Last synced: 3 months ago
JSON representation
🦄 Alfred Workflow to manage status of a Unicorn Busy Server.
- Host: GitHub
- URL: https://github.com/davidsword/alfred-unicorn-busy-server
- Owner: davidsword
- License: mit
- Created: 2020-05-06T19:17:45.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-27T06:52:27.000Z (about 6 years ago)
- Last Synced: 2025-10-21T05:38:45.010Z (9 months ago)
- Topics: alfred-workflow, raspberry-pi
- Language: PHP
- Homepage:
- Size: 3.06 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🦄 Alfred Unicorn Busy Server
Alfred Workflow to manage status of a [unicorn-busy-server](https://github.com/estruyf/unicorn-busy-server/).

## Setup
1. Requires **@estruyf** 's [unicorn-busy-server](https://github.com/estruyf/unicorn-busy-server/) server running on a Raspberry Pi w/ a [Pimoroni Unicorn pHAT](https://shop.pimoroni.com/products/unicorn-phat)
2. Download latest Workflow from [Releases](https://github.com/davidsword/alfred-unicorn-busy-server/releases) tab and install into Alfred
3. Set variables
- `UBS_BRIGHTNESS` a float for default brightness, between `0.2`-`0.5`
- `UBS_ADDRESS` the address of your rpi with the port and no trailing slash, example `http://192.0.0.0:5000`
## Usage

- Keyword trigger `ubs` view status
- `⌅` to enter the change status
- `⌘⌅` to quick change status to Busy
- `⌥⌅` to quick change status off

## Integration
Use external trigger to use workflow to control the status:
```applescript
tell application id "com.runningwithcrayons.Alfred" to run trigger "ubs" in workflow "com.davidsword.alfredunicornbusyserver" with argument "Busy"
```
Accepts `Busy`, `Avaliable`, `Away`, `Rainbow`, `Off`
## TODO
- [ ] Brightness isn't respected at the API level
- [ ] Rainbow via this CURL doesn't work on the API, its `500`ing (for me at least)
- [ ] support for the `/api/switch` endpoint, passing in hex colours, ie `ubs #c0ffee`
## Links
* https://www.eliostruyf.com/diy-building-busy-light-show-microsoft-teams-presence/
* https://github.com/estruyf/unicorn-busy-server/
* https://davidsword.ca/slack-busy-light/