Revert to pro API for extended forecast, unavailable via normal API

This commit is contained in:
Andrew Scott 2022-08-08 02:23:09 -04:00
parent d47a745437
commit 0a21a5047e
Signed by: a
GPG key ID: 3EB62D0BBB8DB381

View file

@ -15,7 +15,7 @@ import (
func (s *Server) Extended(ctx context.Context, in *pb.RequestExtended) (*pb.SendExtended, error) {
log.Println("'Extended' function called...")
url := "https://api.openweathermap.org/data/2.5/forecast/daily?"
url := "https://pro.openweathermap.org/data/2.5/forecast/daily?"
lat, lon := getLocation(in.City, s.ApiKey)
days := "&cnt=" + fmt.Sprint(in.Days)
units := "&units=imperial"