From 067ba688db2eb3a26f8f7e1388a201d3db62c2c9 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 7 Mar 2020 13:11:39 -0500 Subject: [PATCH] fixed hopefully --- run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 3e72767..ddcec8e 100755 --- a/run.sh +++ b/run.sh @@ -1,4 +1,5 @@ #!/bin/bash mydir1="${0%/*}" +python="/opt/hass_3.7/bin/python" -python "${mydir1}/getPage.py" | grep 'id="statusBar_battery" style="">' | grep -o -P '.{0,3}%.{0,0}' | sed 's/>//g' | sed 's/%//g' +"${python}" "${mydir1}/getPage.py" | grep 'id="statusBar_battery" style="">' | grep -o -P '.{0,3}%.{0,0}' | sed 's/>//g' | sed 's/%//g'