From 13a2051c96315be20f291dc20ea82c241512f078 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin-Charles=20Guih=C3=A9neuf?= Date: Fri, 23 Oct 2020 09:24:13 +0200 Subject: [PATCH] navi: Add syncapi debug cheatsheets --- navi/syncapi.cheat | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/navi/syncapi.cheat b/navi/syncapi.cheat index d437c96..fbec241 100644 --- a/navi/syncapi.cheat +++ b/navi/syncapi.cheat @@ -1,17 +1,27 @@ % syncapi # SyncAPI Muller -/syncapiadmin.py --project muller -s --endpoint -c /muller_.swp --mac +/syncapiadmin.py --project muller -s --endpoint --mac # SyncAPI Legrand -/syncapiadmin.py --project legrand -s --endpoint -c /legrand_.swp --mac +/syncapiadmin.py --project legrand -s --endpoint --mac # Debug parser Legrand -/debug_parser.py --project legrand -s -c /legrand_.swp -r -pp -g +/debug_parser.py --project legrand -s -r -pp -g + +# Enable debug mode Legrand +/debug_config_setter.py --project legrand -s -g -t NLG -ke debug_enabled + +# Disable debug mode Legrand +/debug_config_setter.py --project legrand -s -g -t NLG -kd debug_enabled + +# Analyse diagnosis +/syncapiadmin.py --project legrand -s --endpoint getdebuginfo --mac | jq -r .body.diagnosis_content | /decode_diagnosis.py # Paths $ syncapi_path: echo "$HOME/Netatmo/core/python-emb-tools/python/bin/syncapiadmin" $ debug_path: echo "$HOME/Netatmo/core/python-emb-tools/python/bin/debug" +$ release_path: echo "$HOME/Netatmo/core/python-emb-tools/python/bin/release" # Variables $ server: echo "prod inte" | tr " " "\n"