• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. Desmond
    3. Posts

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website
    D
    • Profile
    • Following 0
    • Followers 0
    • Topics 29
    • Posts 64
    • Best 5
    • Controversial 0
    • Groups 0

    Posts made by Desmond

    • RE: Dashboard Designer: Editor code does not update

      @jared-wiltshire , @CraigWeb

      After digging in deeper and rethink the usage of the dashboard designer, I realized that it is my failure to understand correctly the intent of dashboard designer.

      It is a page creation tool. The editor is a container that register a list of HTML components. It will update and keeps track of the positioning and the attribute of the elements. The page view is final output which show the layout of HTML components. Changes made via the designer canvas or the generated code will update the page view.

      The editor records the order sequence of HTML components which has dragged and dropped in the canvas. The generated code provide information about the HTML components.

      It will be a great helper for designing the page quickly. I think I need to spend more time to get familiar with the rich features offered by the dashboard designer.

      Thank you for your attention.

      posted in User help
      D
      Desmond
    • RE: Dashboard Designer: Editor code does not update

      @craigweb
      The caveat here is that if you want to re-order to the a few basic component such as button, image, label etc inside a div tag to improve on the user interface at later stage and think that the html code view will update automatically which is surprising not the case.

      The conflict part is the view page output will update according to the changes of canvas layout in the dashboard designer. It does not make sense that the html code view does not update automatically.

      Thank you for your reply.

      posted in User help
      D
      Desmond
    • RE: Dashboard Designer: Editor code does not update

      @jared-wiltshire
      with the aid of the pic below, hope that it can help to understand clearer.

      Before:
      0_1572503949926_before.jpg

      After:
      0_1572503975108_after.jpg

      Thanks & Regards

      posted in User help
      D
      Desmond
    • Machine Learning Module

      Hi support,

      Recently I read this post,
      https://forum.infiniteautomation.com/topic/4530/ai-machine-learning-neural-networks-tensorflow
      In fact it is observed that it is a future trend and growth in the automation industry to embrace these changes. It would be a market advantage if Mango support the machine learning module. Instead of the individual effort to implement it here and there, it would be great that Mango can kick-start the development to come with a possible solution.

      Thank you for your attention.

      posted in Wishlist
      D
      Desmond
    • Dashboard Designer: Editor code does not update

      Hi support,

      While exploring the dashboard designer, I have drag and drop 2 elements in the canvas, namely first element h2 and second element h4 and then saved the page. The editor was displayed the html code view correctly.
      If you change the text content of the h2 or h4 and saved, the text content will update in the editor. However if you changed the order of the h2 and h4 element in the canvas and saved, html code view was not reflected the change in the editor. Is this the expected behaviour?
      -Core 3.6.4
      -dashboardDesigner3.6.0

      Thank you for your attention.

      posted in User help
      D
      Desmond
    • RE: DataFile Date Source: No template

      Bingo! The mystery finally revealed! It was my own mistake to set JRE instead of JDK unintentionally after upgrading to jdk 1.8.0_221.

      Thank you @phildunlap for your detail information and update. This is really a valuable lesson for me.

      Thank you@cwangv for your sharing. You made me feel eager to head over to this forum whenever I need help or support to create solution together.

      posted in How-To
      D
      Desmond
    • RE: DataFile Date Source: No template

      @cwangv
      Thank you for your suggestion.

      I am not sure whether you are refer to the bulk data point edit in MangoUI where you can download/upload csv to create/update the datapoints.

      However i want to import point values from files via the data file data source. Usually I got the file from the third party system and require to load it into the mango so that I can do more work on it.

      In fact I did try to look into the new MangoUI but I think not all the data source types are supported yet. That is the reason I continue to use the old MangoUI.

      posted in How-To
      D
      Desmond
    • DataFile Date Source: No template

      Hi all,
      I am kicking off the data file data source using the sample multiColumnCsv.csv and multiColumnCsvImporter.java provided by Mango.

      Somehow I am unable to save this data source as the template is empty(left hand side of the below pic). I can see both csv and java files are displayed on the compile template view(right hand side of the below pic), It seem confusing to me as it states the compiler is not found but yet the java file is shown. Without the java file may have caused the empty template.
      0_1568473098532_TemplateRequiredValue.jpg

      So I did tried to upload the multiColumnCsvImporter.java file manually but no success. This is road block for me to move forward. It should be a simple step but I cant see my own mistake.

      Any help is appreciated and thank you in advanced.
      Mango core: 3.6.4
      dataFile: 3.6.1
      google chrome version 76

      posted in How-To
      D
      Desmond
    • RE: HttpBuilder.request()

      @phildunlap
      Thank you for your prompt reply. It works like a breeze.

      In my opinion, this is a powerful tool that open up the doors to communicate with internet of things / web content. In addition it provide flexibility to integrate your creativity into application.

      "Logic will get you from A to B. Imagination will take you everywhere".

      posted in Scripting general Discussion
      D
      Desmond
    • HttpBuilder.request()

      Hi all,

      This is my first attempt to make a REST call to retrieve a point values array via Mango scripting source.

      Via Swagger:
      url:
      http://localhost:8080/rest/v2/point-values/multiple-arrays/latest/DP_422050,CDP_614346?limit=3&useCache=NONE

      result:

      {
        "DP_422050": [
          {
            "timestamp": 1567738483443,
            "value": 175.51602162739323
          },
          {
            "timestamp": 1567738423443,
            "value": 175.16915149128016
          },
          {
            "timestamp": 1567738363443,
            "value": 174.31921651479684
          }
        ],
        "DP_614346": [
          {
            "timestamp": 1567738483443,
            "value": 211795
          },
          {
            "timestamp": 1567738423443,
            "value": 211790
          },
          {
            "timestamp": 1567738363443,
            "value": 211785
          }
        ]
      }
      

      Via Mango scripting data source:

      print(HttpBuilder.request({
          path: "http://localhost:8080/rest/v2/point-values/multiple-arrays/latest/DP_422050,DP_614346",
          method: "GET",
          headers : {
           "Cookie": "XSRF-TOKEN=6ac16488-db6d-4e64-8353-2faea1433e0f",
           "X-XSRF-TOKEN": "6ac16488-db6d-4e64-8353-2faea1433e0f",
           "Content-Type":"application/json;charset=UTF-8",
           "Host": "localhost:8080",
           "Accept": "application/json, text/plain"
           
        },
          parameters: {
          "limit" : 3,
          "useCache" : "None",
       },
          //content: "GETs don't have content!",
          err: function(status, headers, content) { //errorCallback for linguistic completion
              throw "Request got bad response: " + status;
          },
          resp: function(status, headers, content) { //responseCallback
              //try to retrieve the HttpBuilder object but no success
              //var result = JSON.parse(headers);
              //print(result);
              
              print(content);
              return true; //will print in wrapping print()
          },
          excp: function(exception) { //exceptionCallback
              throw exception.getMessage();
          }
      }));
      
      

      result:
      null

      I also tried to retrieve the headers for a check test but no success. After some thought, I realize this might due to the "GETs don't have content". If this is the situation, how then can I access the point values array from return HttpBuilder object?

      Likelihood I am unable to grasp the concept of HttpBuilder correctly and hopefully someone can help me out on the silly mistake I may have overlooked.

      Thanks and Best Regards

      posted in Scripting general Discussion
      D
      Desmond
    • RE: image rotating well But not SVG oject

      If at every point you encounter a surprise or frustration, your response is to add it to the blacklist. Furthermore it is common to feel intimidate to journey down that bumpy "road less travel" and easily get burned by incomplete understanding.

      Mango is awesome. It's easy to learn partially, and much harder to learn completely. Inspiring a strong appreciation for all that Mango is and can do will help in shorten the learning curve and eventually more projects are built on the Mango platform.

      posted in Dashboard Designer & Custom AngularJS Pages
      D
      Desmond
    • RE: Adaptive layout of examples -- Red scratches on objects

      Hi @jf89 ,

      @jf89 said in Adaptive layout of examples -- Red scratches on objects:

      I don’t ask you to give me an example , but I would like to know where I can learn myself ?
      What is the best way to do myself a complete flex page with side bar and one or two windows ?
      If I can pick up pieces of code an put it into the edit markup , it’s OK.
      Even with tutorials , If I have to learn html, css , javascript and Angular , it will be too much difficult for me.

      Just my five cent thought,

      1.There is no best way to do a web page

      2.Copy and paste pieces of code without understanding will make your learning disable.

      3.The web technologies is a prerequisite, at least know the fundamentals,
      3.1. HTML to define the content of web pages
      3.2. CSS to specify the layout of web pages
      3.3. JavaScript to program the behavior of web pages

      4.The learning speed is your choice.Everything is up to you.If you are struggling, take a break, or search google for the material

      5.Explore the example page provided by Mango. Examples are often easier to understand than explanations. Try it out yourself. In my opinion, this is one of the best playground for anyone who want to learn and understand Mango.

      Hope it will helps in your learning journey.

      posted in Dashboard Designer & Custom AngularJS Pages
      D
      Desmond
    • RE: get /point-values/multiple-arrays/latest/{xids}

      Today I restart my mango in my laptop and do a fresh confirmation test. In addition I also cleared all the browsing data for chrome.

      Whoray! My Test1 & Test2 passed. It works like a breeze.

      Wonderful! It is so exciting to see Mango has done a tremendous improvement for rest api over the years. This functionality provide more flexibility and powerful to design or integrate our application.

      @phildunlap, My apology for causing the false alarm. Due to limited knowledge and experience, I fail to do a comprehensive test. Luckily you pick it up and help me to be a better debugger. Thank you for your support and have a nice weekend.

      posted in User help
      D
      Desmond
    • RE: get /point-values/multiple-arrays/latest/{xids}

      @phildunlap
      It always see both XIDs for request size limit 1.
      Out of curiosity I tried up to limit 3000. It works like a breeze. However the break point is when I performed test1 and test2.

      posted in User help
      D
      Desmond
    • RE: get /point-values/multiple-arrays/latest/{xids}

      @phildunlap,
      Thank for your guidance to direct me to dive deeper into this issue.

      Here are my findings: get /point-values/multiple-arrays/latest/{xids}

      Test1: request size limit 5000, default is TIMESTAMP,VALUE
      It's very likely to miss the key for the second XID after all the values in the series for the first

      Test2: no request size limit, default is TIMESTAMP,VALUE
      It's very likely to miss the key for the second XID after all the values in the series for the first if the metadata is very large

      Conclusion:
      It seems to me that there is a limitation on the maximum length of character for serialized to JSON or the payload body. It is always necessary to include a reasonable size limit to avoid missing point values.

      Hope that it gives some values to whoever reading this post.

      Thank you one more time for your attention.

      posted in User help
      D
      Desmond
    • RE: get /point-values/multiple-arrays/latest/{xids}

      @phildunlap
      Thank you for your insight.
      I just find it odd that I cannot find the key for the second XID after all the values in the series for the first.
      Perhap you may help to double check for the second XID appear after executing the get method.
      Maybe I should consider to change my pair of spectacles.
      Thank you for your attention once again.

      posted in User help
      D
      Desmond
    • RE: get /point-values/multiple-arrays/latest/{xids}

      @phildunlap
      Hmm... interesting! I have followed your comments to provide the 2 XIDs without a space.

      Here my expect object:
      I should expect {"DP_XID1":[{"timestamp":1566370945515,"value":202875.0},....}],
      "DP_XID2":[{"timestamp":1566370945515,"value":228536.0},....}]}

      Here my return object:
      However, the result is always return a {object [array]} of only the first DP_XID1, ignoring the second DP_XID2.
      {"DP_XID1":[{"timestamp":1566370945515,"value":202875.0},....}]}

      I have tried both in URL(Mango core 3.6.X) and swagger(V2) giving me the same behaviour. Could it be something that i have misinterpret the return object?

      Thank you for your attention.

      posted in User help
      D
      Desmond
    • get /point-values/multiple-arrays/latest/{xids}

      0_1566294216773_XIDS.jpg

      Hi all,

      Refer to the photo attached, I have tried to guess the correct string for the input field in the points xids but no success.

      "DP_XID1, DP_XID2" --Code404:(Error: Not Found)
      [DP_XID1, DP_XID2] --Code404:(Error: Not Found)
      /DP_XID1/DP_XID2--Code404:(Error: Not Found)
      {DP_XID1, DP_XID2} --Code404:(Error: Not Found)
      "DP_XID1", "DP_XID2"--Code404:(Error: Not Found)

      I want to get latest values for multiple data Points in swagger:
      get /point-values/multiple-arrays/latest/{xids}.

      Hope that someone will provide me the correct string.
      Thank you.

      [edit as per @phildunlap comment]

      posted in User help
      D
      Desmond
    • RE: Arrow function in global script

      @CraigWeb,
      Thank for your prompt reply.

      It will then be a wishlist to stack in Mango/Mozilla road map to implement ES6 for Rhino JS in the near future as functional programming languages have become more popular.

      By the way, anyone know the current version of Rhino JS used in Mango?

      Thanks & Regards

      posted in Scripting general Discussion
      D
      Desmond
    • Arrow function in global script

      Hi All,

      I am trying to do some code in Mango global script using arrow function in javascript.

      var func = (x, y) => { return x + y; }; 
      print(func(1,2));
      

      Result:

      <eval>:4:30 Expected : but found x var func = (x, y) => { return x + y; }; ^ in <eval> at line number 4 at column number 30<br/>at line: , column:
      
      

      However it does not evalute the expression. I am unsure the Mango scripting environment does support the ES6. Any feedback will be appreciated.

      Thanks & Best Regards

      posted in Scripting general Discussion
      D
      Desmond