mhdazeem / modbus-tk

Automatically exported from code.google.com/p/modbus-tk
Other
0 stars 0 forks source link

web hmi template fix and adding auto refresh #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. The master_results template had a closing body tag instead of an opening one.
2. Added the ability for the results to auto refresh every 5 seconds.  This is 
not ideal but will work until a better solution is available.  I am thinking an 
AJAX update would be best.

See attached patch for the changes.

Original issue reported on code.google.com by idahog...@gmail.com on 29 Jun 2010 at 6:08

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the fix. I agree than an auto-update would be nice and than an AJAX 
approach would be best. Meanwhile your solution is ok.

Original comment by luc.jean@gmail.com on 30 Jun 2010 at 4:55

GoogleCodeExporter commented 9 years ago
Fixed on rev 115. Please review it

Original comment by luc.jean@gmail.com on 30 Jun 2010 at 5:36

GoogleCodeExporter commented 9 years ago
I have attached a patch to use AJAX to update the values in the table.  I have 
only tested this using holding registers on a TCP connection.  This patch also 
includes a small fix for a typo in the css file.  Netbeans also warned me that 
the import for bottle.response wasn't necessary so I removed it.  I also 
commented out the line that opens a new browser window, I was having a problem 
where it would open two tabs in firefox.

Original comment by idahog...@gmail.com on 2 Jul 2010 at 1:55

Attachments: