Hello everyone,
I’m new to openremote and trying to figure out how to configure a simple HTTP agent and a couple of assets.
Following the tutorial Weather-API tutotorial with http agent I have implemented an HTTP Agent retrieving a simple json as:
{
"Timestamp": "2022-05-26T07:39:44.687879",
"PLC_temp_int": 26.82591819779103,
"PLC_temp_ext": 16.257565641068858,
...
}
Then I have implemented a “thing” in the asset list with three attributes called respectively PLC_temp_int (number), PLC_temp_ext(number) and Response(json).
Response has an agent link and a attribute link component, the attribute link has the following configuration:
[
{
"ref": {
"id": "5jyuiLIJ23NH0GODey2Boz",
"name": "PLC_temp_int"
},
"filters": [
{
"type": "jsonPath",
"path": "$.PLC_temp_int",
"returnFirst": true,
"returnLast": false
}
]
},
{
"ref": {
"id": "5jyuiLIJ23NH0GODey2Boz",
"name": "PLC_temp_ext"
},
"filters": [
{
"type": "jsonPath",
"path": "$.PLC_temp_ext",
"returnFirst": true,
"returnLast": false
}
]
}
]
Everything works as expected and the attributes PLC_temp_int , PLC_temp_ext are populated parsing the attribute Response.
If I open the asset view or I try to create a graph in the insight section tho, I can’t see the PLC_temp_int and PLC_temp_ext attributes in the history.
Is there a way to set multiple attributes with one agent link and still see the attributes in the history?
I have also tried to configure my manager_config.json as follow with no luck:
{
"loadLocales":true,
"realms":{
"default":{
...
}
},
"pages":{
"assets":{
"viewer":{
"historyConfig":{
"table":{
"attributeNames":{
"Response":{
"columns":[
{
"header":"response",
"type":"prop",
"path":"$."
},
{
"header":"PLC_temp_int",
"type":"number"
},
]
}
}
}
}
}
}
}
}