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
blueprint: | |
name: Lights Off At Sunrise | |
description: Turn off the following lights shortly after sunrise | |
domain: automation | |
input: | |
# Create a variable for identifying the light to act upon | |
target_light: | |
name: Lights | |
description: This is the light (or lights) that will be activated at sunset | |
# Use a selector, to pick the light(s) |
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
#update and install dependencies | |
echo "Updating package list and installing:" | |
echo "kmod-wireguard luci-app-wireguard luci-proto-wireguard wireguard wireguard-tools qrencode" | |
echo | |
#opkg update | |
opkg install kmod-wireguard luci-app-wireguard luci-proto-wireguard wireguard wireguard-tools qrencode | |
#generate keys | |
wg genkey | tee server-privatekey | wg pubkey > server-publickey |
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
#!/bin/bash | |
# This script attempts to read the current time from the gpsd daemon by using the gpspipe command to grab gpsdsentences. | |
# Before attempting to get time, it checks if there is a gps fix to ensure invalid time isn't sent to the system clock. | |
# gpspipe output is formatted and sent to the date program to update the date/time. | |
# | |
# Dependencies: | |
# gpsd | |
# gpsd-clients |
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
#!/bin/bash | |
# dashcam.sh collects image and location data from a Raspberry Pi and writes it to a file. | |
# More information can be found here: https://gist.github.com/dustinlbarnett/06713ddaa926eebb7f42 | |
# Copyright (C) 2015 Dustin Barnett | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |