-
-
Notifications
You must be signed in to change notification settings - Fork 756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update octopus.go for german api version #18940
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
thecem
commented
Feb 18, 2025
- added octups DE api
- added user&passwd auth
- added token handling
- intelligent octopus go tarif -> GoPrice / StandardPrice (Manual)
- Tarif time 0-5 Go Rate 5-24 Standard Rate
- to do: use price information from api (if listet)
- added octups DE api - added user&passwd auth - added token handling - intelligent octopus go tarif -> GoPrice / StandardPrice (Manual) - Tarif time 0-5 Go Rate 5-24 Standard Rate - to do: use price information from api (if listet)
Error: tariff/config.go:12:5: registry already declared through import of package registry ("github.com/evcc-io/evcc/util/registry") Error: tariff/octopus.go:16:2: other declaration of registry Error: tariff/octopus.go:33:11: undefined: registry.Add Error: tariff/octopus.go:90:25: undefined: octoGql.GetKrakenToken Error: tariff/octopus.go:127:26: undefined: octoGql.NewClientWithEmailPassword Error: tariff/octopus.go:204:9: assignment mismatch: 1 variable but client.Post returns 2 values Error: tariff/octopus.go:204:29: undefined: octoGql.GermanURI Error: tariff/octopus.go:204:40: cannot use struct{Query string `json:"query"`; Variables struct{AccountNumber string `json:"accountNumber"`} `json:"variables"`}{…} (value of type struct{Query string "json:\"query\""; Variables struct{AccountNumber string "json:\"accountNumber\""} "json:\"variables\""}) as string value in argument to client.Post Error: tariff/octopus.go:221:5: cannot use &dispatches (value of type *[]struct{Start time.Time "json:\"start\""; End time.Time "json:\"end\""}) as io.Reader value in argument to client.Post: *[]struct{Start time.Time "json:\"start\""; End time.Time "json:\"end\""} does not implement io.Reader (missing method Read)
Error: tariff/octopus.go:33:6: undefined: api.RegisterTariff Error: tariff/octopus.go:90:25: undefined: octoGql.GetKrakenToken Error: tariff/octopus.go:127:26: undefined: octoGql.NewClientWithEmailPassword Error: tariff/octopus.go:204:35: undefined: octoGql.GermanURI Error: tariff/octopus.go:204:46: not enough arguments in call to client.Post have (unknown type, struct{Query string "json:\"query\""; Variables struct{AccountNumber string "json:\"accountNumber\""} "json:\"variables\""}) want (string, string, io.Reader) Error: tariff/octopus.go:228:12: undefined: json
Error: tariff/octopus.go:6:2: "io" imported and not used Error: tariff/octopus.go:35:6: undefined: api.RegisterTariff Error: tariff/octopus.go:92:25: undefined: octoGql.GetKrakenToken Error: tariff/octopus.go:129:26: undefined: octoGql.NewClientWithEmailPassword Error: tariff/octopus.go:229:35: undefined: octoGql.GermanURI Error: tariff/octopus.go:229:66: undefined: bytes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.