better log handling
This commit is contained in:
parent
ad9315f166
commit
3a60983070
3 changed files with 5 additions and 619 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,3 @@
|
|||
/secrets.env
|
||||
/tv_state
|
||||
|
||||
/debug
|
||||
|
|
15
buttons.sh
15
buttons.sh
|
@ -5,26 +5,19 @@ button=$1
|
|||
|
||||
debug(){
|
||||
debug=$ROOT/debug
|
||||
# todo:
|
||||
# this keeps the log file at 30 lines but breaks the pipe when doing "tail -F debug"
|
||||
tail -n 30 $debug > debug.tmp && mv debug.tmp $debug
|
||||
echo $1
|
||||
echo $1>>$debug
|
||||
}
|
||||
# debugging
|
||||
#tail -n 30 "$debug" > tmp && cp tmp "$debug"
|
||||
|
||||
active=$(bash $ROOT/get_active_window.sh)
|
||||
debug ""
|
||||
debug "$(date +%s)"
|
||||
debug "active: $active"
|
||||
debug "button: $button"
|
||||
|
||||
# source the app folder
|
||||
#APPS="$(pwd)/apps"
|
||||
#if [ -d "$APPS" ]; then
|
||||
# for file in "$APPS"/*; do
|
||||
# if [ -f "$file" ]; then
|
||||
# . "$file"
|
||||
# fi
|
||||
# done
|
||||
#fi
|
||||
. $ROOT/find_or_open.sh
|
||||
. $ROOT/apps/default_commands.sh
|
||||
if [ -f "$ROOT/apps/${active%%_*}.sh" ]; then
|
||||
|
|
607
debug
607
debug
|
@ -1,607 +0,0 @@
|
|||
/home/htpc/scripts/PJ
|
||||
1749852338
|
||||
test firefox firefox_youtube
|
||||
desktop
|
||||
/home/htpc/scripts/PJ
|
||||
1749852353
|
||||
test firefox firefox_youtube
|
||||
desktop
|
||||
/home/htpc/scripts/PJ
|
||||
1749852354
|
||||
test firefox firefox_youtube
|
||||
desktop
|
||||
/home/htpc/scripts/PJ
|
||||
1749852462
|
||||
|
||||
desktop
|
||||
/home/htpc/scripts/PJ
|
||||
1749852550
|
||||
test firefox firefox_youtube
|
||||
|
||||
/home/htpc/scripts/PJ
|
||||
1749852604
|
||||
test firefox firefox_youtube
|
||||
|
||||
/home/htpc/scripts/PJ
|
||||
1749852608
|
||||
test firefox firefox_youtube
|
||||
|
||||
/home/htpc/scripts/PJ
|
||||
1749852609
|
||||
test firefox firefox_youtube
|
||||
desktop
|
||||
/home/htpc/scripts/PJ
|
||||
1749852611
|
||||
test firefox firefox_youtube
|
||||
search
|
||||
/home/htpc/scripts/PJ
|
||||
1749852615
|
||||
test firefox firefox_youtube
|
||||
desktop
|
||||
/home/htpc/scripts/PJ
|
||||
1749852624
|
||||
test firefox firefox_youtube
|
||||
desktop
|
||||
1749852696
|
||||
test firefox firefox_youtube
|
||||
11111
|
||||
|
||||
1749852703
|
||||
test firefox firefox_youtube
|
||||
11111
|
||||
home
|
||||
1749852705
|
||||
test firefox firefox_youtube
|
||||
11111
|
||||
desktop
|
||||
1749852759
|
||||
firefox_youtube
|
||||
11111
|
||||
desktop
|
||||
1749852765
|
||||
firefox_youtube
|
||||
11111
|
||||
search
|
||||
1749852818
|
||||
firefox_youtube
|
||||
home
|
||||
1749852819
|
||||
firefox_youtube
|
||||
home
|
||||
1749852824
|
||||
firefox_youtube
|
||||
home
|
||||
1749852846
|
||||
firefox_youtube
|
||||
desktop
|
||||
1749852886
|
||||
firefox_youtube
|
||||
desktop
|
||||
1749852907
|
||||
firefox_youtube
|
||||
desktop
|
||||
1749852927
|
||||
firefox_youtube
|
||||
desktop
|
||||
1749852946
|
||||
firefox_youtube
|
||||
desktop
|
||||
1749853013
|
||||
firefox_youtube
|
||||
desktop
|
||||
1749853048
|
||||
firefox_youtube
|
||||
desktop
|
||||
1749853051
|
||||
firefox_youtube
|
||||
desktop
|
||||
1749853057
|
||||
firefox_youtube
|
||||
back
|
||||
1749853060
|
||||
firefox_youtube
|
||||
forward
|
||||
1749853064
|
||||
firefox_youtube
|
||||
desktop
|
||||
1749853085
|
||||
firefox
|
||||
desktop
|
||||
1749853087
|
||||
firefox
|
||||
desktop
|
||||
1749853090
|
||||
firefox
|
||||
desktop
|
||||
1749853097
|
||||
firefox
|
||||
desktop
|
||||
1749853117
|
||||
xfdesktop
|
||||
browser
|
||||
1749853119
|
||||
firefox
|
||||
browser
|
||||
1749853121
|
||||
firefox
|
||||
browser
|
||||
1749853122
|
||||
firefox
|
||||
desktop
|
||||
1749853149
|
||||
firefox_youtube
|
||||
desktop
|
||||
1749853154
|
||||
firefox
|
||||
desktop
|
||||
1749853182
|
||||
firefox
|
||||
desktop
|
||||
1749853198
|
||||
firefox
|
||||
desktop
|
||||
1749853200
|
||||
firefox
|
||||
desktop
|
||||
1749853254
|
||||
firefox
|
||||
file_explorer
|
||||
1749853482
|
||||
kodi
|
||||
desktop
|
||||
target: kodi
|
||||
no desktop method found in kodi
|
||||
program specific method not found calling all desktop
|
||||
1749853484
|
||||
kodi
|
||||
desktop
|
||||
target: kodi
|
||||
no desktop method found in kodi
|
||||
program specific method not found calling all desktop
|
||||
1749853552
|
||||
kodi
|
||||
desktop
|
||||
target: kodi
|
||||
no desktop method found in kodi
|
||||
program specific method not found calling all desktop
|
||||
1749853600
|
||||
kodi
|
||||
desktop
|
||||
active:
|
||||
no desktop method found in kodi
|
||||
program specific method not found calling all desktop
|
||||
1749853630
|
||||
kodi
|
||||
desktop
|
||||
kodi sourced
|
||||
active:
|
||||
no desktop method found in kodi
|
||||
program specific method not found calling all desktop
|
||||
1749853765
|
||||
active: kodi
|
||||
button: desktop
|
||||
kodi sourced
|
||||
active:
|
||||
no desktop method found in kodi
|
||||
program specific method not found calling all desktop
|
||||
|
||||
1749853786
|
||||
active: kodi
|
||||
button: desktop
|
||||
kodi sourced
|
||||
active:
|
||||
no desktop method found in kodi
|
||||
program specific method not found calling all desktop
|
||||
|
||||
1749853788
|
||||
active: kodi
|
||||
button: desktop
|
||||
kodi sourced
|
||||
active:
|
||||
no desktop method found in kodi
|
||||
program specific method not found calling all desktop
|
||||
|
||||
1749853791
|
||||
active: kodi
|
||||
button: desktop
|
||||
kodi sourced
|
||||
active:
|
||||
no desktop method found in kodi
|
||||
program specific method not found calling all desktop
|
||||
|
||||
1749853891
|
||||
active: kodi
|
||||
button: desktop
|
||||
kodi sourced
|
||||
found kodi methods
|
||||
found desktop
|
||||
|
||||
1749853980
|
||||
active: xfdesktop
|
||||
button: search
|
||||
xfdesktop sourced
|
||||
found xfdesktop methods
|
||||
found search
|
||||
|
||||
1749853994
|
||||
active: xfdesktop
|
||||
button: forward
|
||||
xfdesktop sourced
|
||||
found xfdesktop methods
|
||||
program specific method not found calling all forward
|
||||
|
||||
1749854004
|
||||
active: xfdesktop
|
||||
button: fast_forward
|
||||
xfdesktop sourced
|
||||
found xfdesktop methods
|
||||
program specific method not found calling all fast_forward
|
||||
|
||||
1749854038
|
||||
active: xfdesktop
|
||||
button: forward
|
||||
xfdesktop sourced
|
||||
found xfdesktop methods
|
||||
found forward
|
||||
|
||||
1749854040
|
||||
active: xfdesktop
|
||||
button: forward
|
||||
xfdesktop sourced
|
||||
found xfdesktop methods
|
||||
found forward
|
||||
|
||||
1749854196
|
||||
active: vncviewer
|
||||
button: desktop
|
||||
vncviewer sourced
|
||||
found vncviewer methods
|
||||
program specific method not found calling all desktop
|
||||
|
||||
1749854224
|
||||
active: vncviewer
|
||||
button: desktop
|
||||
vncviewer sourced
|
||||
found vncviewer methods
|
||||
program specific method not found calling all desktop
|
||||
|
||||
1749854233
|
||||
active: vncviewer
|
||||
button: desktop
|
||||
vncviewer sourced
|
||||
found vncviewer methods
|
||||
program specific method not found calling all desktop
|
||||
no op
|
||||
|
||||
1749854234
|
||||
active: vncviewer
|
||||
button: desktop
|
||||
vncviewer sourced
|
||||
found vncviewer methods
|
||||
program specific method not found calling all desktop
|
||||
no op
|
||||
|
||||
1749854261
|
||||
active: vncviewer
|
||||
button: desktop
|
||||
vncviewer sourced
|
||||
found vncviewer methods
|
||||
program specific method not found calling all desktop
|
||||
no op
|
||||
|
||||
1749854293
|
||||
active: vncviewer
|
||||
button: split_up
|
||||
vncviewer sourced
|
||||
found vncviewer methods
|
||||
found split_up
|
||||
|
||||
1749854295
|
||||
active: vncviewer
|
||||
button: split_up
|
||||
vncviewer sourced
|
||||
found vncviewer methods
|
||||
found split_up
|
||||
|
||||
1749854297
|
||||
active: vncviewer
|
||||
button: split_up
|
||||
vncviewer sourced
|
||||
found vncviewer methods
|
||||
found split_up
|
||||
|
||||
1749854299
|
||||
active: vncviewer
|
||||
button: split_up
|
||||
vncviewer sourced
|
||||
found vncviewer methods
|
||||
found split_up
|
||||
|
||||
1749854301
|
||||
active: vncviewer
|
||||
button: split_up
|
||||
vncviewer sourced
|
||||
found vncviewer methods
|
||||
found split_up
|
||||
|
||||
1749854302
|
||||
active: vncviewer
|
||||
button: split_up
|
||||
vncviewer sourced
|
||||
found vncviewer methods
|
||||
found split_up
|
||||
|
||||
1749854306
|
||||
active: vncviewer
|
||||
button: split_up
|
||||
vncviewer sourced
|
||||
found vncviewer methods
|
||||
found split_up
|
||||
|
||||
1749854309
|
||||
active: vncviewer
|
||||
button: split_up
|
||||
vncviewer sourced
|
||||
found vncviewer methods
|
||||
found split_up
|
||||
|
||||
1749854311
|
||||
active: vncviewer
|
||||
button: split_up
|
||||
vncviewer sourced
|
||||
found vncviewer methods
|
||||
found split_up
|
||||
|
||||
1749854312
|
||||
active: vncviewer
|
||||
button: split_down
|
||||
vncviewer sourced
|
||||
found vncviewer methods
|
||||
program specific method not found calling all split_down
|
||||
|
||||
1749854320
|
||||
active: vncviewer
|
||||
button: split_up
|
||||
vncviewer sourced
|
||||
found vncviewer methods
|
||||
found split_up
|
||||
|
||||
1749854461
|
||||
active: vncviewer
|
||||
button: desktopp
|
||||
vncviewer sourced
|
||||
found vncviewer methods
|
||||
program specific method not found calling all desktopp
|
||||
|
||||
1749855450
|
||||
active: xfdesktop
|
||||
button: browser
|
||||
xfdesktop sourced
|
||||
found xfdesktop methods
|
||||
program specific method not found calling all browser
|
||||
|
||||
1749855455
|
||||
active: firefox_youtube
|
||||
button: desktop
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
found desktop
|
||||
|
||||
1749855458
|
||||
active: firefox_youtube
|
||||
button: desktop
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
found desktop
|
||||
|
||||
1749855464
|
||||
active: firefox_youtube
|
||||
button: desktop
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
found desktop
|
||||
|
||||
1749855472
|
||||
active: firefox_youtube
|
||||
button: back
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
found back
|
||||
|
||||
1749855479
|
||||
active: firefox_youtube
|
||||
button: back
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
found back
|
||||
|
||||
1749855481
|
||||
active: firefox_youtube
|
||||
button: forward
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
found forward
|
||||
|
||||
1749855572
|
||||
active: firefox_youtube
|
||||
button: file_explorer
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
program specific method not found calling all file_explorer
|
||||
|
||||
1749855576
|
||||
active: kodi
|
||||
button: browser
|
||||
kodi sourced
|
||||
found kodi methods
|
||||
program specific method not found calling all browser
|
||||
|
||||
1749855578
|
||||
active: firefox_youtube
|
||||
button: file_explorer
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
program specific method not found calling all file_explorer
|
||||
|
||||
1749855579
|
||||
active: kodi
|
||||
button: file_explorer
|
||||
kodi sourced
|
||||
found kodi methods
|
||||
found file_explorer
|
||||
|
||||
1749855580
|
||||
active: kodi
|
||||
button: file_explorer
|
||||
kodi sourced
|
||||
found kodi methods
|
||||
found file_explorer
|
||||
|
||||
1749855581
|
||||
active: kodi
|
||||
button: browser
|
||||
kodi sourced
|
||||
found kodi methods
|
||||
program specific method not found calling all browser
|
||||
|
||||
1749855582
|
||||
active: firefox_youtube
|
||||
button: browser
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
program specific method not found calling all browser
|
||||
|
||||
1749855583
|
||||
active: firefox_youtube
|
||||
button: browser
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
program specific method not found calling all browser
|
||||
|
||||
1749855584
|
||||
active: firefox_youtube
|
||||
button: browser
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
program specific method not found calling all browser
|
||||
|
||||
1749855584
|
||||
active: firefox_youtube
|
||||
button: browser
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
program specific method not found calling all browser
|
||||
|
||||
1749855587
|
||||
active: firefox_youtube
|
||||
button: back
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
found back
|
||||
|
||||
1749855588
|
||||
active: firefox_youtube
|
||||
button: back
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
found back
|
||||
|
||||
1749855589
|
||||
active: firefox_youtube
|
||||
button: desktop
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
found desktop
|
||||
|
||||
1749855717
|
||||
active: firefox_youtube
|
||||
button: back
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
found back
|
||||
|
||||
1749855720
|
||||
active: firefox_youtube
|
||||
button: back
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
found back
|
||||
|
||||
1749855728
|
||||
active: firefox_youtube
|
||||
button: back
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
found back
|
||||
|
||||
1749855737
|
||||
active: firefox_youtube
|
||||
button: back
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
found back
|
||||
|
||||
1749855755
|
||||
active: firefox_youtube
|
||||
button: back
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
found back
|
||||
|
||||
1749855764
|
||||
active: firefox_youtube
|
||||
button: forward
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
found forward
|
||||
|
||||
1749855775
|
||||
active: firefox_youtube
|
||||
button: back
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
found back
|
||||
|
||||
1749855779
|
||||
active: firefox_youtube
|
||||
button: desktop
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
found desktop
|
||||
|
||||
1749855783
|
||||
active: firefox_youtube
|
||||
button: back
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
found back
|
||||
|
||||
1749855786
|
||||
active: firefox_youtube
|
||||
button: forward
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
found forward
|
||||
|
||||
1749855804
|
||||
active: firefox_youtube
|
||||
button: search
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
found search
|
||||
|
||||
1749855811
|
||||
active: firefox_youtube
|
||||
button: search
|
||||
firefox_youtube sourced
|
||||
found firefox_youtube methods
|
||||
found search
|
||||
|
||||
1749856037
|
||||
active: firefox
|
||||
button: desktop
|
||||
firefox sourced
|
||||
found firefox methods
|
||||
no op for ff on this website
|
||||
program specific method not found calling all desktop
|
||||
no op
|
Loading…
Add table
Add a link
Reference in a new issue