Open danielmiorandi opened 9 years ago
Do we pass an userID or do we get the userID from the authenticated user?
(or is userID/token specific for the Trentino scheme)
Implemented dummy version that returns random values here: http://civis.tbm.tudelft.nl/apidoc/#api-Consumption-GetConsumptionTou
Note that user authentication is enforced, but you can just use a "0" as API_TOKEN to use a dummy user. In that case authentication is done by sending Authorization: Bearer 0
as a header.
What format do you want for the returned values? Reply returns us "F1", "F2", "F3" for different tariffs, but do you want it in some other format? We also have duration, do you need that data as well?
{ "IntervalBlock": [ { "apartmentId": "14", "type": "S_CONS", "kind": "0" } ], "IntervalReadings": [ { "value": "67155.7825641632", "timeslot": "F2", "timePeriod": { "start": "2015-06-01T00:00:00+02:00", "duration": "2592000", "datacoverage": "598406" } }, { "value": "86960.249256134", "timeslot": "F1", "timePeriod": { "start": "2015-06-01T00:00:00+02:00", "duration": "2592000", "datacoverage": "831245" } }, { "value": "102922.147701263", "timeslot": "F3", "timePeriod": { "start": "2015-06-01T00:00:00+02:00", "duration": "2592000", "datacoverage": "1144717" } } ] } this is the output we receive for a particular usagepoint. Is there something u want us to do with this
F1/F2/F3 is not what will be used in the Trento pilot. It will be an hourly prediction covering the next 72 hours. (This information is dynamic, as it is based on a real-time prediction model.) In order to be flexible I’d suggest to return an array with a datetime and value pairs, the value being a number corresponding to the actual cost and the datetime indicating the beginning of the timezone.
Best regards,
Daniele
Daniele Miorandi, PhD Executive Vice President R&D U-Hopper S.r.l. e-mail: daniele.miorandi@u-hopper.com Tel: (+39) 0461 1636588 Cell: (+39) 347 5865883 Skype: danielemiorandi www.u-hopper.com http://www.u-hopper.com/
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited according to the Italian Law 196/2003 of the Legislature. If you received this in error, please contact the sender and delete the material from any computer.
Le informazioni contenute in questo messaggio di posta elettronica e nei file allegati sono da considerarsi strettamente riservate. Il loro utilizzo e' consentito esclusivamente al destinatario del messaggio, per le finalita' indicate nel messaggio stesso. Qualora riceveste questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla cancellazione del messaggio stesso dal Vostro sistema. Trattenere il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalita' diverse, costituisce comportamento contrario ai principi dettati dal D. Lgs.196/2003.
On 27 Aug 2015, at 13:46, Taha Kachwala notifications@github.com wrote:
{ "IntervalBlock": [ { "apartmentId": "14", "type": "S_CONS", "kind": "0" } ], "IntervalReadings": [ { "value": "67155.7825641632", "timeslot": "F2", "timePeriod": { "start": "2015-06-01T00:00:00+02:00", "duration": "2592000", "datacoverage": "598406" } }, { "value": "86960.249256134", "timeslot": "F1", "timePeriod": { "start": "2015-06-01T00:00:00+02:00", "duration": "2592000", "datacoverage": "831245" } }, { "value": "102922.147701263", "timeslot": "F3", "timePeriod": { "start": "2015-06-01T00:00:00+02:00", "duration": "2592000", "datacoverage": "1144717" } } ] } this is the output we receive for a particular usagepoint. Is there something u want us to do with this
— Reply to this email directly or view it on GitHub https://github.com/CIVIS-project/YouPower/issues/69#issuecomment-135397701.
For the Trentino use case we have a dynamic time-of-usage tariffing scheme in place. Also here, we need to have an endpoint on the backend (/api/tou). Parameters: userID, token, horizon. The latter one can take the following values: 1,6,12,24,48,72 and is the horizon of the prediction returned. (1 = actual value). When horizon=x, an array of x values shall be returned.