strom_api
1.0.0
A versatile RESTful program that aggregates and serves hourly data for electricity prices.
Just run this server, and it will do all the heavy lifting for you.
General schema: endpoint/timestampInSecondsSinceEpoch/zone
Available price zones
GET https://strom.coinerella.com/price/0/peninsular
{"time":"2023-04-05 14:00:00.000+0200","zone":"peninsular","price":0.11416,"price_rating_percent":64.18,"price_rating":"off_peak"}GET https://strom.coinerella.com/price-average/0/canarias
{"time":"2023-04-05 00:00:00.000","zone":"canarias","average_price":0.17787}GET https://strom.coinerella.com/price-daily/0/peninsular
[{
"time": "2023-04-05 00:00:00.000+0200",
"zone": "peninsular",
"price": 0.10931,
"price_rating_percent": 87.88,
"price_rating": "off_peak"
},
{
"time": "2023-04-05 01:00:00.000+0200",
"zone": "peninsular",
"price": 0.10634,
"price_rating_percent": 85.5,
"price_rating": "off_peak"
}...]0 is the timestamp in both cases. 0 will always return the current price in the local time for the requested zone.
Detailed endpoint documentation
./deploy.sh./deploy.sh will always rebuild the main branch of this repository and restart the containerdart test test/app_test_no_env.dartdart test test/app_test_with_env.dartact --secret-file my.secretsdart doc .