• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. radu.cigmaian
    3. Topics

    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
    R
    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 24
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by radu.cigmaian

    • R

      how to get alarms only with level critial using mangoapi

      Dashboard Designer & Custom AngularJS Pages
      • • • radu.cigmaian
      3
      0
      Votes
      3
      Posts
      1.1k
      Views

      R

      Thank You

    • R

      Using http retriever returns java.net.UnknownHostException:

      How-To
      • • • radu.cigmaian
      7
      0
      Votes
      7
      Posts
      2.3k
      Views

      phildunlapP

      Hi Radu,

      I gave it a shot. I did notice what you're saying if I put 50 in as the group number, but that regex doesn't match anyway. I found 48 got me the last value in the set using (?:.*?temp_c":(\d+[.]\d+).*?){48} 48 matched fairly quickly, and all lower numbers should match faster.

      It sounds like you're getting each value into its own data point? You could also try something like grabbing the entire string into a regex (regex .* value index 0), and parsing it using a script like....

      if(httpForecast.time > scriptRun.time) { var forecast = JSON.parse(httpForecast.value); for( var k = 0; k < forecast.forecast.forecastday.length; k+=1 ) { var day = forecast.forecast.forecastday[k]; for( var i = 0; i < day.hour.length; i += 1 ) { var hour = day.hour*; forecastOutputPoint.set( hour.temp_c, DateTimeUtility.parseDate("yyyy-dd-MM HH:mm", hour.time, "America/Toronto") ); } } scriptRun.set(!scriptRun.value); }

      Where forecastOutputPoint is a Numeric point log all data on the scripting data source, and scriptRun is a binary point on the scripting data source. If I didn't make any mistakes this should have all the values appear in forecastOutputPoint any time the http gets a new forecast and the script runs to parse it.

    • R

      rest api query format

      Dashboard Designer & Custom AngularJS Pages
      • • • radu.cigmaian
      2
      0
      Votes
      2
      Posts
      1.3k
      Views

      phildunlapP

      Hi Radu,

      It's probably easier for you to do this by using the GET /v1/events endpoint, since you can includes a URL parameter to do that filtering quite easily:

      /v1/events?alarmLevel=CRITICAL&sort(-activeTimestamp)&limit(50)

    • R

      Getting multiple point values with one request

      Dashboard Designer & Custom AngularJS Pages
      • • • radu.cigmaian
      9
      0
      Votes
      9
      Posts
      3.6k
      Views

      Jared WiltshireJ

      Thanks for the kind words Thomas, we are certainly striving to be the leading vendor in this space.

      Yes, the latest module enables users to create their own custom pages straight through the web interface, we hope this makes it easier for our users!

    • R

      Api documentation not available

      Dashboard Designer & Custom AngularJS Pages
      • • • radu.cigmaian
      6
      0
      Votes
      6
      Posts
      2.4k
      Views

      R

      How can I query the api for active events?
      Thank You

    • R

      Setting custom login page has no effect

      Mango Automation general Discussion
      • • • radu.cigmaian
      7
      0
      Votes
      7
      Posts
      2.3k
      Views

      R

      Now it is working,

      Thank you

    • R

      How to get alarms via REST API

      Mango Automation general Discussion
      • • • radu.cigmaian
      2
      0
      Votes
      2
      Posts
      1.7k
      Views

      phildunlapP

      Yes indeed! I would encourage you to go into your Mango/overrides/properties/env.properties or Mango/classes/env.properties and change the
      swagger.enabled=false
      to
      swagger.enabled=true

      Then you can reboot Mango, login, then navigate to http://localhost:port/swagger and get a page with all the endpoints. I bet you're interested in /v1/events/list and /v1/events/active-summary