Revert back to OWM pro api, required anyway for Extended

This commit is contained in:
Andrew Scott 2022-08-08 06:27:04 -04:00
parent 0a21a5047e
commit 6966aa1d9c
Signed by: a
GPG key ID: 3EB62D0BBB8DB381

View file

@ -15,7 +15,7 @@ import (
func (s *Server) Current(ctx context.Context, in *pb.RequestCurrent) (*pb.SendCurrent, error) {
log.Println("'Current' function called...")
url := "https://api.openweathermap.org/data/2.5/weather?"
url := "https://pro.openweathermap.org/data/2.5/weather?"
lat, lon := getLocation(in.City, s.ApiKey)
units := "&units=imperial"
token := "&appid=" + s.ApiKey