• Hello, i got the plugin with fineglobe theme and i really liked it. I updated to 2.5 version and now it does’t display anymore. Can you please advise?

    This is my url if you wanna take a look https://gosocial.gr/

    Really looking forward to hearing from you.

    Best regards,
    ioanna

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor AndyWalmsley

    (@andywalmsley)

    Hi ioanna,

    Due to the increasing popularity of the plugin, we have had the change it to using an API key created by the user instead of using our own API key.

    To create an API key you need to sign up to OpenWeatherMap here https://home.openweathermap.org/users/sign_up, once you’ve signed up you can generate a free key and then copy it into the ICIT Weather Widget settings. After that key has been saved in the widget settings it will be automatically added to any new weather widgets you create so you only need to create 1 and reuse it whenever you need.

    Let me know if there are any issues after doing this.

    If you aren’t using the widgets, is there a way to implement the API Key sitewide for shortcodes? Or in the individual shortcodes? Not seeing anything in the documentation.

    I quickly wrote something after doing some digging, hopefully it helps someone:

    // Check if ICIT Weather Widget is enabled
    if ( class_exists( 'icit_weather_widget' ) ) {
    
    	$icit_option = 'icit_weather_appid';
    
    	$openweathermap_app_id = 'YOUR_APP_ID_GOES_HERE';
    
    	// Check if your app id is already set or not.
    	if ( get_option( $icit_option ) != $openweathermap_app_id ) {
    
    		// If not, set it.
    		update_option( $icit_option, $openweathermap_app_id );
    
    	}
    
    }
    Plugin Contributor AndyWalmsley

    (@andywalmsley)

    Hi socki03,

    That code solution should work fine.
    If you don’t want to go into the code you could create a new widget, add the API key and save it before removing the widget which will add the API key to the option so it can be used in shortcodes.

    Thread Starter ioannarx

    (@ioannarx)

    heyyy, the new link worked for a couple of days and now its not working again.. I also tried a new api key but no luck ?? do you have any recommendation for me?

    Looking forward to hearing from you!

    Best,
    ioanna

    Plugin Contributor AndyWalmsley

    (@andywalmsley)

    Hi ioanna,

    I’ve just checked your site and the weather widget looks to be displaying again. Did you change anything regarding the API key?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Update 2.5’ is closed to new replies.