Skip to content

Instantly share code, notes, and snippets.

View ackstorm23's full-sized avatar

Evan Sikorski ackstorm23

View GitHub Profile
@aaronk6
aaronk6 / ddns_henet.rsc
Last active July 18, 2024 23:12
RouterOS dynamic DNS update script for he.net (IPv4 and IPv6)
# RouterOS dynamic DNS Update Script for he.net
# =============================================
# make global to preserve IP and IPv6 address across script executions
:global ipddns
:global ipv6ddns
:local ddnshost "myhost.example.com"
:local ddnspass "MY_SECURE_PASSWORD"
:local waninterfacev4 "V4_INTERFACE_NAME" # Interface to retrieve WAN IPv4 address from (i.e. pppoe-out1)
@finity69x2
finity69x2 / nws_wx_alert_rest.txt
Last active November 9, 2022 00:06
Home Assistant Configuration for Adding Weather Alerts from the US NWS using a REST Sensor
This will allow several functions including a persistent pop-up notification on your HA front end, a notification to whichever notify service you use (I’m using Pushbullet in this example), and, if you use another custom component (https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639), it will also trigger an announcement to all of your Echo devices.
You next need to find either your NWS Zone ID or County ID. It is better to use both ID's here.
You can find your Zone or County ID by going to https://alerts.weather.gov/, scroll down to your state and click on the “zone list” and/or "county list" then look for the entry for your county.
Once you have your desired ID you create a sensor, replacing my id (INZ009, INC033) with yours. The ID is case sensitive!
Then when you have your ID's, enter them into the configuration below.