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

    Topics

    • R

      how to get alarms only with level critial using mangoapi

      Watching Ignoring Scheduled Pinned Locked Moved Dashboard Designer & Custom AngularJS Pages
      3
      0 Votes
      3 Posts
      1k Views
      R
      Thank You
    • R

      Using http retriever returns java.net.UnknownHostException:

      Watching Ignoring Scheduled Pinned Locked Moved How-To
      7
      0 Votes
      7 Posts
      2k 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

      Watching Ignoring Scheduled Pinned Locked Moved Dashboard Designer & Custom AngularJS Pages
      2
      0 Votes
      2 Posts
      1k 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

      Watching Ignoring Scheduled Pinned Locked Moved Dashboard Designer & Custom AngularJS Pages
      9
      0 Votes
      9 Posts
      4k 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

      Watching Ignoring Scheduled Pinned Locked Moved Dashboard Designer & Custom AngularJS Pages
      6
      0 Votes
      6 Posts
      3k Views
      R
      How can I query the api for active events? Thank You
    • R

      Setting custom login page has no effect

      Watching Ignoring Scheduled Pinned Locked Moved Mango Automation general Discussion
      7
      0 Votes
      7 Posts
      2k Views
      R
      Now it is working, Thank you
    • R

      How to get alarms via REST API

      Watching Ignoring Scheduled Pinned Locked Moved Mango Automation general Discussion
      2
      0 Votes
      2 Posts
      2k 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