Weather App does not work when I host it with my hosting provider

I was hoping to add the weather app to my website portfolio page, however when I upload the code to my Just Host server I get the following message in the Chrome console:

Deprecation] getCurrentPosition() and watchPosition() no longer work on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See for more details.
window.onload @ index.js:119

Does that mean I have to purchase and install a wildcard SSL certificate on my hosting account to be able to run the app?

getCurrentPosition and watchPosition need to originate from pages served over https for most (if not all) modern browsers.

I believe you can use Google Maps Geolocation API or an Geo location IP service to get lat and lon based on user’s ip address.