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
# You can whitelist files/folders with !, those will not be ignored. | |
# Everything that starts with a / are for root elements | |
# ignore | |
/custom_components/ | |
/zigbee2mqtt/log | |
/zigbee2mqtt/state.json | |
/home-assistant_v2.* # Exclude Home Assistant history-related database. Make sure to enable git LFS if you don't exclude that, since those files can go easily over 100MB | |
/home-assistant.log* | |
/.ssh/ |
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/python | |
# Adapted from original written by Bob Steinbeiser (https://medium.com/@xtalker) | |
import socket | |
import struct | |
import binascii | |
def tide_button(arp_detailed): | |
dest_ip = socket.inet_ntoa(arp_detailed[8]) | |
print 'Tide button pressed, IP = ' + dest_ip |
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 node | |
// Based on the 'replace text' hook found here: http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/ | |
// This hook should be placed in the 'after_prepare' hook folder. | |
// The hook relies on a JSON file located at '<project_root>/resources/build_number.json' to track the build number. | |
// build.json content: | |
// { "major": 1, "minor": 2, "build": 3 } | |
// this example would generate build number "1.2.4" (because the build is incremented before, so build_number.json reflects the most recent build.) |