Last Updated
MapIn new features, I added a location provider which will, instead of looking up the browser location, will use the location in your user profile. I also added an endpoint to update the user location so I can set up a macro on my phone to trigger an update whenever I want. Finally, if you are logged in, you can now see location on private posts.
Simple Location Version 3.5.0 Released
The new version completely redesigns the interface inside the post editor to work in both classic and Gutenberg. It doesn’t integrate with Gutenberg in any way. It relies on Gutenberg’s compatibility functionality. Because of that, the box with the Gutenberg settings is now in the sidebar, rather than below, and expands to show the various options.
The interfaces with weather APIs like DarkSky and OpenWeatherMap were reorganized to improve the quality of the return data. And all data will be stored going forward in international units. While I am a Fahrenheit and Feet user, most of the world isn’t. So everything will be converted on the fly for display for those of us in the imperial system, making it much less fragile. Flip a setting and it changes.
Simple Location uses the WordPress REST API, and there are new endpoints for frontend use. The geocoding endpoint now has an option to return the weather as part of the lookup instead of requiring a second request. New abilities to lookup by airport code are also built in, mostly for the current conditions widgets. This will be fully functional in a future version.
For those of you worried about hitting or being charged for API usage on commercial sites, I added a simple weather provider courtesy of the U.S. National Weather Service. This will only work with locations inside the United States. It finds the nearest NWS Weather Station to you and uses the current conditions from that location.
There is a new Weather Station widget, split from the other Weather Widget, which allows you to display from a specific station.
There are a lot of good features here, but there will be more in future. So try it out.
- Indigenous for Android can add Location from a phone, and my code does reverse geocoding to look up the location name and weather
- On the Browser, HTML5 geolocation is used to get the location.
But the problem is that HTML5 geolocation is often wrong, and for automatic posts, there is no way but IP address location, also often wrong, to get accurate data.
The easiest way to solve is for me to run a server to store my location and query it, but I’m not ready to do that. So, I wrote a quick hack to interface with my home automation system, which does geofencing on my location. But its not ideal.
So, I have two efforts I want to do:
- I’m going to add a webhook so my site can receive updates from my phone and save them…so I can press a button on my phone and send the info while I’m writing, using a simple web query. I have an HTTP shortcut app for this.
- Look into adding a dummy location provider that always returns something.
I wrote into my site the ability to query any API for the location. Anyone have one I can use?
I previously added /kind/photo/2018/12 – Date(year, month, and day) archives for my post kinds. As well as the ability to pull a tag archive of some, such as.. /kind/photo/parkeologychallenge .
Available on all Post Kinds enabled sites right now.
There were 46 rides running at Walt Disney World. Was it possible to hit them all — Epcot, Hollywood Studios, Animal Kingdom and the juggernaut Magic Kingdom — in a single day?