This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Request Snapchat data archive here: https://accounts.snapchat.com/accounts/downloadmydata | |
# - DO NOT enable "Include your Memories and other saved Media"! | |
# 2. Wait for your archive to be ready and download it | |
# 3. Search for "memories_history.json" in the "json" directory in the archive | |
# 4. Put it right next to this script | |
# 5. Run the script | |
# - Be sure to have all requirements installed. See below for the pip command you need to run. | |
# 6. Output is stored in "memories" directory next to the script | |
# Because of how exif works, we can't just save a timezone. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import this effect in your light module to use it | |
# You have to change the id in line 15 and/or set an id for your LED module | |
# The time-variable exist to make multiple ESPs start from 0 even if they ran the effect before so they are in sync | |
# You can delete it if you only have one LED Strip | |
- lambda: | |
name: Rainbow | |
update_interval: 3s # If you change this, also have to edit line 11 for correct time handling | |
lambda: |- | |
static int state = 0; | |
static uint32_t time = millis(); |