node-red-contrib-tagui 1.0.17

"# node-red-contrib-tagui"

npm install node-red-contrib-tagui

TagUI nodered nodes

Easy wrapper for executing TagUI Scripts. Requires chrome to already be installed.

Check the headless option if run from inside docker or as a service.

Does not support running as root.

Node has 3 output nodes. The top output node is used to continue the flow, once TagUI is done processing. msg.payload will contain all the output from the script The second output node will receive all output from TagUI live. Use full for debugging The last output node will trigger incase TagUI returns a non zero exit code, ie an error happend

example

requires node-red-contrib-image-output for image result

[{"id":"f3af1605.ec32f8","type":"inject","z":"de12dee8.377a1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"cute kitten","payloadType":"str","x":180,"y":60,"wires":[["7dd22cb.07c64d4"]]},{"id":"7dd22cb.07c64d4","type":"tagui tagui","z":"de12dee8.377a1","name":"","headless":false,"nobrowser":false,"param":true,"quiet":true,"script":"https://www.google.dk/imghp?hl=en&ogbl\ntype q as `p1`[enter]\nwait 2 sec\nif present('//div[@data-ri=\"0\"]')\n    snap //div[@data-ri=\"0\"] to data/kitten.png\nelse if present('//table//img')\n    snap //table//img to data/kitten.png","x":330,"y":80,"wires":[["b70aac26.17577"],[],[]]},{"id":"db71650e.26fae8","type":"image","z":"de12dee8.377a1","name":"","width":"160","data":"payload","dataType":"msg","thumbnail":false,"active":true,"pass":false,"outputs":0,"x":500,"y":100,"wires":[]},{"id":"b70aac26.17577","type":"file in","z":"de12dee8.377a1","name":"","filename":"data/kitten.png","format":"","chunk":false,"sendError":false,"encoding":"none","x":500,"y":60,"wires":[["db71650e.26fae8"]]},{"id":"8f0c45bc.efe9e8","type":"inject","z":"de12dee8.377a1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"2 cute puppies","payloadType":"str","x":160,"y":100,"wires":[["7dd22cb.07c64d4"]]}]

This node will detect if TagUI exists in the home folder, and if not download and extract it.

Node Info

Version: 1.0.17
Updated 3 months, 3 weeks ago
License: MPL-2.0
Rating: 5.0 1

Actions

Rate:

Downloads

4 in the last week

Nodes

  • tagui tagui

Keywords

  • node-red
  • tagui
  • tag-ui
  • RPA

Maintainers