• Post comments:0 Comments
  • Reading time:1 mins read

Get location and temperature based on IP

Most open-source weather solutions require you to pre-define the location inside the code.

Here we got the solution is to obtain the latitude and longitude by the IP address (Using ip-api). And then request for the next 7 days’ weather forecast from OpenWeatherMap API.

We don’t include any buttons on the screen in this demo. It is more like a standard page of a SmartLivingRoom device (it is actually is)

Now all the pieces of the puzzle are collected, we will release the open-source SmartLivingRoom project next week!

Components:

Libraries:

close

Updates

Tips

Coupons

We don’t spam! Read our privacy policy for more info.

Leave a Reply