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
GOAL: Send a push notification after the (vibrations from the) dryer cycle has completely stopped. | |
USING: | |
* Inexpensive hardware (see below) | |
* ESPhome (http://esphome.io) for chip firmware | |
* Home Assistant (http://hass.io) for sensor state machine and push notification. | |
--- | |
SHOPPING LIST: |
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
#!/usr/bin/env sh | |
if [ -z $1 ]; then | |
echo "You must specify a super-archive name." | |
exit 1 | |
fi | |
git archive --prefix "$1/" -o "$1.tar" HEAD | |
git submodule foreach --recursive "git archive --prefix=$1/\$path/ --output=\$sha1.tar HEAD && tar --concatenate --file=$(pwd)/$1.tar \$sha1.tar && rm \$sha1.tar" |