Skip to content
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
wants to merge 10 commits into from
Closed

Conversation

thecem
Copy link
Contributor

@thecem 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
@andig andig added the tariffs Specific tariff support label Feb 18, 2025
@thecem thecem closed this Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tariffs Specific tariff support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants