Page 1 of 1

Enable copying log from webinterface

Posted: Friday 25 March 2022 10:57
by zwartje
Since the januari 22 update I can no longer select and copy the text from the log interface.

This is quite annoying while troubleshooting and programming, also because the log is not indefinitely displayed in this interface.

And screenshots seem overkill for this purpose.

Re: Enable copying log from webinterface

Posted: Friday 25 March 2022 11:49
by waltervl
Solved in latest beta's (14277 and 14281) so will be in the next stable when released.

Re: Enable copying log from webinterface

Posted: Monday 02 January 2023 15:58
by zwartje
Unfortunately the default is still that you cannot select logs to copy-paste them.

Found how to solve it: (make a backup (of at least that file) first! I am not to be held responsible if you mess up)

find your www folder for domoticz (default for rpi: ~/domoticz/www)

open your index.html, find 'noselect' with your favorite editor (nano: ctrl-W, noselect, enter) and change the 'no' to 'force'.
So it will read 'forceselect'.

Save the file and refresh your browser. My HomeAutomation life just became a lot easier again :)

Re: Enable copying log from webinterface

Posted: Monday 02 January 2023 16:11
by waltervl
What version are you on now? It should be solved in 2022.2

Re: Enable copying log from webinterface

Posted: Monday 02 January 2023 16:59
by zwartje
Sorry, I figured it was obvious I meant after the last update 2022.2.

Still experienced it so got frustrated and went debugging in the browser. Should have done that last year, would have saved me a lot of annoyance.

Re: Enable copying log from webinterface

Posted: Monday 02 January 2023 22:34
by waltervl
It is always good to be clear: Are you talking about the Domoticz log page menu Setup Log (that has been fixed) or the log page of a device after clicking on the log button on a device widget?

Last part has not been fixed as it was set to noselect on purpose for better using with touch screens.

Re: Enable copying log from webinterface

Posted: Tuesday 03 January 2023 14:10
by rrozema
zwartje wrote: Monday 02 January 2023 15:58 Unfortunately the default is still that you cannot select logs to copy-paste them.

Found how to solve it: (make a backup (of at least that file) first! I am not to be held responsible if you mess up)

find your www folder for domoticz (default for rpi: ~/domoticz/www)

open your index.html, find 'noselect' with your favorite editor (nano: ctrl-W, noselect, enter) and change the 'no' to 'force'.
So it will read 'forceselect'.

Save the file and refresh your browser. My HomeAutomation life just became a lot easier again :)
Thanks a lot

Re: Enable copying log from webinterface

Posted: Tuesday 03 January 2023 16:14
by zwartje
waltervl wrote: Monday 02 January 2023 22:34 It is always good to be clear: Are you talking about the Domoticz log page menu Setup Log (that has been fixed) or the log page of a device after clicking on the log button on a device widget?

Last part has not been fixed as it was set to noselect on purpose for better using with touch screens.
Agree, so easy to forget.

I am talking about the "/#/Log" page as well as the devices "/#/Devices" page. Both are affected by changing the index.html.

Not sure why I still experienced it after the update but changing the index.html fixed it immediately, no cache issue (just refresh the page).

I noticed I can also select the device name on the device log page but thats the only item there and I cannot see what that would break on a touch screen but I will try that out, hopefully tonight.