Update docs and add import logging

This commit is contained in:
2026-03-05 10:28:26 +10:30
parent 97d255a1d5
commit 3fe1433a5d
2 changed files with 68 additions and 32 deletions
+3
View File
@@ -9,6 +9,7 @@ async function DoImport(msg, url, node) {
datastr = await response.text();
if (datastr.toLowerCase().includes("no data found")) {
console.log("no data found");
msg.nodata = true
msg.complete = true
msg.payload = []
@@ -33,6 +34,8 @@ async function DoImport(msg, url, node) {
//Everything looks good
const data = JSON.parse(datastr);
msg.rows = data.length
console.log("Page:", data.page, "Rows:", data.length)
node.status({ fill: "green", shape: "dot", text: `#${msg.page}: ${msg.rows} Rows` })
msg.payload = data;
node.send([msg, null]);