Help with htpasswd file to UI List

Hello all!

Just trying to read htpasswd file and display it in a list on dashboard.

Not having much luck.. can somebody assist or suggest a better way to do it?

[{"id":"400b685b.9e7728","type":"exec","z":"9f18fd18.1b796","command":"sudo cat /etc/htpasswd/.htpasswd ","addpay":true,"append":"","useSpawn":"true","timer":"","oldrc":false,"name":"","x":390,"y":4020,"wires":[["c8eb528c.ac496"],[],[]]},{"id":"d491faca.f6ad08","type":"inject","z":"9f18fd18.1b796","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":"40","topic":"","payload":"","payloadType":"date","x":130,"y":4080,"wires":[["400b685b.9e7728"]]},{"id":"29c5b3ae.5780ac","type":"ui_button","z":"9f18fd18.1b796","name":"","group":"e4b7cbd1.60cdb8","order":3,"width":0,"height":0,"passthru":false,"label":"Refresh List","tooltip":"","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"topic","topicType":"msg","x":130,"y":4020,"wires":[["400b685b.9e7728"]]},{"id":"c8eb528c.ac496","type":"csv","z":"9f18fd18.1b796","name":"","sep":":","hdrin":"","hdrout":"once","multi":"one","ret":"\\n","temp":"","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":650,"y":4020,"wires":[["9ed37ef.3e6d08"]]},{"id":"be045294.ebb54","type":"ui_list","z":"9f18fd18.1b796","group":"e4b7cbd1.60cdb8","name":"","order":1,"width":0,"height":0,"lineType":"three","actionType":"none","allowHTML":false,"outputs":0,"topic":"","x":950,"y":4100,"wires":[]},{"id":"9ed37ef.3e6d08","type":"json","z":"9f18fd18.1b796","name":"","property":"payload.col1","action":"str","pretty":true,"x":790,"y":4020,"wires":[["be045294.ebb54","1fb3a837.82fe18"]]},{"id":"1fb3a837.82fe18","type":"debug","z":"9f18fd18.1b796","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":970,"y":4000,"wires":[]},{"id":"e4b7cbd1.60cdb8","type":"ui_group","name":"User Config","tab":"ca1adac5.235cb8","order":2,"disp":true,"width":"6","collapse":false},{"id":"ca1adac5.235cb8","type":"ui_tab","name":"Config","icon":"dashboard","disabled":false,"hidden":false}]

the structure of the htpasswd file is

username:$apr1$Kf8Y796i$Tl9LaaK2D1h5NjGyoAMUL/

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.