password on dashboard node-red

required to enter a password to access the other following table and it saves the ip bot to put it back the next time

[{"id":"ef80afd6cf37cc14","type":"ui_toast","z":"b2e04683.825318","position":"top right","displayTime":"0","highlight":"","sendall":true,"outputs":0,"ok":"OK","cancel":"","raw":false,"className":"","topic":"","name":"","x":1170,"y":220,"wires":[]},{"id":"bbc09d176871adbd","type":"switch","z":"b2e04683.825318","name":"","property":"socketip","propertyType":"msg","rules":[{"t":"eq","v":"ip","vt":"global"},{"t":"neq","v":"ip","vt":"global"}],"checkall":"true","repair":false,"outputs":2,"x":530,"y":60,"wires":[[],["df353fcd8706941a"]]},{"id":"7c510e16d92ae67b","type":"ui_text_input","z":"b2e04683.825318","name":"","label":"mot de passe ","tooltip":"","group":"7398104f9c4fd54a","order":1,"width":0,"height":0,"passthru":true,"mode":"password","delay":300,"topic":"p","sendOnBlur":false,"className":"","topicType":"global","x":1020,"y":80,"wires":[["cfab5792a442801d"]]},{"id":"1e3622dde9da46fc","type":"ui_ui_control","z":"b2e04683.825318","name":"","events":"all","x":860,"y":80,"wires":[["7c510e16d92ae67b"]]},{"id":"d0e28aef7e9d2dee","type":"template","z":"b2e04683.825318","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"mot de pass incorrects ","output":"str","x":820,"y":240,"wires":[["ef80afd6cf37cc14"]]},{"id":"8b736344035e0897","type":"template","z":"b2e04683.825318","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"mot de pass corrects ","output":"str","x":820,"y":140,"wires":[["ef80afd6cf37cc14"]]},{"id":"83b258dd08653afe","type":"ui_button","z":"b2e04683.825318","name":"","group":"7398104f9c4fd54a","order":1,"width":0,"height":0,"passthru":false,"label":"validé ","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"22","payloadType":"str","topic":"topic","topicType":"msg","x":550,"y":220,"wires":[["8382fd1a852b084b"]]},{"id":"df353fcd8706941a","type":"change","z":"b2e04683.825318","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":80,"wires":[["1e3622dde9da46fc"]]},{"id":"35ff5b64090ae0eb","type":"switch","z":"b2e04683.825318","name":"","property":"tab","propertyType":"msg","rules":[{"t":"neq","v":"1","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":370,"y":60,"wires":[["bbc09d176871adbd"]]},{"id":"9d0b6bcde9ba119d","type":"inject","z":"b2e04683.825318","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":520,"y":120,"wires":[["df353fcd8706941a"]]},{"id":"8d78f9ccecc79743","type":"ui_ui_control","z":"b2e04683.825318","name":"","events":"all","x":210,"y":60,"wires":[["35ff5b64090ae0eb","71f13e650a6ced4d"]]},{"id":"1dfc7352f890f6d2","type":"change","z":"b2e04683.825318","name":"","rules":[{"t":"set","p":"ip","pt":"global","to":"y","tot":"global"},{"t":"set","p":"payload","pt":"msg","to":"0","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1120,"y":140,"wires":[["e2c78befbb9d7668"]]},{"id":"cfab5792a442801d","type":"change","z":"b2e04683.825318","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"p","tot":"global"}],"action":"","property":"","from":"","to":"","reg":false,"x":1230,"y":80,"wires":[[]]},{"id":"71f13e650a6ced4d","type":"change","z":"b2e04683.825318","name":"","rules":[{"t":"move","p":"socketip","pt":"msg","to":"y","tot":"global"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":160,"wires":[[]]},{"id":"e2c78befbb9d7668","type":"ui_ui_control","z":"b2e04683.825318","name":"","events":"all","x":1350,"y":140,"wires":[[]]},{"id":"2c3103af30906ecb","type":"group","z":"b2e04683.825318","name":"here to change the password","style":{"label":true,"label-position":"n"},"nodes":["8382fd1a852b084b"],"x":594,"y":179,"w":188,"h":82},{"id":"8382fd1a852b084b","type":"switch","z":"b2e04683.825318","g":"2c3103af30906ecb","name":"","property":"p","propertyType":"global","rules":[{"t":"eq","v":"pass","vt":"str"},{"t":"neq","v":"pass","vt":"str"}],"checkall":"false","repair":true,"outputs":2,"x":670,"y":220,"wires":[["8b736344035e0897","1dfc7352f890f6d2"],["d0e28aef7e9d2dee"]]},{"id":"7398104f9c4fd54a","type":"ui_group","name":"Default","tab":"e7688ef233bdf18f","order":1,"disp":false,"width":"6","collapse":false,"className":""},{"id":"e7688ef233bdf18f","type":"ui_tab","name":"id","icon":"dashboard","order":2,"disabled":false,"hidden":true}]

Flow Info

Created 3 years, 5 months ago
Rating: 5 2

Owner

Actions

Rate:

Node Types

Core
  • change (x4)
  • inject (x1)
  • switch (x3)
  • template (x2)
Other

Tags

Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option