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
| # 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 |
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
| 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 |
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
| ' 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" |