.dotfiles/navi/syncapi.cheat

29 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2020-09-12 21:47:55 +00:00
% syncapi
# SyncAPI Muller
2020-10-23 07:24:13 +00:00
<syncapi_path>/syncapiadmin.py --project muller -s <server> --endpoint <endpoint> --mac <gateway_mac>
2020-09-12 21:47:55 +00:00
# SyncAPI Legrand
2020-10-23 07:24:13 +00:00
<syncapi_path>/syncapiadmin.py --project legrand -s <server> --endpoint <endpoint> --mac <gateway_mac>
2020-09-12 21:47:55 +00:00
# Debug parser Legrand
2020-10-23 07:24:13 +00:00
<debug_path>/debug_parser.py --project legrand -s <server> -r -pp -g <gateway_mac>
# Enable debug mode Legrand
<debug_path>/debug_config_setter.py --project legrand -s <server> -g <gateway_mac> -t NLG -ke debug_enabled
# Disable debug mode Legrand
<debug_path>/debug_config_setter.py --project legrand -s <server> -g <gateway_mac> -t NLG -kd debug_enabled
# Analyse diagnosis
<syncapi_path>/syncapiadmin.py --project legrand -s <server> --endpoint getdebuginfo --mac <gateway_mac> | jq -r .body.diagnosis_content | <release_path>/decode_diagnosis.py
2020-09-12 21:47:55 +00:00
# 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"
2020-10-23 07:24:13 +00:00
$ release_path: echo "$HOME/Netatmo/core/python-emb-tools/python/bin/release"
2020-09-12 21:47:55 +00:00
# Variables
$ server: echo "prod inte" | tr " " "\n"
$ endpoint: echo "getstatus getconfigs setstate setconfigs getdebuginfo getoeminfo" | tr " " "\n"