Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

webdev23/phpCorsair

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phpCorsair!
Spectral audio based events for corsair RGB devices.

Controls Corsair devices running under the ckb-daemon with php

  • Rainbow effect for Corsair devices running trought the ckb-daemon.
  • https://github.com/ccMSC/ckb
  • Should works with any device running the ckb-daemon.
  • The cue software can stay well closed.
  • But it can also works on top of the ckb software to add trippy effects.
  • It can run many times in parallel to add extra trippy effects.
  • Make sure the ckb-daemon is running with: sudo ckb-daemon
  • If the driver fail: sudo killall ckb-daemon && sudo ckb-daemon
  • Add a keyboard shortcut to call, or run in terminal:
  • Kill anytime to keep the colors as a color roulette.
Deploy and run:
git init && git pull https://github.com/webdev23/phpCorsair.git && chromium-browser --app=http://localhost:9040/phpcorsair! | php -S localhost:9040
Dependencies:

php7.0 curl

sudo apt install php7.0 && sudo apt install curl

To serve daemon.php from the folder:

php -S localhost:9040

Or as a daemon:

nohup chromium-browser --app=http://localhost:9040/phpcorsair! | nohup php -S localhost:9040 &

You may want to close the terminal and keep the program running, with screen:

sudo apt install screen

screen chromium-browser --app=http://localhost:9040/phpcorsair!

To run from the folder if the daemon is listening open the file with chromium browser, or with this command line:.

chromium-browser --app=http://localhost:9040/phpcorsair!

Rainbow only via the terminal:

php <(curl -s https://raw.githubusercontent.com/webdev23/phpCorsair/master/rainbow)

or just:

./rainbow

All files should stays on the same folder, as they are going to talk to each others. This should be all.

Here is a youtube video of the beginning of this project, showing some features: https://www.youtube.com/watch?v=H7mKN2PASGM

Enjoy!