I originally couldn’t get this to work.
But after reading all the posts and following a few of the changes to the .php file, it works.
The only item I cannot get to work is the forecast.
No matter what I try it just doesn’t show. whether using shortcode or widget.
It doesn’t appear that you respond very often, but maybe you will read this and give me a hand.
Thanks
Larry
Dear sirs
I’m using your ICIT weather widget in a site for almost a year, and it always worked well (now I’m using v.2.5.2).
But a few days ago it stopped working, with the message “An error has occurred with the ICIT Weather Widget, if the issue persists through refreshing please contact the site administrator.”
You can look it here: https://www.insardinia.ch/en/property/wonderful-villa-with-swimming-pool-in-cala-granu-porto-cervo/
I added a few rows in PHP code in order to print the URL I was calling and the server response (that is empty).
But if I open the same URL in a browser page the response is correct. I contacted the OpenWeather support and they told me that the request is well formatted and works well.
I am using the plugin in my local development environment too, and there all is working fine.
Could you please help me in finding the problem?
I can add debug lines in PHP code to print variables and arrays values, if you need them.
Thank you very much for your help
Riccardo
Hi
I setup widget and create account on openweathermap.org.
I copy generated API key from https://home.openweathermap.org/api_keys page
and past in widget settings.
After save I see this message:
===========
An error has occurred with the ICIT Weather Widget, if the issue persists through refreshing please contact the site administrator.
===========
Country: Ru
City: Moscow (ID: 524901)
Please help.
]]>I think there are a couple of issues with the shortcode part of the plugin. I attempted to swap out the widget for just a simple shortcode, and a few things broke in the transition. Notably, I could not get it to load, kept returning the ‘keep refreshing’ error message. I believe I figured out the reason for this issue, after doing some digging.
On lines 175 and 182, the same line of code reads:
$results = icit_fetch_open_weather( $appid, $city, $country, $display );
But, according to the function in the helper class, the last parameter should be $breakdown
, and not $display
.
Line 9 of /includes/helpers.php
reads:
function icit_fetch_open_weather( $appid, $city = 'liverpool', $country = 'uk', $extended = false ) {
And, I’m pretty sure, $extended
is supposed to be $breakdown
, since it was never passing a simple boolean false, but ‘none’ which should be only for the CSS.
On a different note, I simplified, and extended the parameters able to be passed in the shortcode by changing a few lines of code in icit-weather-widget.php. Lines 103 – 110 read test individual shortcode atts to see if they read false and then set them appropriately to ‘false’.
I simplified the code to run a foreach loop on the defaults, tested if they were boolean by default, and if so, applied a filter_var on the current attribute to verify it is indeed boolean, and, if not, doesn’t re-set the attribute.
foreach( $this->defaults as $key => $default ) {
if ( is_bool( $default ) && !is_null( filter_var( $attributes[$key], FILTER_VALIDATE_BOOLEAN ) ) )
$attributes[$key] = filter_var( $attributes[$key], FILTER_VALIDATE_BOOLEAN );
}
This worked for me, and extended the boolean variables in the shortcode.
]]>Hi! I would like to show the weather of a concrete position which is not exactly a city. Is it possible?
It would be nice to be able to add the exact longitude and latitude. If possible, how should I do it?
Thanks in advanced.
]]>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
Hello,
We want to translate your plugin into Spanish and German, but we detected that the domains aren’t loaded correctly (https://translate.www.ads-software.com/projects/wp-plugins/interconnect-it-weather-widget)
We did the changes in order to fix it and we’d like to contribute with the language files and
Please, let us know how we could proceed.
Regards
]]>Hello, I love this weather widget.
However starting today the widget is giving an error instead of displaying the weather.
City code: 4273837
I also tried: Kansas City, MO
If I set it to a different city, e.g. Denver, CO then it works fine
Thanks for your help,
Mark
Hello there, how are you?
Nice work! Could you tell me which is the shortcode for only show 1 forecast or 2? Or may be you can guide me to modify that?
Thanks
https://www.ads-software.com/plugins/interconnect-it-weather-widget/
]]>Hello guys
Congratulations on your plug in … exactly what I was searching for.
Just a quick question. Wanted to set up a revolution slider with 2 slides, in each slide we have the weather for one city, this way the slides loop automatically.
Problem is that only the first slide shows up the weather, individually the code works, when I put in rev slider, only the code in first slider shows up the weather.
[icit_weather city=”Lisbon”]
[icit_weather city=”Porto”]
Any idea on what I am doing wrong?
Thanks in advance for the help
https://www.ads-software.com/plugins/interconnect-it-weather-widget/
]]>I would like to make them smaller when I use shortcodes. I would like to put some in the same line. And I know someone did it. But I can’t find the way. Please, if anyone can help…
https://www.ads-software.com/plugins/interconnect-it-weather-widget/
]]>Hi
When does this plugin change from day to night? At the moment it’s 18:00 and widget is set to night .. in the morning it shows night schema untill 10:00AM
Can we change this?
https://www.ads-software.com/plugins/interconnect-it-weather-widget/
]]>Hi
Where can i set smaller gap between Temperature and icon? ther’s no need for so much space
Thank you
https://www.ads-software.com/plugins/interconnect-it-weather-widget/
]]>Still no fix for having multiple shortcodes for different locations on the same page?
https://www.ads-software.com/plugins/interconnect-it-weather-widget/
]]>The plugin randomly crashes with a generic message “an error with the widget has occurred. if it continues after refreshing, please contact your site administrator” or something like that.
If I login and make a change in the widget and save it, everything is OK. But then i have to go back and revert to my original settings and after a week or so it happens again.
What causes this?
https://www.ads-software.com/plugins/interconnect-it-weather-widget/
]]>I have having difficulty getting the correct weather to display. I live in the California desert near Palm Springs. The widget is returning a temperature 20 degrees below actual (68 instead of 88). I have attempted different City codes in my vicinity and while the temperature changes a few degrees, it is still not reflecting the correct temperature.
Can you help/
https://www.ads-software.com/plugins/interconnect-it-weather-widget/
]]>Hi. I just checked my feed: https://thecommonsgj.org/info/ then I checked Weather.com for the same city. My feed says 38F, Weather.com says 45 with a low of 41… why the discrepancy? How can I fix this?
https://www.ads-software.com/plugins/interconnect-it-weather-widget/
]]>Hello,
First of all, thanks for great plugin, it’s clean and easy to customize ??
Here’s my problem:
I’d like to have a weather forecast for two cities on my website. I placed two widgets for each city by shortcodes in visual editor. But each of them is showing a forecast only for one city (which was selected only for FIRST widget). For example, if in first shortcode I place a weather for Rome, and in the second one – for Milan – the two of them are showing forecast for Rome. If I place Milan in the first one, and Rome in the second one, it only shows Milan (two of them are visible, but they’re showing a weather only for first city).
for example:
[icit_weather city=”3173435″ country=”IT” celsius=”true” breakdown=”false” display=”bottom” credit=”false”]
[icit_weather city=”3169070″ country=”IT” celsius=”true” breakdown=”false” display=”bottom” credit=”false”]
which generates:
https://imgur.com/8pCaanr
Why ? ??
Thanks in advance, maybe i’m missing something obvious
https://www.ads-software.com/plugins/interconnect-it-weather-widget/
]]>When I checked my website today, the weather wasn’t displaying in the box (though it had usually worked), so I updated the plugin. Now the weather widget doesn’t show up at all. It gives this message: “An error has occurred with the ICIT Weather Widget, check your settings to make sure the city you are searching for exists.”
My shortcode looks like this:
[icit_weather city=”Saint Charles” country=”US” celsius=”false” breakdown=”true” display=”bottom” style=”1″ primary_day=”#055B1A” primary_night=”#055B1A” secondary_day=”#FFFFFF” secondary_night=”#FFFFFF” credit=”true”]
I tried using my city’s ID like this–city=”4406831″–but it didn’t fix anything.
https://www.ads-software.com/plugins/interconnect-it-weather-widget/
]]>I have to say that I am very disappointed, when a plug-in author is changing the way that there are styling the plugin.
I had made some slight changes to the styling of the plugin so that it was fitting in with the rest of my theme. But now I can start all over again, wasted time!
I really like your plug-in, but why do you put your CSS inside your PHP file? I know I can opt for not having the CSS show, but still you have it inline and loading everytime I load the widget.
Please – just for another time, CSS separate from PHP.
https://www.ads-software.com/plugins/interconnect-it-weather-widget/
]]>I have customised the look of the plugin to fit in with a website I manage. One issue I came across was getting the words for condition, humidity and wind-condition to always fit on one line and not wrap within the main div.
Through some custom CSS I’ve managed to fix this but keep getting another problem, namely that, depending on the particular weather conditions, the weather-icon div creeps up and overlaps the cond and break divs.
This is because <div class=”weather-icon”> on line 201 of icit-weather-widget.php is declared before <div class=”break”>, yet cond and break should sit side-by-side and always above weather-icon (and they are both set max-width:50% and float:left to achieve this).
I’ve fixed this by moving lines 201-206 and re-inserting them after the <div class=”break”> code (lines 207-216).
I think this is a valid modification – is it? – and maybe a suggestion you might like to consider for a future update. ??
https://www.ads-software.com/plugins/interconnect-it-weather-widget/
]]>Hi!
I’ve noticed error – cloudy weather isn’t displaying cloud sign. Other seem to be working (e.g. cloud with sun from behind).
Any advice?
Thanks in advance.
https://www.ads-software.com/plugins/interconnect-it-weather-widget/
]]>I installed this plugin on a site a week or so back but I am getting regular ‘crashes’ where the plugin stops and displays this message:
Warning: Invalid argument supplied for foreach() in /www/sites/fd7/491/www.henleyherald.com/web/wp-content/plugins/interconnect-it-weather-widget/includes/helpers.php on line 66
Parts of today’s weather are usually displayed, sometimes all of it, but the 3 day forecast is not.
Some time later the plugin starts working again.
I guess this happens because the link to the OpenWeatherMap API is down?
1. Is this a common occurrence?
2. Is there anyway to stop it happening?
3. Is there any debug / analysis / checks I can do to verify if the link to the API is the problem?
This is my shortcode:`
[icit_weather city=”Henley on Thames” country=”UK” celsius=”true” breakdown=”true” display=”extended” credit=”false” background_day=”#e0e0e0″ background_night=”#e0e0e0″ ]`
https://www.ads-software.com/plugins/interconnect-it-weather-widget/
]]>I installed the plugin today for the first time. In looking to make some style changes I looked at weather_widget.css
The first two lines are blank then followed by
.weather-wrapper { border: solid 2px #ADC0CF;
.weather-wrapper .weather-icon { margin: 0 auto; }
– the first line is missing a closing bracket.
Then at the end of the file there is a stray
</style>
Just FYI. ??
https://www.ads-software.com/plugins/interconnect-it-weather-widget/
]]>Do I have to modify the weather_widget.css in order to modify the styling? Would it be erased in the next widget update?
https://www.ads-software.com/plugins/interconnect-it-weather-widget/
]]>Hello,
I just wonder if I can have a horizontal display which means weather forecast comes to the right side of current weather.
I am trying to modify some codes in php files(since I know a little bit of CSS and PHP), but couldn’t figure it out yet.
Can I get some hint for that? It would be greatly appreciated!
https://www.ads-software.com/plugins/interconnect-it-weather-widget/
]]>Hi, finally I found a weather widget that I like but no shortcode?
I need to put this on top of my page.
Thanks in advanced.
https://www.ads-software.com/plugins/interconnect-it-weather-widget/
]]>WARNING: file_get_contents was found in the file helpers.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls.
https://www.ads-software.com/plugins/interconnect-it-weather-widget/
]]>In this new version icons day/night doesn’t work at all.
https://www.ads-software.com/plugins/interconnect-it-weather-widget/
]]>When you enter the wrong combination of country / city the widget displays information for the country but also the name of the city accompanied the country.
https://www.ads-software.com/plugins/interconnect-it-weather-widget/
]]>