Skip to content

Instantly share code, notes, and snippets.

View stevewasiura's full-sized avatar

Steve Wasiura stevewasiura

View GitHub Profile
@stevewasiura
stevewasiura / weather_observed_scrape_html_parse_precipitation_hrs_1_3_6.py
Created June 10, 2024 21:19
scrape html webpage of observed weather and parse precipitation values for hours 1, 3 and 6
# 2024-06-10
# simple python code to scrape html webpage from weather.gov (requires only 1 library named "requests")
# and parse values of columns "precipitation" aggregated by 1 hour, 3 hours, 6 hours
# and loop thru each row of data from past 24 hours,
# and sum the values to get a total rainfall amount in inches
# to be used to automate the watering system of a garden
import requests # http requests, needed to get http data
@stevewasiura
stevewasiura / gist:c5adeccf29c01869961a7f09afadb8f4
Last active January 4, 2022 17:56
SendPulse API SMTP SendEMail Python 3 example
This is a simple example, using python 3 to post to SendPulse's API
first, create a python file to hold your client credentials
#SendPulse_API_Client_Credentials.py
# create account at SendPulse.com
# wait a few days for approval to make sure you are not a spammer
# get your client_id & secret from https://login.sendpulse.com/settings/#api
@stevewasiura
stevewasiura / googledomains_dynamicip_update.vbs
Created January 20, 2021 20:54
google-domains-dynamic-dns-update.vbs on Microsoft Windows
' This script updates a synthetic DNS record at Google Domains
' Google Dynamic DNS: https://support.google.com/domains/answer/6147083
' Synthetic Records: https://support.google.com/domains/answer/6069273
' set these values
' as displayed in the google domain control panel
' in the synthetic records section
' by clicking the triangle for the Dynamic DNS entry to reveal the UN & PWD
Dim USERNAME : USERNAME="my_googledomains_syntheticrecords_username_credentials"