Switch to desktop version  

Ewon TechForum
Providing technical solutions to technical requests



viewON page asks for web authentication despite anonymous read-only access enabled
itstomis
Junior Member
#1
An existing client asked that I remove the web login for their very simple viewON virtual HMI.

However, the page still asks for a login when viewing the page with the Alarm History widget on it.  The page is just the Alarm History Widget, basically nothing else.

In the Ewon setup (Setup -> Main -> General -> Identification), Anonymous read-only access is enabled for Alarm History ($dtAH).  In fact, I checked all text boxes just to check, and it still asks for authentication.


If I enter login info, it displays the page.

If I cancel out of entering login info, it still populates the widget, but then displays the red error messages:



Quote:Failed to read tag values!
Reason:
Access Error: Unauthorized
when trying to obtain /rcgi.bin/vows/readVars

Access to this document requires a User ID

And then it kicks me back to my Home viewON page after a few seconds.
Reply

itstomis
Junior Member
#2
Bump, can any Support comment?
Reply

AngelaT
Ewon Distributor
#3
What firmware version are you running? It is working for me in 14.9s4 with a view that only has the alarm history widget.

Are you sure there's nothing else on the view? /rcgi.bin/vows/readVars doesn't seem like the call viewON would make to get the alarm history. Is there any javascript that tries to get or set some values behind the scenes or something like that?
Reply

itstomis
Junior Member
#4
I seem to have solved it, although I don't understand the what's going on.

The problem wasn't being caused by the Alarm History Widget itself, it was being caused by the page being empty?!?

If I delete the Alarm History Page and replace it with an exact duplicate of my Home page (call it Home2) (or with a copy of my Trends page), it works fine.

But then if I delete all the elements from the Home2, leaving as just an empty page with a title bar, side navigation buttons, and a Time & Date, it gives me the error.

So to solve it at least temporarily, I put a single tiny text box with a single process value behind the Alarm History Widget, and now it works.


(29-05-2025, 07:08 PM)AngelaT Wrote: What firmware version are you running? It is working for me in 14.9s4 with a view that only has the alarm history widget.

Are you sure there's nothing else on the view? /rcgi.bin/vows/readVars doesn't seem like the call viewON would make to get the alarm history. Is there any javascript that tries to get or set some values behind the scenes or something like that?

I'm also on firmware 14.9s4

I don't believe there's any javascript running in the background?  I don't recall setting anything up.



I described my bandaid solution above.

I've attached a version of my project with info about the client scrubbed, for reference.  You can see that on the "AlHist" page, there's a tiny text box referencing the "WW_Level" variable.  The existence of this text box on the page seems to stop the error from popping up.


  example bug.zip (Size: 31,95 KB / Downloads: 3)
Reply

AngelaT
Ewon Distributor
#5
This might actually be caused by your date field. Your date field is animated with BASIC code and running BASIC code requires a login.

I ran into this on one of my projects. I ended up working around it by creating a string tag to hold the date. Then I had a basic script that updated that tag once a minute (and removed the seconds field so no one knew it wasn't updating every second).
Reply

itstomis
Junior Member
#6
But that doesn't explain why my pages DON'T require authentication as soon as there's a single tag reference somewhere on each one of them.

If the problem was just that the Date field requiring BASIC (which requires login), then shouldn't *all* my pages require login?
Reply




Possibly Related Threads…
13-06-2025, 08:28 AM
Last Post: ccasellas
28-03-2024, 11:59 AM
Last Post: dezanvu
  Viewon webpage Modbus Started by Arno_HPP
4 Replies - 2.530 Views
13-09-2023, 08:22 AM
Last Post: Jean-Yves
  KPIs on custom html page? Started by nro
4 Replies - 2.608 Views
21-06-2023, 09:59 AM
Last Post: nro
12-06-2023, 02:42 PM
Last Post: simon
26-05-2023, 11:25 AM
Last Post: simon
17-05-2023, 03:51 PM
Last Post: simon
  ViewON Questions Started by ts12
7 Replies - 4.007 Views
06-04-2023, 02:29 AM
Last Post: ts12
30-03-2023, 03:09 AM
Last Post: carlosbantiling
  VIEWS on viewON Started by oscarchavez97
4 Replies - 2.819 Views
25-02-2023, 02:11 AM
Last Post: simon



Users browsing this thread:
2 Guest(s)



Theme © Ewon 2019 - Forum software by © MyBB - Cookie policy