From dbea8a484acbadde88359b104176c1c5a320a373 Mon Sep 17 00:00:00 2001 From: borpin Date: Sun, 7 Jan 2018 15:37:28 +0000 Subject: [PATCH] Updates to match API changes (#392) * Updates to match API changes Update to the node to match the server API changes. An attempt has been made to leave a legacy path for existing installations that may have not updated the server side. * Updated following comments. Update following comments. Output removed and node.warn or error used. oneeditprepare added. Name moved to last item. In addition, a check added to ensure nodegroup has valid value. Question: I have added a 'return' as I do not want data posted if there is not a valid nodegroup. Is this the best way to exit the function? Always taught that multiple exits was a bad idea. I wondered about raising an error / exception and then catching it but not sure how to do that. * Update documentation for revised node --- io/emoncms/88-emoncms.html | 40 ++++++++++++----- io/emoncms/88-emoncms.js | 91 +++++++++++++++++++++++++++++++------- io/emoncms/README.md | 36 +++++++++------ 3 files changed, 126 insertions(+), 41 deletions(-) diff --git a/io/emoncms/88-emoncms.html b/io/emoncms/88-emoncms.html index 21fe4a9a..65789671 100644 --- a/io/emoncms/88-emoncms.html +++ b/io/emoncms/88-emoncms.html @@ -6,22 +6,36 @@
- + +
+
+ +
+ - - - -