mirror of
https://codeberg.org/andyscott/OpenWeather-gRPC-API.git
synced 2024-12-21 12:13:09 -05:00
Revert to pro API for extended forecast, unavailable via normal API
This commit is contained in:
parent
d47a745437
commit
0a21a5047e
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue