• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. MStangl
    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
    M
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 4
    • Groups 0

    Topics

    • M

      Uploading data to off-site URL

      Watching Ignoring Scheduled Pinned Locked Moved User help
      7
      0 Votes
      7 Posts
      2k Views
      Jared WiltshireJ
      @MStangl You can create a PowerShell script which you schedule on your Windows server. I started with a snippet created by the Chrome DevTools, you go to the network tab and find the API request and copy the network request as shown below. [image: 3Kt8ZKh.png] You just need to create an authentication token (on your users page) and add it as a header as shown below. Invoke-WebRequest ` -Uri "http://yourmangohostname:8080/rest/v2/point-values/single-array/time-period" ` -Method "POST" ` -Headers @{"Accept"="text/csv"; "Authorization"="Bearer yourlongtokenthatyougenerated"} ` -ContentType "application/json;charset=UTF-8" ` -Body "{`"dateTimeFormat`":`"yyyy-MM-dd'T'HH:mm:ss.SSSXXX`",`"from`":`"2018-10-23T21:54:58.951Z`",`"to`":`"2018-10-24T21:54:58.952Z`",`"bookend`":true,`"timezone`":`"UTC`",`"fields`":[`"TIMESTAMP`",`"VALUE`"],`"xids`":[`"DP_9004cb57-f1cb-4415-a078-b60999f06c4d`",`"DP_cd2587fa-93ab-492a-9963-e9f5c4e0a40d`",`"DP_915fb444-6133-45eb-a700-4f415662e108`",`"DP_506cab2d-8f10-46ca-90aa-ff9d8f6c0400`"]}" ` -OutFile "myData.csv" You will just need to modify the script so that it gets data relative to the time it runs at and names the output file accordingly. And also obviously make it get the XIDs you are interested in.
    • M

      Need copy of USB Utility Configuration files

      Watching Ignoring Scheduled Pinned Locked Moved Mango Automation Installation
      2
      0 Votes
      2 Posts
      1k Views
      JoelHaggarJ
      If you email support@infiniteautomation.com we can email you the files.