Idea to display zenon network status on WebServer start page

Idea to display zenon network status on WebServer start page

starting the webclient is usually done via accessing the WebServer startpage (index.htm).
when the WebServer startpage is then shown on the client computer (where the WebClient should be started) there is no information (yet) i.e.
- if the Runtime Server is running (resp. on which computer)
- if the WebServer is running
- how many clients are already connected (maybe no more client licenses are free?)
a possible way to forward this information to the WebServer startpage is to simply bind a textfile to this startpage. the content of textfile itself is written i.e. via VBA / VSTA from the zenon RuntimeServer.
In the attachment you can find a screenshot how such a modified zenon WebServer startpage could look like (see zenWebSrv_zenSytemInfo.jpg)
using following html code it is possible to display the content of a given textfile
[PHP]

zenon Runtime status:



Your browser can not display this object!

[/PHP]
the textfile itself must be located then in the same folder as the index.html file
at the zenon runtime server (only) a small VBA / VSTA code reads out i.e. the systemvariables
Current primary server
Names of connected clients

and writes the value of those variables into the textfile
to check if the zenon WebServer is running or not the process zenWebSrv.exe can be evaluated i.e. via WMI coding (there are several examples on this in the internet).
also it might be necessary that the html page should be refreshed cyclic (to display the current content of the text file). this can be done via the method "refresh" within the header html page:
[PHP]




COPA-DATA :: zenon web server demo

[/PHP]
regards,
herbert

This is a migrated post! Originally posted on 20.03.2015 by user herberto. Please be aware that information can be outdated.

    Disclaimer

    This document governs the use of our Community Forum. By registering and using the platform, you accept these conditions.

    The COPA-DATA Community Forum serves to encourage the exchange of information and experience about the zenon software between forum users respectively zenon users.

    Please mind that any published information on the Community Forum is the subjective opinion and view based on the experience and the level of knowledge of the author. COPA-DATA does not overtake any responsibility for the content and the accuracy of the shared information.

    Users of the Community Forum are encouraged to share only well-founded experiences and to point out any risks associated with the implementation of proposed solutions to problems. COPA-DATA at its absolute discretion, reserves the right to moderate the forum. In this connection COPA-DATA may remove any information containing false facts, potentially dangerous solutions, bad language or content that may insult, degrade or discriminate others. COPA-DATA may block a non-complying user from forum access if the user violated this provision.

    COPA-DATA reserves the right to change this document from time to time at own discretion.


    Ing. Punzenberger COPA-DATA GmbH
    Karolingerstraße 7b · 5020 Salzburg · Austria
    www.copadata.com