This module shows the time on the page, connecting to the openweathermap api through the geolocation by ip of the visitor It also has the prestashop geoip2 library to make the geolocation task easier
You have to create an account at
- Openweathermap - Weather API
- Maxmind geolite2 - Geoip library for prestashop
Maybe the geoip2 github can help you to see code examples when implementing them in your project. And the file that must be moved to prestashop without having to create an account in maxmid.
- GeoIp2 php api - Help with examples to get ip in prestashop You also download the file in /req/GeoLite2-City.mmdb and you need to move to your prestashop project to the folder /prestashop/app/Resources/geoip/