Switch to regular API to accomodate non-paid OMW users

This commit is contained in:
Andrew Scott 2022-08-06 23:28:30 -04:00
parent c6bda08ade
commit e3c2b592a2
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://pro.openweathermap.org/data/2.5/weather?"
url := "https://api.openweathermap.org/data/2.5/weather?"
lat, lon := getLocation(in.City, s.ApiKey)
units := "&units=imperial"
token := "&appid=" + s.ApiKey