- grid power / smart meter, connected to Home Assistant (e.g. Bayha Electronics Tasmota IR)
- locally reachable inverter with variable output control, connected to Home Assistant (e.g. APSystems EZ1
- SunLit Solar Custom Integration installed in Home Assistant (e.g. via HACS)
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
| #!/usr/bin/env bash | |
| # Original version: https://betterdev.blog/minimal-safe-bash-script-template/ | |
| # Minor adjustments for positional arguments, debug output, remove colors and such. | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| #script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
| script_name=$(basename "${BASH_SOURCE[0]}") |
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
| #!/usr/bin/env bash | |
| OCTANT_IMAGE=dsiebel/octant | |
| OCTANT_VERSION=0.11.1 | |
| docker build \ | |
| --tag ${OCTANT_IMAGE}:${OCTANT_VERSION} \ | |
| --build-arg OCTANT_VERSION=${OCTANT_VERSION} \ | |
| --file ./octant.Dockerfile \ | |
| . |
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
| #!/usr/bin/env bash | |
| [[ -v VERBOSE ]] && set -x | |
| set -eu | |
| # This script lists all ip ranges currently used by | |
| # the google cloud platform, according to ns-lookup / dig | |
| # TXT _cloud-netblocks.googleusercontent.com | |
| # | |
| # https://cloud.google.com/compute/docs/faq#ipranges | |
| # |
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
| (GIR 0AA)|(((A[BL]|B[ABDHLNRSTX]?|C[ABFHMORTVW]|D[ADEGHLNTY]|E[HNX]?|F[KY]|G[LUY]?|H[ADGPRSUX]|I[GMPV]|JE|K[ATWY]|L[ADELNSU]?|M[EKL]?|N[EGNPRW]?|O[LX]|P[AEHLOR]|R[GHM]|S[AEGKLMNOPRSTY]?|T[ADFNQRSW]|UB|W[ADFNRSV]|YO|ZE)[1-9]?[0-9]|((E|N|NW|SE|SW|W)1|EC[1-4]|WC[12])[A-HJKMNPR-Y]|(SW|W)([2-9]|[1-9][0-9])|EC[1-9][0-9]) [0-9][ABD-HJLNP-UW-Z]{2}) |