BEARER = "my-long-token"
import tweepy
client = tweepy.StreamingClient(BEARER)
client.get_rules()
import network | |
import urequests | |
import ujson | |
# do_connect() | |
mast_url="https://mastodon.social" | |
token=MY_MASTODON_TOKEN | |
# note: this *must* include content-type |
from mastodon import Mastodon | |
mast = Mastodon(client_id='key',client_secret='secret',access_token='token',api_base_url='https://mastodon.social') | |
me = mast.me() | |
print(f"Followers: {me.followers_count}") |
# useful https://stackoverflow.com/questions/21214270/how-to-schedule-a-function-to-run-every-hour-on-flask | |
# docs https://pypi.org/project/Flask-APScheduler/ | |
from flask import Flask | |
from flask_apscheduler import APScheduler | |
app = Flask(__name__) | |
scheduler = APScheduler() | |
def scheduleTask(): |
You'll need to install iSH
Then...
echo https://dl-cdn.alpinelinux.org/alpine/v3.16/main > /etc/apk/repositories
echo https://dl-cdn.alpinelinux.org/alpine/v3.16/community >> /etc/apk/repositories
apk upgrade
apk add micropython --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing
{ | |
"@context": "http://schema.org/", | |
"@type": "Person", | |
"name": "Andy Piper", | |
"affiliation": [ | |
{ | |
"@type": "Organization", | |
"name": "Games at Work dot Biz", | |
"sameAs": [ | |
"https://botsin.space/@gamesatwork_biz", |
[ip]:[port]/elgato/accessory-info
[ip]:[port]/elgato/battery-info
[ip]:[port]/elgato/lights
[ip]:[port]/elgato/lights/settings
GET /elgato/accessory-info
I couldn't find a comprehensive list of links for the RC2014 so I started one. Suggestions welcome.
"""BME688 / BME680 demo | |
This demo will work for both the BME680 and BME688. | |
""" | |
import time | |
from breakout_bme68x import BreakoutBME68X, STATUS_HEATER_STABLE | |
from pimoroni_i2c import PimoroniI2C | |
import badger2040 | |
import machine | |
badger = badger2040.Badger2040() |
Sign up for Essential Access | |
https://t.co/apply | |
Automation rules | |
https://t.co/automation | |
API roadmap | |
https://t.co/roadmap | |
Documentation for Twitter API v2 |