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
| from blink1.blink1 import Blink1 | |
| import requests | |
| import time | |
| """ | |
| I run this with a bash script, `something.sh`, which just runs it, and which will catch any errors that it can then email to me: | |
| python3.6 statusblinker.py | |
| """ | |
| b1 = Blink1() |
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 requests | |
| from pytz import timezone | |
| from datetime import datetime | |
| from twilio.rest import Client | |
| import json | |
| import os | |
| import sys | |
| def login(): | |
| # cURL login |
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
| #include <Adafruit_NeoPixel.h> | |
| /* | |
| * Defaultly disabled. More details: https://docs.particle.io/reference/firmware/photon/#system-thread | |
| */ | |
| //SYSTEM_THREAD(ENABLED); | |
| /* | |
| * SYSTEM_MODE: | |
| * - AUTOMATIC: Automatically try to connect to Wi-Fi and the Particle Cloud and handle the cloud messages. |
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
| from instagram_private_api import Client, ClientCompatPatch | |
| from instagram_private_api.errors import ClientError | |
| username = "" | |
| password = "" | |
| api = Client(username, password) # have to disable 2fa | |
| posts = [] | |
| user_feed = api.user_feed(api.authenticated_user_id, max_id="") | |
| posts.extend(user_feed['items']) |
OlderNewer