Skip to content

Commit

Permalink
feat: add estimatedPrice for fluid consumptions (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobeal authored Aug 8, 2024
1 parent ba1fcfa commit d8c516c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
7 changes: 4 additions & 3 deletions jsonld-contexts/fluid.jsonld
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"@context": {
"consumption": "https://vocab.egm.io/consumption",
"estimatedPrice": "https://vocab.egm.io/estimatedPrice",
"FluidMonitoring": "https://vocab.egm.io/FluidMonitoring",
"fluidType": "https://vocab.egm.io/fluidType",
"lastRetrievedStartDate": "https://vocab.egm.io/lastRetrievedStartDate",
"isConnected ": "https://vocab.egm.io/isConnected",
"lastRetrievedStartDate": "https://vocab.egm.io/lastRetrievedStartDate",
"lastStartDate": "https://vocab.egm.io/lastStartDate",
"meterReference": "https://vocab.egm.io/meterReference",
"refDevice": "https://vocab.egm.io/refDevice",
"retrievalStatus": "https://vocab.egm.io/retrievalStatus",
"lastStartDate": "https://vocab.egm.io/lastStartDate"
"retrievalStatus": "https://vocab.egm.io/retrievalStatus"
}
}
23 changes: 23 additions & 0 deletions ngsild-payloads/fluidMonitoring.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,28 @@
"observedAt": "2023-12-14T00:00:00Z",
"datasetId": "urn:ngsi-ld:Dataset:Total"
}
],
"estimatedPrice": [
{
"type": "Property",
"value": 0.696,
"unitCode": "EUR",
"observedAt": "2023-12-14T00:00:00Z",
"datasetId": "urn:ngsi-ld:Dataset:OffPeakHour"
},
{
"type": "Property",
"value": 1.044,
"unitCode": "EUR",
"observedAt": "2023-12-14T00:00:00Z",
"datasetId": "urn:ngsi-ld:Dataset:FullHour"
},
{
"type": "Property",
"value": 1.74,
"unitCode": "EUR",
"observedAt": "2023-12-14T00:00:00Z",
"datasetId": "urn:ngsi-ld:Dataset:Total"
}
]
}

0 comments on commit d8c516c

Please sign in to comment.