buerokratt / Common-Services

Bürokratt Common Services
MIT License
0 stars 9 forks source link

NordPool lowest price of the day #9

Open SigritSiht opened 1 year ago

SigritSiht commented 1 year ago

AS a Chatbot trainer I WANT TO write needed DSL files SO THAT end users could consume the Service via Bürokratt

Acceptance Criteria

time in UTC format (e.g. start = 2023-05-31T00:00:00.000Z and end = 2023-05-31T23:59:59.999Z)

Output

SigritSiht commented 1 year ago

https://github.com/buerokratt/Common-Services/issues/7

ValterAro commented 1 year ago

get_message_elering: call: http.get args: url: https://dashboard.elering.ee/api/nps/price query: start: "2023-06-14T00:00:00.000Z" end: "2023-06-14T23:59:59.999Z" result: prices

return_value: return: ${prices}

Vastu ei tule õige. Peaks tulema 22 "price"i ja "timestamp"i iga riigi kohta. Tuleb aga default vastus, mis on tänased elektri hinnad kuni preaguse tunnini. Sama vastus tuleb kui start ja end aega mitte kaasa anda.

turnerrainer commented 1 year ago

This issue was blocked because of a Ruuter bug described in https://github.com/buerokratt/Ruuter/issues/170. ETA for fix is 16.06.2023.

SigritSiht commented 1 year ago
get_step:
  call: http.get
  args:
    url: "https://dashboard.elering.ee/api/nps/price"    
  result: elering

response:
  return: ${​​​​​​elering.response.body.data.ee.sort( (a,b) =>  a.price-b.price )[0]}
ValterAro commented 1 year ago

Kas peaks arvutama hinnale juurde käibemaksu? Hetke lahendus annab hinna ilma käibemaksuta. PR #20

SigritSiht commented 1 year ago

Kas peaks arvutama hinnale juurde käibemaksu? Hetke lahendus annab hinna ilma käibemaksuta. PR #20

Vastuse võib anda sarnaselt #7 vastuse teise poolega.

turnerrainer commented 1 year ago

Please use English in GitHub.