I did this process days ago but now I find myself with an error again.
This is the error that the open remote log console throws
Failed to link attribute 'AttributeRef{id='597vSfNfXMDep81HO4r23N', name='temperature'}' to protocol: HTTP Client[api.openweathermap.org/data/2.5] -- java.lang.ClassCastException: org.openremote.model.asset.agent.AgentLink$Default cannot be cast to org.openremote.agent.protocol.http.HTTPAgent$HTTPAgentLink
java.lang.RuntimeException: java.lang.IllegalArgumentException: Missing or invalid base URI attribute: HTTP Client[]
This is the json that I am passing to you following the example of the youtube video
{
"type": "HttpClientAgentLink",
"id": "6eKBchXJ3c7Qvxpaju1AJZ",
"queryParameters": {
"q": [
"Rotterdam,nl"
],
"units": [
"metric"
]
},
"pollingMillis": 60000,
"path": "weather",
"valueFilters": [
{
"type": "jsonPath",
"path": "$.main.temp",
"returnFirst": true,
"returnLast": false
}
]
}
Video: Integration with OpenRemote, the 100% open source IoT platform - YouTube
When I have to insert the json in agent link it goes back to default continuously
This json is set by default:
{
"type": "Default",
"id": "6eKBchXJ3c7Qvxpaju1AJZ",
"valueFilters": [
{
"type": "jsonPath",
"path": "$.main.temp",
"returnFirst": true,
"returnLast": false
}
]
}
Can anyone help? Thanks