mirror of
https://codeberg.org/andyscott/OpenWeather-gRPC-API.git
synced 2024-12-21 12:13:09 -05:00
Switch to regular API to accomodate non-paid OMW users
This commit is contained in:
parent
c6bda08ade
commit
e3c2b592a2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue