Skip to content

Commit

Permalink
fix goelp2 & goelp3 after 4843c59
Browse files Browse the repository at this point in the history
  • Loading branch information
Rechi committed Jul 31, 2020
1 parent 9c41d6d commit 14866d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions modules/goelp2/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ if [[ $? == "0" ]] ; then
echo $lla3 > /var/www/html/openWB/ramdisk/llas13
fi
llv1=$(echo $output | jq -r '.nrg[0]')
if [[ $lla1 =~ $re ]] ; then
if [[ $llv1 =~ $re ]] ; then
echo $llv1 > /var/www/html/openWB/ramdisk/llvs11
fi
llv2=$(echo $output | jq -r '.nrg[1]')
if [[ $lla2 =~ $re ]] ; then
if [[ $llv2 =~ $re ]] ; then
echo $llv2 > /var/www/html/openWB/ramdisk/llvs12
fi
llv3=$(echo $output | jq -r '.nrg[2]')
if [[ $lla3 =~ $re ]] ; then
if [[ $llv3 =~ $re ]] ; then
echo $llv3 > /var/www/html/openWB/ramdisk/llvs13
fi

Expand All @@ -43,7 +43,7 @@ if [[ $? == "0" ]] ; then
echo $llkwh > /var/www/html/openWB/ramdisk/llkwhs1
fi
#car status 1 Ladestation bereit, kein Auto
#car status 2 Auto lädt
#car status 2 Auto lädt
#car status 3 Warte auf Fahrzeug
#car status 4 Ladung beendet, Fahrzeug verbunden
car=$(echo $output | jq -r '.car')
Expand Down
6 changes: 3 additions & 3 deletions modules/goelp3/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ if [[ $? == "0" ]] ; then
echo $lla3 > /var/www/html/openWB/ramdisk/llas23
fi
llv1=$(echo $output | jq -r '.nrg[0]')
if [[ $lla1 =~ $re ]] ; then
if [[ $llv1 =~ $re ]] ; then
echo $llv1 > /var/www/html/openWB/ramdisk/llvs21
fi
llv2=$(echo $output | jq -r '.nrg[1]')
if [[ $lla2 =~ $re ]] ; then
if [[ $llv2 =~ $re ]] ; then
echo $llv2 > /var/www/html/openWB/ramdisk/llvs22
fi
llv3=$(echo $output | jq -r '.nrg[2]')
if [[ $lla3 =~ $re ]] ; then
if [[ $llv3 =~ $re ]] ; then
echo $llv3 > /var/www/html/openWB/ramdisk/llvs23
fi

Expand Down

0 comments on commit 14866d8

Please sign in to comment.