RPi-Monitor icon indicating copy to clipboard operation
RPi-Monitor copied to clipboard

InsertHTML cross-over

Open patricktokeeffe opened this issue 5 years ago • 2 comments

I have a status page configured with two InsertHTML directives:

web.status.2.content.4.name=Alarms
web.status.2.content.4.icon=warning.png
web.status.2.content.4.line.1="<pre>"+InsertHTML("/data/ebam/latest/Alarm_Report")+"</pre>"

web.status.2.content.5.name=Settings
web.status.2.content.5.icon=usb_hdd.png
web.status.2.content.5.line.1="<pre>"+InsertHTML("/data/ebam/latest/Settings_Report")+"</pre>"

A small typo (Alarms_Report instead of Alarm_Report) resulted in one of my HTML sources being unavailable:

image

Instead of ignoring the missing HTML file, it is silently replaced with the parameter provided to my other InsertHTML directive (i.e. the result is duplicate insertions):

image

A hard page refresh will produce the expected result (blank entry for Alarms) but the "Auto refresh page status" feature will repopulate the alarm field with the wrong file.

patricktokeeffe avatar Jun 27 '19 18:06 patricktokeeffe

Have you try to restart rpimonitor and open it's webUI in a private tab? Maybe it can be caused by the cache...

Leepic avatar Jul 14 '19 20:07 Leepic

Hello.

I have encountered a similar problem with the following pages:

  • https://api4.ipify.org
  • https://api6.ipify.org

My config: [...]line.1="Public IPv4: "+InsertHTML("https://api4.ipify.org") [...]line.2="Public IPv6: "+InsertHTML("https://api6.ipify.org")

Right after setting config, reastarting the deamon and loading rpimonitor-page in browser, I get shown the same value for both addresses.

htcfreek avatar Mar 23 '20 20:03 htcfreek