Skip to content

Commit

Permalink
Be more verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Mar 1, 2023
1 parent 1cf90d1 commit 20a3741
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/compare-api-keys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
INPUT=mqtt-traffic-055.5.log

API_DESCRIPTIONS="https://raw.githubusercontent.com/goecharger/go-eCharger-API-v2/main/apikeys-de.md https://raw.githubusercontent.com/goecharger/go-eCharger-API-v2/main/apikeys-en.md"
SKIP_KEYS=",utc,rbt,loc,dns,ccw,dll,"
SKIP_KEYS="utc,rbt,loc,dns,ccw,dll"

# https://github.com/goecharger/go-eCharger-API-v2/blob/main/apikeys-de.md
# https://github.com/goecharger/go-eCharger-API-v2/blob/main/apikeys-en.md
Expand All @@ -23,10 +23,13 @@ curl -s -o $API_DESC_EN https://raw.githubusercontent.com/goecharger/go-eCharger
echo "# List of unsupported/new keys"
echo
echo "This script generates a list of unsupported API key by this component but available via MQTT."
echo
echo "List of unsupported but ignored keys: $SKIP_KEYS"
echo

for KEY in $SUPPORTED_BY_FIRMWARE_KEYS;
do
if echo $SKIP_KEYS | grep -q ",$KEY,"
if echo ",$SKIP_KEYS," | grep -q ",$KEY,"
then
continue
fi
Expand Down

0 comments on commit 20a3741

Please sign in to comment.