CurData in dasboard view

Forum Home Forums Understanding the Software CurData in dasboard view

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #17002
    oley
    Participant

    Hi,

    I am playing with the dashboard view.
    Is it possible to configure the CurData widget so that the channel column looks like in the table view?
    CurData shows channel numbers in square brackets. Is it possible to hide them?
    CurData does not show graphic symbols depending on the channel quantity. Is it possible to show them?

    #17007
    Mikhail
    Moderator

    Hi,
    The CurData widget can only display data as it is. This could be an idea for future development.
    You could insert a table view as a widget if it solves the issue.

    #17011
    oley
    Participant

    Hi,

    one more question: is it possible for the table view to show only the current value?

    #17013
    Mikhail
    Moderator

    Hi,
    No, because it is designed for historical data.
    If you familiar with HTML and JavaScript, it’s possible to make a custom page and insert it in a dashboard.

    #17019
    oley
    Participant

    Hi,

    how to set it up with custom page?

    #17026
    Mikhail
    Moderator

    Hi,
    Please check this example.

    #17039
    oley
    Participant

    Hi,

    thank you.
    I put those files as described into c:\Program Files\SCADA\ScadaWeb\custom\
    mypage.css
    MyPage.html
    mypage.js

    In web browser I see in the tree view left:
    ..
    ..
    custom
    Test

    And the view says Unable to redirect because URL is empty

    #17047
    Mikhail
    Moderator

    Hi,
    Could you make a screenshot of the Views table?

    #17052
    oley
    Participant

    Views

    https://ibb.co/200ccgrq

    I tried different paths, but can’t get this work.

    • This reply was modified 1 month, 2 weeks ago by oley.
    #17054
    oley
    Participant

    First of all I will show a weather widget in a dashboard. Something like that:

    <div id="tp-widget-default" data-city="12031" data-version="2.0.0">
    	<div id="tp-widget-bottom-default">
    		<a id="tp-widget-flink-default" href="https://www.twojapogoda.pl/prognoza-godzinowa-polska/warminsko-mazurskie-wegorzewo/" target="_blank" rel="nofollow" title="Węgorzewo - prognoza godzinowa">Godzina po godzinie</a>
    		<a id="tp-widget-flink-second" href="https://www.twojapogoda.pl/prognoza-16dni-polska/warminsko-mazurskie-wegorzewo/" target="_blank" rel="nofollow" title="Węgorzewo - prognoza na 16 dni">Na 16 dni</a>
    		<a id="tp-widget-mlink-default" href="https://www.twojapogoda.pl" target="_blank" rel="nofollow" title="TwojaPogoda.pl - Pogoda w Polsce i na świecie - pogoda na 16 dni"></a>
    	</div>
    	<script type="text/javascript">
    		(function (t, p, w, d, g) {
    			if (t.getElementById(w)) return;
    			d = t.getElementsByTagName(p)[0], g = t.createElement(p);
    			g.id = w; g.src = "https://widget.twojapogoda.pl/default/main.js";g.charset="UTF-8";
    			d.parentNode.appendChild(g);
    		}(document, "script", "tp-widget-script-default"));
    	</script>
    </div>

    I put a simplest html in project views directory and set it up:

    <Widget type=”CustomUrl” url=”./MyPage.html” />

    but it also don’t work.

    #17063
    Mikhail
    Moderator

    Hi,
    Use relative path as shown in the example: ../../custom/MyPage.html
    No C:\…

    #17070
    oley
    Participant

    Hi,

    I tried this at the beginning, but it also does not work and additionally shows this directory structure in the tree view:
    ..
    ..
    ..
    custom
    MyPage

    Can this custom page be located in the project directory structure, or must be in SCADA program files directory structure?

    Now I’ve got this simple html in the views/Weather directory in my project, but dashboard show only blank field.

    #17074
    Mikhail
    Moderator

    Hi,
    A custom page must be inside SCADA\ScadaWeb\wwwroot
    Return to a relational path, then open browser tools (F12) and check what certain page address was requested.
    Likely be we can solve this issue faster with Extended support.

    #17080
    oley
    Participant

    Hi,

    I figured it out.
    Thanks!

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.