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
# OSX > Linux | |
rsync -avP --iconv=utf-8-mac,utf-8 | |
# Linux > OSX | |
rsync -avP --iconv=utf-8,utf-8-mac |
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/python | |
from datetime import datetime | |
import pytz | |
# https://stackoverflow.com/questions/57774180/how-to-handle-timestamp-16-in-garmin-devices | |
# http://www.nlvocables.com/blog/?p=969 | |
dt_offset = datetime(2019,4,30,22,0,0,0) | |
print (dt_offset) | |
timestamp = int(datetime.timestamp(dt_offset)) - 631065600 |
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
curl -d "<?xml version='1.0'?><methodCall><methodName>listBidcosInterfaces</methodName></methodCall> | |
" http://localhost:2001/app_rpc 2>/dev/null|sed 's/.*DUTY_CYCLE.*<i4>//;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
/runtime/bin/client things list |grep hue |sed 's/hue:/ /;s/:/ /;s/:/ /;s/(T.*el=//;s/, .*)//'|awk '{print" "$1,$4,"\""$4"\" @ \"\" [ lightId=\""$3"\” ]"}' > conf/things/hue.things |
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
./runtime/bin/client things list |grep homematic|grep -v VIR|grep -v "Type=Bridge"|sed 's/homematic:/ Thing /;s/:/ /;s/ [A-Z0-9]*:/ /;s/(.*Label=/"/;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
#ssh -lroot homematic-raspi | |
mount -o remount,rw / | |
cp /www/config/easymodes/etc/hmipChannelConfigDialogs.tcl /www/config/easymodes/etc/hmipChannelConfigDialogs.tcl.bak | |
if [ -z "`grep "set eventDelayPrn 0" /www/config/easymodes/etc/hmipChannelConfigDialogs.tcl`" ]; then | |
sed -i "s/\(set hlpBoxHeight 80\)/\1\n set eventDelayPrn 0/g" /www/config/easymodes/etc/hmipChannelConfigDialogs.tcl | |
fi | |
mount -o remount,ro / | |