• W
    Wingnut2.0

    Solved -
    Accept point attribute updates must be enabled on the receiving data source.

    posted in User help read more
  • W
    Wingnut2.0

    When new tags are added directly to data points on the publishing system the changes are not reflected on the receiving system. What is the process for triggering an update of tags? Starting and stopping the publisher does not seem to help.

    posted in User help read more
  • W
    Wingnut2.0

    Wow, that is certainly much easier to deal with.

    When you say the "new watch list page" are you referring to :8080/ui/watch-list/ , or creating a new watch list via the builder 8080/ui/administration/watch-list-builder/?

    posted in User help read more
  • W
    Wingnut2.0

    Thanks Jared. I am looking forward to the single endpoint.

    I am attempting this using POST /v2/point-values/multiple-arrays/time-period with the body below, but I receive a response code of 400 and response header message of "error". Is there any additional documentation outside of swagger?

    {
      "xids": [
        "DP_value_a",
        "DP_value_b"
      ],
      "dateTimeFormat": "",
      "timezone": "",
      "limit": 0,
      "simplifyTolerance": 0,
      "simplifyTarget": 0,
      "fields": [
        ""
      ],
      "from": {
        "offset": {
          "totalSeconds": 0,
          "id": "",
          "rules": {
            "transitions": [
              {
                "offsetBefore": "ZoneOffset",
                "offsetAfter": "ZoneOffset",
                "dateTimeBefore": {
                  "monthValue": 0,
                  "dayOfYear": 0,
                  "dayOfWeek": "",
                  "month": "",
                  "dayOfMonth": 0,
                  "year": 0,
                  "nano": 0,
                  "hour": 0,
                  "minute": 0,
                  "second": 0,
                  "chronology": {
                    "calendarType": "",
                    "id": ""
                  }
                },
                "instant": {
                  "epochSecond": 0,
                  "nano": 0
                },
                "gap": false,
                "overlap": false,
                "dateTimeAfter": {
                  "monthValue": 0,
                  "dayOfYear": 0,
                  "dayOfWeek": "",
                  "month": "",
                  "dayOfMonth": 0,
                  "year": 0,
                  "nano": 0,
                  "hour": 0,
                  "minute": 0,
                  "second": 0,
                  "chronology": {
                    "calendarType": "",
                    "id": ""
                  }
                },
                "duration": {
                  "seconds": 0,
                  "units": [
                    {
                      "dateBased": false,
                      "durationEstimated": false,
                      "duration": "Duration",
                      "timeBased": false
                    }
                  ],
                  "negative": false,
                  "zero": false,
                  "nano": 0
                }
              }
            ],
            "transitionRules": [
              {
                "month": "",
                "timeDefinition": "",
                "standardOffset": "ZoneOffset",
                "offsetBefore": "ZoneOffset",
                "offsetAfter": "ZoneOffset",
                "dayOfMonthIndicator": 0,
                "localTime": {
                  "hour": "",
                  "minute": "",
                  "second": "",
                  "nano": 0
                },
                "midnightEndOfDay": false,
                "dayOfWeek": ""
              }
            ],
            "fixedOffset": false
          }
        },
        "zone": {
          "rules": {
            "transitions": [
              {
                "offsetBefore": {
                  "totalSeconds": 0,
                  "id": "",
                  "rules": "ZoneRules"
                },
                "offsetAfter": {
                  "totalSeconds": 0,
                  "id": "",
                  "rules": "ZoneRules"
                },
                "dateTimeBefore": {
                  "monthValue": 0,
                  "dayOfYear": 0,
                  "dayOfWeek": "",
                  "month": "",
                  "dayOfMonth": 0,
                  "year": 0,
                  "nano": 0,
                  "hour": 0,
                  "minute": 0,
                  "second": 0,
                  "chronology": {
                    "calendarType": "",
                    "id": ""
                  }
                },
                "instant": {
                  "epochSecond": 0,
                  "nano": 0
                },
                "gap": false,
                "overlap": false,
                "dateTimeAfter": {
                  "monthValue": 0,
                  "dayOfYear": 0,
                  "dayOfWeek": "",
                  "month": "",
                  "dayOfMonth": 0,
                  "year": 0,
                  "nano": 0,
                  "hour": 0,
                  "minute": 0,
                  "second": 0,
                  "chronology": {
                    "calendarType": "",
                    "id": ""
                  }
                },
                "duration": {
                  "seconds": 0,
                  "units": [
                    {
                      "dateBased": false,
                      "durationEstimated": false,
                      "duration": "Duration",
                      "timeBased": false
                    }
                  ],
                  "negative": false,
                  "zero": false,
                  "nano": 0
                }
              }
            ],
            "transitionRules": [
              {
                "month": "",
                "timeDefinition": "",
                "standardOffset": {
                  "totalSeconds": 0,
                  "id": "",
                  "rules": "ZoneRules"
                },
                "offsetBefore": {
                  "totalSeconds": 0,
                  "id": "",
                  "rules": "ZoneRules"
                },
                "offsetAfter": {
                  "totalSeconds": 0,
                  "id": "",
                  "rules": "ZoneRules"
                },
                "dayOfMonthIndicator": 0,
                "localTime": {
                  "hour": "",
                  "minute": "",
                  "second": "",
                  "nano": 0
                },
                "midnightEndOfDay": false,
                "dayOfWeek": ""
              }
            ],
            "fixedOffset": false
          },
          "id": ""
        },
        "monthValue": 6,
        "dayOfYear": 0,
        "dayOfWeek": "",
        "month": "",
        "dayOfMonth": 10,
        "year": 2018,
        "nano": 0,
        "hour": 0,
        "minute": 0,
        "second": 0,
        "chronology": {
          "calendarType": "",
          "id": ""
        }
      },
      "to": {
        "offset": {
          "totalSeconds": 0,
          "id": "",
          "rules": {
            "transitions": [
              {
                "offsetBefore": "ZoneOffset",
                "offsetAfter": "ZoneOffset",
                "dateTimeBefore": {
                  "monthValue": 0,
                  "dayOfYear": 0,
                  "dayOfWeek": "",
                  "month": "",
                  "dayOfMonth": 0,
                  "year": 0,
                  "nano": 0,
                  "hour": 0,
                  "minute": 0,
                  "second": 0,
                  "chronology": {
                    "calendarType": "",
                    "id": ""
                  }
                },
                "instant": {
                  "epochSecond": 0,
                  "nano": 0
                },
                "gap": false,
                "overlap": false,
                "dateTimeAfter": {
                  "monthValue": 0,
                  "dayOfYear": 0,
                  "dayOfWeek": "",
                  "month": "",
                  "dayOfMonth": 0,
                  "year": 0,
                  "nano": 0,
                  "hour": 0,
                  "minute": 0,
                  "second": 0,
                  "chronology": {
                    "calendarType": "",
                    "id": ""
                  }
                },
                "duration": {
                  "seconds": 0,
                  "units": [
                    {
                      "dateBased": false,
                      "durationEstimated": false,
                      "duration": "Duration",
                      "timeBased": false
                    }
                  ],
                  "negative": false,
                  "zero": false,
                  "nano": 0
                }
              }
            ],
            "transitionRules": [
              {
                "month": "",
                "timeDefinition": "",
                "standardOffset": "ZoneOffset",
                "offsetBefore": "ZoneOffset",
                "offsetAfter": "ZoneOffset",
                "dayOfMonthIndicator": 0,
                "localTime": {
                  "hour": "",
                  "minute": "",
                  "second": "",
                  "nano": 0
                },
                "midnightEndOfDay": false,
                "dayOfWeek": ""
              }
            ],
            "fixedOffset": false
          }
        },
        "zone": {
          "rules": {
            "transitions": [
              {
                "offsetBefore": {
                  "totalSeconds": 0,
                  "id": "",
                  "rules": "ZoneRules"
                },
                "offsetAfter": {
                  "totalSeconds": 0,
                  "id": "",
                  "rules": "ZoneRules"
                },
                "dateTimeBefore": {
                  "monthValue": 0,
                  "dayOfYear": 0,
                  "dayOfWeek": "",
                  "month": "",
                  "dayOfMonth": 0,
                  "year": 0,
                  "nano": 0,
                  "hour": 0,
                  "minute": 0,
                  "second": 0,
                  "chronology": {
                    "calendarType": "",
                    "id": ""
                  }
                },
                "instant": {
                  "epochSecond": 0,
                  "nano": 0
                },
                "gap": false,
                "overlap": false,
                "dateTimeAfter": {
                  "monthValue": 0,
                  "dayOfYear": 0,
                  "dayOfWeek": "",
                  "month": "",
                  "dayOfMonth": 0,
                  "year": 0,
                  "nano": 0,
                  "hour": 0,
                  "minute": 0,
                  "second": 0,
                  "chronology": {
                    "calendarType": "",
                    "id": ""
                  }
                },
                "duration": {
                  "seconds": 0,
                  "units": [
                    {
                      "dateBased": false,
                      "durationEstimated": false,
                      "duration": "Duration",
                      "timeBased": false
                    }
                  ],
                  "negative": false,
                  "zero": false,
                  "nano": 0
                }
              }
            ],
            "transitionRules": [
              {
                "month": "",
                "timeDefinition": "",
                "standardOffset": {
                  "totalSeconds": 0,
                  "id": "",
                  "rules": "ZoneRules"
                },
                "offsetBefore": {
                  "totalSeconds": 0,
                  "id": "",
                  "rules": "ZoneRules"
                },
                "offsetAfter": {
                  "totalSeconds": 0,
                  "id": "",
                  "rules": "ZoneRules"
                },
                "dayOfMonthIndicator": 0,
                "localTime": {
                  "hour": "",
                  "minute": "",
                  "second": "",
                  "nano": 0
                },
                "midnightEndOfDay": false,
                "dayOfWeek": ""
              }
            ],
            "fixedOffset": false
          },
          "id": ""
        },
        "monthValue": 6,
        "dayOfYear": 0,
        "dayOfWeek": "",
        "month": "",
        "dayOfMonth": 15,
        "year": 2018,
        "nano": 0,
        "hour": 0,
        "minute": 0,
        "second": 0,
        "chronology": {
          "calendarType": "",
          "id": ""
        }
      },
      "bookend": false,
      "useCache": ""
    }
    

    posted in User help read more
  • W
    Wingnut2.0

    I was hoping someone might be able to suggest the most efficient way to accomplish the following -

    A customer has multiple datapoints across multiple datasources. These are identified by a customerId tag tied to each datapoint. I would like to retrieve the last 10 days of readings for all of the datapoints associated with any given customerId via the API.

    What is the best way to accomplish this? Is this a two step process or can this be accomplished by a single API call?

    Possibly using the customerId tag to create a watchlist, but how can I query a watchlist for 10 day history?
    When viewing the watchlist using developers tools I see it looping through the points associated with the list to retrieve the value, how would one accomplish this via the API?

    Thank you

    posted in User help read more
  • W
    Wingnut2.0

    Thank you, Phillip - Working now.

    posted in User help read more
  • W
    Wingnut2.0

    Hello Phillip,

    No encryption on this today, but I have had it enabled at one point for testing. Key/Value were only 5 characters each.

    I am seeing the following in the log on the publisher side, nothing on the receiving side.

    ERROR 2018-06-15T10:53:26,837 (com.serotonin.m2m2.rt.publish.SendThread.run:59) - Send thread PersistentSenderRT.SendThread failed with an exception java.lang.UnsupportedOperationException: null at java.util.Collections$UnmodifiableMap.put(Collections.java:1457) ~[?:1.8.0_144] at com.serotonin.m2m2.persistent.pub.PersistentSendThread.openConnection(PersistentSendThread.java:586) ~[persistent-pub-ds-3.4.3.jar:?] at com.serotonin.m2m2.persistent.pub.PersistentSendThread.runImpl(PersistentSendThread.java:194) ~[persistent-pub-ds-3.4.3.jar:?] at com.serotonin.m2m2.rt.publish.SendThread.run(SendThread.java:56) [mango-3.4.4.jar:?]
    

    posted in User help read more
  • W
    Wingnut2.0

    I have an established PTCP connection between two systems that has been running for some time. In order to leverage the ability to create watchlists using a tag query on the remote system, I added an extra tag using the fields in the PTCP Publisher. Once saved I expected to drop the connection with the remote system while the publisher restarted, but this lasted for 30 mins. When I deleted the extra tag the connection returned. Tested a few more time with the same result. Is this expected? - Thank you

    posted in User help read more
  • W
    Wingnut2.0

    Thanks Phillip.

    In your response here https://forum.infiniteautomation.com/topic/3282/assigning-event-handlers you mentioned making the change in the JSON to have multiple points reference a single event handler.

    "eventTypes":[
                {
                   "sourceType":"DATA_POINT",
                   "dataPointXID":"DP_1234",
                   "detectorXID":"ED_1234"
                }
             ]
    

    I didnt know if the same approach might work by adding multiple target points in the JSON of the event handler

    "targetPointId":"DP_pointOne,
    "targetPointId":"DP_pointTwo,
    

    posted in User help read more
  • W
    Wingnut2.0

    Re: Assigning event handlers

    Curious if its also possible to assign the output of an event handler set point to multiple target points via json?

    posted in User help read more