fixed hopefully

This commit is contained in:
root 2020-03-07 13:11:39 -05:00
parent 849c628df7
commit 067ba688db
1 changed files with 2 additions and 1 deletions

3
run.sh
View File

@ -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'