Hi,
I am trying to display a custom log file in the Dashboard with the following flow:
[{"id":"2f49c88580f49880","type":"ui_template","z":"fd95058a.48e3e8","group":"c8d32031ab47f343","name":"Events Log","order":1,"width":"10","height":"7","format":"<div ng-style=\"{'margin-left':'10px'}\" id=\"events\">\n <pre>{{msg.payload}}</pre>\n</div>\n","storeOutMessages":false,"fwdInMessages":false,"resendOnRefresh":false,"templateScope":"local","className":"","x":570,"y":1840,"wires":[[]]},{"id":"a0a16e56e3df5218","type":"inject","z":"fd95058a.48e3e8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":220,"y":1840,"wires":[["a2fbd25ac7c1a0c1"]]},{"id":"a2fbd25ac7c1a0c1","type":"file in","z":"fd95058a.48e3e8","name":"LogFile","filename":"/home/boss/SaltyREST/logs/SaltyREST.log","filenameType":"str","format":"utf8","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":380,"y":1840,"wires":[["2f49c88580f49880"]]},{"id":"c8d32031ab47f343","type":"ui_group","name":"Events Log","tab":"2e10f8bfea96ca87","order":1,"disp":true,"width":"10","collapse":false,"className":""},{"id":"2e10f8bfea96ca87","type":"ui_tab","name":"Log","icon":"dashboard","disabled":false,"hidden":false}]
I need to scroll to the bottom of the file, upon loading, so that to reach the latest log line, but I am not so familiar with templates...
Any suggestion?
Thanks