This file contains 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 os | |
import requests | |
import ctypes | |
from win10toast import ToastNotifier | |
url = "https://api.nasa.gov/planetary/apod?api_key=" | |
os.environ['NO_PROXY'] = 'nasa.gov' | |
r = requests.get(url) | |
toaster = ToastNotifier() |
This file contains 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 os | |
import requests | |
import ctypes | |
from win10toast import ToastNotifier | |
url = "https://api.nasa.gov/planetary/apod?api_key=" | |
os.environ['NO_PROXY'] = 'nasa.gov' | |
r = requests.get(url) | |
toaster = ToastNotifier() |
This file contains 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 subprocess | |
import json | |
stdoutdata = subprocess.getoutput("speedtest -f json") | |
#print(stdoutdata.split()[0]) | |
results = json.loads(stdoutdata) | |
for key in results: | |
download = results["download"]["bandwidth"] | |
upload = results["upload"]["bandwidth"] |
This file contains 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 subprocess | |
import json | |
import sys | |
import time | |
proc = subprocess.Popen(['/home/pi/speedtest -p -f json'], shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE) | |
for i in proc.stdout: | |
output = proc.stdout.readline() |
This file contains 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 subprocess | |
import json | |
import sys | |
import time | |
import pygame | |
import pygame.gfxdraw | |
import math | |
from pygame.locals import * | |
class Gauge: |
This file contains 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 bs4 import BeautifulSoup | |
import requests | |
import re | |
headers = { | |
'User-Agent': 'your-user-agent-here' | |
} | |
class ReadRss: |
This file contains 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 tweepy | |
import time | |
import matplotlib.pyplot as py | |
from wordcloud import WordCloud,STOPWORDS | |
from PIL import Image | |
import numpy as np | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument("-t", "--twittername", help="Twitter handle to use", required=True) |
This file contains 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
# Based on | |
# Scroller Demo | |
# Kevin McAleer May 2022 | |
# Additional code by Vincent Willcox September 2022 | |
import network | |
import secrets | |
import time | |
import urequests | |
from scroller import Scroller |
This file contains 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 | |
import json | |
import time, argparse | |
import matplotlib.pyplot as py | |
from wordcloud import WordCloud,STOPWORDS | |
from PIL import Image | |
import numpy as np | |
parser = argparse.ArgumentParser() | |
parser.add_argument("-a", "--account", help="Handle to use", required=True) |