Skip to content

Instantly share code, notes, and snippets.

@delfick
Created June 9, 2020 07:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save delfick/922160ce62fb8d4253107e8a9105e9c1 to your computer and use it in GitHub Desktop.
Save delfick/922160ce62fb8d4253107e8a9105e9c1 to your computer and use it in GitHub Desktop.

Run this:

mkdir cleaneranimations
cd cleaneranimations
git clone git@github.com:delfick/photons-core
python -m venv animations
cd photons-core
git checkout rewriterewriterewrite
source ../animations/bin/activate
pip install -e modules

For animations to work your tiles need to be told where they are in relation to each other

My rewrite has a built in thing for this but it's broken at the moment, so you can use the current thing I stole that functionality from:

pip install lifx-photons-interactor
photons-interactor serve
# go to http://localhost:6100 and rearrange the tiles

and then:

vim ../instructions.json
# copy https://gist.githb.com/delfick/22e984ff9587401a255b175f4db6b309 into that file
lifx lan:animate -- file://../instructions.json

or just:

lifx lan:animate

Or for a better version of time:

lifx lan:animate time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment