In order to most easily integrate data between the utilityservice and the scrapers, data output from the actual scraper functions will be in a format very similar to that used by the blocpower endpoints. Each component will be identical to that in the utilityservice readme. There are a few exceptions for the sake of cross-referencing locally. Those, along with the overal structure, are shown below.
data = {
'account': {
...
},
'meters': [
{
'cid': '[uuid] A local unique identifier for the meter.',
...
},
...
],
'meterids': [
{
'meter_cid': '[uuid] A local unique identifier for the meter associated with this id.',
...
},
...
],
'lineitems': [
{
'meter_cid': '[uuid] A local unique identifier for the meter associated with the lineitem.',
...
},
...
]
}