Node-RED problems

Topics about the Software of Revolution Pi
Post Reply
jporto
Posts: 2
Joined: 01 Feb 2023, 19:31

Node-RED problems

Post by jporto »

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
User avatar
dirk
KUNBUS
Posts: 2174
Joined: 15 Dec 2016, 13:19

Re: Node-RED problems

Post by dirk »

Hi JP, okay, I have tried to reproduce the error with a test setup using a RevPi Connect 4 Module with the RevPi Bookworm 64-bit (10/2024).

If you don't have it yet, I recommend updating your RevPi to Bookworm *now* :-D
https://revolutionpi.com/en/tutorials/d ... evpiimages

If this is not possible, then check whether you have activated the Node-RED Nodes server:
https://revolutionpi.com/en/tutorials/s ... vpi-status

After I couldn't quite figure out what the problem was with the Node-RED flow you sent, I tried it this way:
I have attached the flow so feel free to give it a try!
Attachments
Node-RED Shows CPU Temperature of a RevPi on a Dashboard.zip
(613 Bytes) Downloaded 104 times
Post Reply