weather widget to use latitude / longitude from post

Posted in: Newspaper
Post count: 13

I’m using a plugin called Geo Mashup that helps me display google maps location of my site posts. Each post has a lat / long location saved which I can access. I would like to see if I can modify Newspaper’s Weather Widget https://forum.tagdiv.com/weather-widget-newsmag/ to use latitude / longitude instead of the city name. The openweathermap api accepts latitude / longitude https://openweathermap.org/current

how should I go about this? could you tell me where the relevant files might be?

Post count: 20688

Hi,

You could modify the weather widget code and give it a try, the file is here
http://prntscr.com/nsobxc
I can’t say I know how some thing like that would be achieved, or if it is possible in the first place. Also the file is in the composer plugin, so after each update the modification will have to be made again.

Maybe consider using a weather plugin that may have such options by default. Some example you could try – https://85ideas.com/plugins/best-wordpress-weather-plugins/
https://code.tutsplus.com/tutorials/7-best-weather-wordpress-widgets-plugins–cms-28813

Thanks

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.