Skip to content

Instantly share code, notes, and snippets.

@Crysknife007
Last active March 7, 2021 23:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Crysknife007/fe09752dd91a3c8e966e9cd0c8a919d8 to your computer and use it in GitHub Desktop.
Save Crysknife007/fe09752dd91a3c8e966e9cd0c8a919d8 to your computer and use it in GitHub Desktop.
Sleep Mushroom Bash Controller
# Run the sleepy mushroom like a dodow sleep aid
# Makes use of WS2812FX Web Interface by kitesurfer1404:
# https://github.com/kitesurfer1404/WS2812FX
# Set animation to fade
curl http://192.168.0.128/set?m=15
# Set color to red
curl http://192.168.0.128/set?c=16711680
# Set speeds and wait in between changes
curl http://192.168.0.128/set?s=5455
sleep 3m
curl http://192.168.0.128/set?s=6000
sleep 3m
curl http://192.168.0.128/set?s=6666
sleep 3m
curl http://192.168.0.128/set?s=7500
sleep 3m
curl http://192.168.0.128/set?s=8571
sleep 3m
curl http://192.168.0.128/set?s=9230
sleep 2m
curl http://192.168.0.128/set?s=10000
sleep 3m
curl http://192.168.0.128/set?s=10909
sleep 3m
curl http://192.168.0.128/set?s=12000
# Run that last one a long time
sleep 157m
# Turn off the light
curl http://192.168.0.128/set?c=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment