Crybulb
Version, currently master branch1 version
- master branchlatestMar 1, 2019
github.com/tgwilliams63/crybulb
Crystal Library for TPLink Bulb
Installation
# Add this to your shard.yml
dependencies:
Crybulb:
github: tgwilliams63/crybulb
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.23.1- License
- MIT
- Author
- Travis Williams
- Target
Crybulbfrom src/crybulb.cr
Dependencies
This version declares no dependencies.
README
Crybulb
Crystal Program for controlling your TP-Link Lightbulb!
Build Crybulb
For most use cases this should work:
crystal build ./crybulb.cr --release
At the time of writing there is an issue I ran into with a certain version of LLVM where the --release flag wasn't working unless you also included --no-debug. Use the below command if you get an error compiling the release version:
crystal build ./crybulb.cr --release --no-debug
Usage
./crybulb [arguments]
--off "Turn Off"
--on "Turn On"
-c C, --color=C
-b B, --brightness=B "Set Brightness"
-h H, --hue=H "Set Hue"
-s S, --saturation=S "Set Saturation"
-t T, --transition "Set Transition Period"
--cycle "Enter Disco Mode"
--help "Show this help"
Details
Right now the -c command expects lowercase colors, and the values it accepts can be found in the "colors" Named Tuple inside of the crybulb.cr file. This list should be easily expandable if you want to add your own custom colors.
Examples
Turn light bulb on and off:
./crybulb --on
./crybulb --off
Set to blue or red:
./crybulb -c blue
./crybulb -c red
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Mar 1, 2019
- Crystal
0.23.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/tgwilliams63/crybulb
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 17, 2026
- Synced
- Aug 17, 2026
- Versions
- 1