Custom Page

Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #8371
    Matt3
    Participant

    Hi

    I’m looking to add channel values to a custom web page.
    I’ve used the files in this link as my starting example…
    https://github.com/RapidScada/scada-community/tree/master/Plugins/CustomPageExample

    How do you suggest reading multiple current values, say from channels 101, 102 and 105 of the hello World example?

    Thanks
    Matt

    #8376
    Mikhail
    Moderator

    Hi,

    Use getCurCnlDataExt function. If you run file search of “getCurCnlDataExt” on *.js files, you will find examples in the Table and Scheme plugins.

    #10368
    csshenrapid
    Participant

    Hi,
    Why can’t the page load all the time?About CustomPageExample.

    #10371
    Mikhail
    Moderator

    Hi,
    Could you explain your question?

    #10678
    ramiouba
    Participant

    Hi,

    I have RapidScada v5.8.4 installed and everything is working fine on my windows PC, I deployed the custom pages example exactly as mentioned in the following link https://github.com/RapidScada/scada-community/tree/master/Plugins/CustomPageExample

    But when I uploaded the “HelloWorld” project and re-logged into the SCADA and select the desired page nothing appeared, and the animated loading progress sign still rotating without any changes. I thing something is missing in the configuration, or the location of custom pages folder is not correct.

    Could you please help me to fix this issue?

    Thanks,
    Rami

    • This reply was modified 6 months, 2 weeks ago by ramiouba.
    #10685
    Mikhail
    Moderator

    Hi Rami,

    In browser press F12, select the Console tab and check the web page errors.
    Screenshots of configuration and error would help.

    • This reply was modified 6 months, 2 weeks ago by Mikhail.
    #10700
    ramiouba
    Participant

    Hi Mikhail,

    I checked the errors in browser’s console then I found the error that causes this issue.

    It was because I’ve defined a full path of the “myPage.html” file starting with “C:\SCADA\bla\bla\bla\myPage.html” in the interface database of the Scada Administrator, the browser console return an error that “the server can’t access local resources” where the file is located.

    I’ve changed the path to the one that mentioned in the example of “Custom Pages”, I paste it as it is “../../custom/MyPage.html” then it worked correctly.

    Thanks for your help Mikhail.

    Rami

    #10710
    Mikhail
    Moderator

    Hi,
    Good 🙂

    #12206
    Matt3
    Participant

    Hi Mikhail

    I’m starting to use v6 for live projects.
    I need to add a custom page showing 5 tag values. I modified the code in v5 to read channel data.
    Can you please provide script showing the best way to continuously read the values form from 5 channels and to show the value on the page.

    Thank you
    Matt

    #12225
    Mikhail
    Moderator

    Hi,

    Custom web page example for v6 has not been developed. You should use main-api.js to get data from a web page.

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