Skip to content

Commit

Permalink
Revert Amber tariff to fetch every minute, as the prices change frequ…
Browse files Browse the repository at this point in the history
…ently
  • Loading branch information
ross-w committed Jan 8, 2025
1 parent e9d67ee commit c745316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tariff/amber.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func NewAmberFromConfig(other map[string]interface{}) (api.Tariff, error) {
func (t *Amber) run(done chan error) {
var once sync.Once

for tick := time.Tick(time.Hour); ; <-tick {
for tick := time.Tick(time.Minute); ; <-tick {
var res []amber.PriceInfo
uri := fmt.Sprintf("%s&endDate=%s", t.uri, time.Now().AddDate(0, 0, 2).Format("2006-01-02"))

Expand Down

0 comments on commit c745316

Please sign in to comment.