Problem with the weather widget
-
Hi David,
I have downloaded your app because I couldn’t find a geolocation weather plugin. I am however having trouble getting the widget to show up on my page. I have gotten an openweathermap api and a mapbox api but after entering both of them and adding the widget to my sidebar nothing still shows up.
I have even changed the background colors in the widget thinking maybe that was the issue but nothing.
Am I doing something wrong?
The page I need help with: [log in to see the link]
-
Happy to try to help. Would you be able to provide a list of what the settings in the widget configuration and of the settings in the Location settings page? (Remember to hide the API key as I do not need to see that)
Also, happen to be in the process of working on the plugin and redesigning the weather widget is one of the things on my list. I want to expand it. So it is a good time for me to troubleshoot.
Right now, all it shows is the temperature and a small icon. Not sure if you have any suggestions.
Honestly if its a geolocation weather app it would be the only one that is free that has that functionality on the market I believe. I searched extensively and yours was the only one I found. The one thing that Im not sure is you have this field asking for the posters location so does it look at the users location or the person posting?
I found this project and this simple thing would be exactly what im looking for but im a beginner at wordpress and php and combining this with my wordpress project seemed beyond me. As for the settings here is what I have:Map Provider Mapbox
Reverse Provider OpenSearch (Nominatim via Mapquest)
Gelocation Provider checked, html 5
Default Display for Location Public
Update Author Unchecked
Default Map Width 350
Default Map Height 350
Default Map Zoom 14
Mapbox Api Key (I got a key today, they call them Api tokens)
Mapbox user My mapbox user
MapBox Style nothingAt first i didnt even have this filled I created the MapBox user thinking maybe it was neccesary for the weather widget to work. I still am not sure if this is neccesary (since its still not working).
Weather Settings
Unit of Measure Metric
Weather Provider OpenWeatherMap
OpenWeatherMap API Key My Api key
OpenWeatherMap Station ID BLANKAnd that would be that. Sorry its in this form, this doesnt seem to allow images.
As for the Widget settings I added the widget called Weather (its the only weather widget i have available so im guessing its yours) in between my search and popular list widgets in my primary sidebar and im seeing those 2 and not yours. I checked visibility and the rest and it all seems ok.
I set my user as the Location. Latitude and Longitude are empty
Widget Title icon: I tried without then i picked one at random just to see if anything changed and nothing
Widget Title Link: Weather
Not sure what this is i typed Weather into the fieldWidget Title Style: Style 6
I tried default style and when nothing showed up i tried style 6
Color Options i put in colors to match my web page but i also tried all transparent which is the default option and both times nothing showed up.
The rest of the options I didnt touch apart from checking responsivnes was set as show on all devices and that widget visibility was set to always and it is.
Anyways its a long reply sorry.
My goal is to have a small weather widget in my menu as one of the categories like an icon temperature and maybe the users current location city name.
If you set it to user as the option, you need to set the location for your user under your user profile.
Is there a way for it to use the location of the person viewing the site? Through the html5 geolocation?
At the moment, no. It may be something I would try. There are a few issues though.
1. Your browser prompts every time you do HTML5 Geolocation. So it would do that to all users.
2. Weather APIs have daily limits. If your site is busy, and gets a let of unique visitors, you could hit the limit. I do have caching, but not on an individual location basis like would be needed and everyone’s location, or at least IP address would be unique.
Is that something you think you’d want with those limitations? I can think about it.
I know of the limitations including the fact that Chrome wont allow it if its coming from an http site (it only allows it from an https site) but I would still want it. It being the only weather plugin for wordpress that has this functionality and is free.
If you looked at the project I linked you will see the most asked about functionality was geolocation. The way he solves the Chrome problem is to use a CDN with an https site (I believe Google has it).
I am not sure what the daily limit is for the openweather but I would deal with that bridge when I come to it (either getting a better package or figuring out another solution).
Anyways thank you for your help and I will keep an eye out on the update for this. Your support on this (I read through all the other support items looking for a solution to my problem) is great.
Has this been resolved with subsequent updates?
Hi David,
I had an unusual problem where the weather app seemed to mesh with my Listing widget so I still had the list but the background behind took on the color in the weather widget.
However it is inconsequential as I explained I thought the widget would use html5 to determine the readers location and show weather based on his location. Your app looks for the administrator location and posts it that way.
You can consider it resolved and thanks for the effort and the timely replies.
-
This reply was modified 7 years, 4 months ago by
dino2dy.
Minimal styling is to fit in themes.
As for the frontend HTML5 location….maybe in a future version.
-
This reply was modified 7 years, 4 months ago by
The topic ‘Problem with the weather widget’ is closed to new replies.