Commit 25c7f6db6ba8332247fadbefbd2f143b270d2a1b
1 parent
4475e3d4
Exists in
dev
weather config update
Showing
3 changed files
with
9 additions
and
1 deletions
Show diff stats
src/core/pyros_django/agent/client.log
... | ... | @@ -3830,3 +3830,9 @@ |
3830 | 3830 | 2019-06-18 16:19:04,507 - devices_controller.logs - INFO - Sent 13 bytes |
3831 | 3831 | 2019-06-18 16:19:04,579 - devices_controller.logs - INFO - RECEIVED (ALL BYTES): b'00300000+89:24:49#\x00' |
3832 | 3832 | 2019-06-18 16:19:04,580 - devices_controller.logs - INFO - RECEIVED (useful data): +89:24:49 |
3833 | +2019-07-12 09:32:36,710 - devices_controller.logs - DEBUG - Logger configured | |
3834 | +2019-07-12 09:32:36,716 - devices_controller.logs - DEBUG - | |
3835 | +************************** | |
3836 | +2019-07-12 09:32:36,717 - devices_controller.logs - DEBUG - Client CHANNEL instanciated | |
3837 | +2019-07-12 09:32:38,749 - devices_controller.logs - INFO - Sent: b'00010000:GC#\x00' | |
3838 | +2019-07-12 09:32:38,749 - devices_controller.logs - INFO - Sent 13 bytes | ... | ... |
src/core/pyros_django/misc/static/js/weather_config.js
src/core/pyros_django/monitoring/views.py
... | ... | @@ -37,9 +37,11 @@ def weather_config_update(request): |
37 | 37 | cmd_name, cmd_args = request.GET["data"].split(" ", 1) |
38 | 38 | # ['nom', 'monitoring_name actuel', 'id(json path) du capteur', 'nouveau monitoring_name'] |
39 | 39 | # <class 'list'>: ['monitor_name_switch', 'None', 'Came:/S/N_A5EM:/Power_input', 'Rain_boolean'] |
40 | + | |
40 | 41 | Command.send_command('Dashboard', 'AgentM', cmd_name, cmd_args) |
41 | 42 | |
42 | 43 | #TODO: Pour l'instant, on ne recupere pas encore ce retour |
44 | + | |
43 | 45 | return HttpResponse('{"update":"OK"}', content_type="application/json") |
44 | 46 | except: |
45 | 47 | return HttpResponse('{"update":"ERROR"}', content_type="application/json") | ... | ... |