[ { "id": "9a0c70cce0367f11", "type": "inject", "z": "6263d5eb452668c4", "name": "", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" }, { "p": "loc", "v": "22.061204875082073,121.540958117339", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 150, "y": 540, "wires": [ [ "a3f9976dad39b38b" ] ] }, { "id": "a3f9976dad39b38b", "type": "function", "z": "6263d5eb452668c4", "name": "function 2", "func": "const latlon = msg.loc.split(',');\nmsg.url = \"https://api.nlsc.gov.tw/other/TownVillagePointQuery/\" + latlon[1] + \"/\" + latlon[0] + \"/4326\";\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 280, "y": 540, "wires": [ [ "05b9dc53f93993e5" ] ] }, { "id": "603899861ac0a0c4", "type": "debug", "z": "6263d5eb452668c4", "name": "debug 40", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 740, "y": 540, "wires": [] }, { "id": "05b9dc53f93993e5", "type": "http request", "z": "6263d5eb452668c4", "name": "", "method": "GET", "ret": "txt", "paytoqs": "ignore", "url": "", "tls": "", "persist": false, "proxy": "", "insecureHTTPParser": false, "authType": "", "senderr": false, "headers": [], "x": 440, "y": 540, "wires": [ [ "f4ce947bda8f7e00" ] ] }, { "id": "f4ce947bda8f7e00", "type": "xml", "z": "6263d5eb452668c4", "name": "", "property": "payload", "attr": "", "chr": "", "x": 590, "y": 540, "wires": [ [ "603899861ac0a0c4", "04068ebbef89fac7" ] ] }, { "id": "04068ebbef89fac7", "type": "ui_template", "z": "6263d5eb452668c4", "group": "1b039fc4bde50c16", "name": "", "order": 4, "width": 0, "height": 0, "format": "
縣市: {{msg.payload.townVillageItem.ctyName[0]}}({{msg.payload.townVillageItem.townName[0]}})
", "storeOutMessages": true, "fwdInMessages": true, "resendOnRefresh": true, "templateScope": "local", "className": "", "x": 740, "y": 600, "wires": [ [] ] }, { "id": "1b039fc4bde50c16", "type": "ui_group", "name": "Group 1", "tab": "085e5b861ac5513e", "order": 1, "disp": true, "width": 20, "collapse": false, "className": "" }, { "id": "085e5b861ac5513e", "type": "ui_tab", "name": "20221218課程", "icon": "dashboard", "order": 1, "disabled": false, "hidden": false } ]