Node-RED problems
Posted: 01 Nov 2024, 03:14
Hello community.
I've been giving a spin to Node-RED programming and I'm having some difficulties:
The first problem, I seem to be unable to get a [revpi-single-input] node to assign an Input pin. It turns the cursor in a gray prohibition sign and shows 'Check server settings' in a tooltip. I used the default localhost:8000 configuration. When deploying, an 'UNSUPPORTED SERVER' message appears under the node.
The second issue I have is with Dashboard. I tried to have a simple graph done, but the ui page only shows 'No Data' message.
See below the JSON of the graph test:
[{"id":"1a7a9c5f.54e7ac","type":"tab","label":"Graph Test","disabled":false,"info":""},{"id":"inject1","type":"inject","z":"1a7a9c5f.54e7ac","name":"Intervalometer","props":[{"p":"payload"}],"repeat":"","crontab":"","once":true,"onceDelay":"20","topic":"","payload":"","payloadType":"date","x":410,"y":260,"wires":[["function1"]]},{"id":"function1","type":"function","z":"1a7a9c5f.54e7ac","name":"Generate Data","func":"msg.payload = {\n series: [\"A\", \"B\", \"C\"],\n data: [\n [Math.random() * 100],\n [Math.random() * 100],\n [Math.random() * 100]\n ],\n labels: [new Date().toLocaleTimeString()]\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":700,"y":260,"wires":[["chart1","9b886da9.3496a"]]},{"id":"chart1","type":"ui_chart","z":"1a7a9c5f.54e7ac","name":"","group":"132c7e6f.84c7da","order":1,"width":0,"height":0,"label":"Real-time Data","chartType":"line","legend":"true","xformat":"HH:mm:ss","interpolate":"linear","nodata":"No Data","dot":false,"ymin":"0","ymax":"100","removeOlder":1,"removeOlderPoints":"100","removeOlderUnit":"60","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#ff7f0e","#2ca02c","#000000","#000000","#000000","#000000","#000000","#000000"],"outputs":1,"useDifferentColor":false,"className":"","x":950,"y":260,"wires":[[]]},{"id":"9b886da9.3496a","type":"debug","z":"1a7a9c5f.54e7ac","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":940,"y":300,"wires":[]},{"id":"90e6c033.051ae","type":"revpi-single-input","z":"1a7a9c5f.54e7ac","server":"ff562830.1c8068","inputpin":"","x":400,"y":340,"wires":[[]]},{"id":"132c7e6f.84c7da","type":"ui_group","name":"Test Group","tab":"c149afa7.ca87f","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"ff562830.1c8068","type":"revpi-server","host":"localhost","port":"8000","user":"","password":"","rejectUnauthorized":false,"ca":""},{"id":"c149afa7.ca87f","type":"ui_tab","name":"Dashboard Test","icon":"dashboard","disabled":false,"hidden":false}]
Thx in advance, JP
I've been giving a spin to Node-RED programming and I'm having some difficulties:
The first problem, I seem to be unable to get a [revpi-single-input] node to assign an Input pin. It turns the cursor in a gray prohibition sign and shows 'Check server settings' in a tooltip. I used the default localhost:8000 configuration. When deploying, an 'UNSUPPORTED SERVER' message appears under the node.
The second issue I have is with Dashboard. I tried to have a simple graph done, but the ui page only shows 'No Data' message.
See below the JSON of the graph test:
[{"id":"1a7a9c5f.54e7ac","type":"tab","label":"Graph Test","disabled":false,"info":""},{"id":"inject1","type":"inject","z":"1a7a9c5f.54e7ac","name":"Intervalometer","props":[{"p":"payload"}],"repeat":"","crontab":"","once":true,"onceDelay":"20","topic":"","payload":"","payloadType":"date","x":410,"y":260,"wires":[["function1"]]},{"id":"function1","type":"function","z":"1a7a9c5f.54e7ac","name":"Generate Data","func":"msg.payload = {\n series: [\"A\", \"B\", \"C\"],\n data: [\n [Math.random() * 100],\n [Math.random() * 100],\n [Math.random() * 100]\n ],\n labels: [new Date().toLocaleTimeString()]\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":700,"y":260,"wires":[["chart1","9b886da9.3496a"]]},{"id":"chart1","type":"ui_chart","z":"1a7a9c5f.54e7ac","name":"","group":"132c7e6f.84c7da","order":1,"width":0,"height":0,"label":"Real-time Data","chartType":"line","legend":"true","xformat":"HH:mm:ss","interpolate":"linear","nodata":"No Data","dot":false,"ymin":"0","ymax":"100","removeOlder":1,"removeOlderPoints":"100","removeOlderUnit":"60","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#ff7f0e","#2ca02c","#000000","#000000","#000000","#000000","#000000","#000000"],"outputs":1,"useDifferentColor":false,"className":"","x":950,"y":260,"wires":[[]]},{"id":"9b886da9.3496a","type":"debug","z":"1a7a9c5f.54e7ac","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":940,"y":300,"wires":[]},{"id":"90e6c033.051ae","type":"revpi-single-input","z":"1a7a9c5f.54e7ac","server":"ff562830.1c8068","inputpin":"","x":400,"y":340,"wires":[[]]},{"id":"132c7e6f.84c7da","type":"ui_group","name":"Test Group","tab":"c149afa7.ca87f","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"ff562830.1c8068","type":"revpi-server","host":"localhost","port":"8000","user":"","password":"","rejectUnauthorized":false,"ca":""},{"id":"c149afa7.ca87f","type":"ui_tab","name":"Dashboard Test","icon":"dashboard","disabled":false,"hidden":false}]
Thx in advance, JP