hvxl / otmonitor

Monitor tool for the OTGW (http://otgw.tclcode.com/)
GNU Lesser General Public License v3.0
27 stars 10 forks source link

"Done" button doesn't appear in the web version #10

Closed iamkarlson closed 3 years ago

iamkarlson commented 3 years ago

Hi, I've built otmonitor using this manual http://otgw.tclcode.com/otmonsrc.html and "done" button doesn't appear on "Configure" page as well as settings Gateway/Monitor not being set. Is there troubleshooting guidance on why it can happen?

image

hvxl commented 3 years ago

There is no "Done" button because there isn't supposed to be one. In the GUI, the "Done" button closes the window. As of 2017, there is no way to close a web browser tab or window using JavaScript. Modern security standards do not permit this behavior. So the available choices were: Have a non-functional "Done" button, or not have a "Done" button at all. The latter option seemed the better choice to me.

When you access the Miscellaneous configuration page and the Operating mode is Unknown, OTmonitor sends a PR=M command to the OTGW. The page is updated when the response is received. If the mode remains "Unknown", it means that either no response was received, or the websocket connection was lost. I suggest to check the message log to verify what is going on.