June 2025
Beginner to intermediate
473 pages
13h 30m
English
The following script combines two REST APIs:
First, the https://ipinfo.io geolocation service is used to determine the presumed location for the current IP address. This doesn’t always work precisely and can go completely wrong if you use a VPN connection. But in most cases, the returned coordinates are reasonably good.
In the second step, the current weather is determined for the identified location. The API at https://api.weatherapi.com is available free of charge with certain restrictions. However, you must get an API key. (Providing your email address is sufficient; you don’t need to provide a credit card number or any other personal information.)
For the first step, I used Invoke-RestMethod ...
Read now
Unlock full access