Skip to content

Commit

Permalink
go-e: read RFID also if go-e is second LP
Browse files Browse the repository at this point in the history
  • Loading branch information
matzempc committed Nov 4, 2021
1 parent bd9182f commit ad8399f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/goelp2/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ if [[ $? == "0" ]] ; then
if [[ $llkwh =~ $rekwh ]] ; then
echo $llkwh > /var/www/html/openWB/ramdisk/llkwhs1
fi
rfid=$(echo $output | jq -r '.uby')
oldrfid=$(</var/www/html/openWB/ramdisk/tmpgoelp2rfid)
if [[ $rfid != $oldrfid ]] ; then
echo $rfid > /var/www/html/openWB/ramdisk/readtag
echo $rfid > /var/www/html/openWB/ramdisk/tmpgoelp2rfid
fi
#car status 1 Ladestation bereit, kein Auto
#car status 2 Auto lädt
#car status 3 Warte auf Fahrzeug
Expand Down

0 comments on commit ad8399f

Please sign in to comment.