Comments (8)
Okay, will give that a try. Seems weird though, since it had no problem collecting cost from 2021-2023 last night.
from teslamateagile.
Thanks for the help!
Found the culprit, it was user error. I forgot to update the API token in the compose file after making a new one in Tibber last night.. Everything is working fine now.
You at least helped me slow down the requests! 😄
from teslamateagile.
Hey, for this I would recommend temporarily setting the cost for to something other than null in the charging_processes
table in the database directly for most of them, and nulling them out slowly over time to let TeslaMateAgile pick them up.
Maybe use some very weird or specific number so you don't confuse it with the real ones!
from teslamateagile.
Any tips to automate this? I don't really feel like sitting nulling out charges over the next few days.
from teslamateagile.
Yeah, you could use psql
to run a query (psuedo-code) similar to:
UPDATE charging_processes SET cost=NULL WHERE id IN (SELECT id FROM charging_processes WHERE cost = 12345 limit 1)
And have that on some kind of scheduled task / cronjob, make sure to adjust cost / limit as necessary.
from teslamateagile.
Thank you. I have now changed all entries with NULL to another price that won't interfere with actual prices.
I now only have two entries with NULL and tried starting Agile again.
`info: TeslaMateAgile.PriceHelper[0]
Calculating cost for charges 10/05/2023 17:15:24 UTC - 10/05/2023 17:18:53 UTC
fail: TeslaMateAgile.PriceHelper[0]
Failed to calculate charging cost / energy for charging process 1170
GraphQL.Client.Http.GraphQLHttpRequestException: The HTTP request failed with status code BadRequest
at TeslaMateAgile.Services.TibberService.SendRequest(GraphQLHttpRequest request) in /src/TeslaMateAgile/Services/TibberService.cs:line 139
at TeslaMateAgile.Services.TibberService.GetPriceData(DateTimeOffset from, DateTimeOffset to) in /src/TeslaMateAgile/Services/TibberService.cs:line 67
at TeslaMateAgile.PriceHelper.CalculateChargeCost(IEnumerable`1 charges) in /src/TeslaMateAgile/Helpers/PriceHelper.cs:line 96
at TeslaMateAgile.PriceHelper.Update() in /src/TeslaMateAgile/Helpers/PriceHelper.cs:line 74
info: TeslaMateAgile.PriceHelper[0]
Calculating cost for charges 12/29/2023 08:08:10 UTC - 12/29/2023 08:08:37 UTC
fail: TeslaMateAgile.PriceHelper[0]
Failed to calculate charging cost / energy for charging process 1226
GraphQL.Client.Http.GraphQLHttpRequestException: The HTTP request failed with status code BadRequest
at TeslaMateAgile.Services.TibberService.SendRequest(GraphQLHttpRequest request) in /src/TeslaMateAgile/Services/TibberService.cs:line 139
at TeslaMateAgile.Services.TibberService.GetPriceData(DateTimeOffset from, DateTimeOffset to) in /src/TeslaMateAgile/Services/TibberService.cs:line 67
at TeslaMateAgile.PriceHelper.CalculateChargeCost(IEnumerable`1 charges) in /src/TeslaMateAgile/Helpers/PriceHelper.cs:line 96
at TeslaMateAgile.PriceHelper.Update() in /src/TeslaMateAgile/Helpers/PriceHelper.cs:line 74
info: TeslaMateAgile.PriceService[0]
Waiting 300 seconds until next update`
I have tried accessing Tibber API with no issues, so it is not a soft ban like last night.
from teslamateagile.
Hmm... it's possible that you may be requesting a time too far in the past and the API doesn't like it, maybe try a more recent one or try those dates manually in the API and see what it does.
from teslamateagile.
Glad I could be of (some) assistance 🙂
from teslamateagile.
Related Issues (20)
- Create REST endpoint to get price at specific datetime HOT 3
- Failed to update prices - System.ArgumentException: totalHours HOT 6
- Failed to calculate charging cost / energy for charging process HOT 6
- Enhancement / Feature Upgrade - integration of EMS evcc HOT 2
- Unable to download docker image HOT 2
- Feature request - Make available in Home Assitant hassio HOT 15
- Feature request: Day of week in FIxedPricing
- Updating price from Home Assistant fails because "The input string 'unavailable' was not in a correct format." HOT 3
- Feature Request: Fixed Pricing Based on Day of Week HOT 2
- TeslaMateAgile.PriceHelper Tibber fails HOT 6
- No data available if multiple homes exist HOT 10
- Feature request : Show the energy prices in a dashboard HOT 5
- Feature request: monitoring multiple geofence IDs HOT 3
- Help needed: "number-based entity" in HomeAssistant clarification HOT 4
- TeslaMateAgile.PriceHelper Tibber fail HOT 5
- Everything is wonderfull HOT 1
- Option for setting negative prices to 0 in Energinet HOT 7
- Unable to connect to testamate HOT 8
- Issue with Tibber service HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teslamateagile.