Released Simple Location 4.1.3. This fixes an issue raised where the Airport Weather Widget only accepted 3 letter airport codes, not 4. Now it accepts both, as I supported both in other places. I also added additional error handling to support this. At the same time, I replaced the ‘master’ branch with the ‘trunk’ branch and added deployment code to auto create a Github release going forward.

Retroposting For Fun

Last spring, I started up my own Compass server. Compass is a location tracking server. Later on, I downloaded and extracted location tracking dating back to 2013 from Google Locations.

In honor of that, as my website can now dip into that data, I’ve gone into my photo archive to fill in the gaps on my website.

I set up this website in 2009, though I had sites before…and wasn’t really active on it till 2014. But, every so often, I do a little retroposting…some post throwpost posts, but for me, the difference is that I try to date it back to the day, sometimes the minute.

So this week, I’m revisiting June 2013. I added some photo posts for June 10, 2013. For all of these, the timestamps are based on the timestamp of the photo, and the location is pulled from where Google says I was at that time.  If I keep doing this, I may create the blog I should have been doing all this time.

I even added a map of my location that day, screenshot from Compass…in the future, I may replace it with a dynamically generated map using the data points stored…but as of this post, I have only some of that built.

Because, with the present involving some degree of isolation(future historians, there is a pandemic going on)…why not visit the past…?

Simple Location 4.1.0 Released

Simple Location has been updated. There is more I wanted to do, and will do to finish this, but this is what was released today.

  • AerisWeather is now a provider
  • A lot of code cleanup and documentation
  • Improvements to Airport data, adding of airline data, and additional data sources to avoid on demand download.
  • Standardization and documentation of units
  • Addition of the ability to set a custom icon instead of the location arrow.
  • Lots of improvements if you use Compass to what it can derive
  • Airport location provider now supports IATA and ICAO airport codes.

I did want to add local weather stations and a few other features, but I decided to release and work on those features later.

I’ve decided to bring back gadgetwisdom.com. I contributed to it in prior years, but it has been mostly inactive for a while. I’ll be restarting it to put some of my technical explorations on, away from my personal site. I’ve decided to blog about my recent weather station explorations there and some of my home automation projects.

Simple Location 4.0.6 for WordPress Released

Version 4.0.6 of the Simple Location plugin has been released. A lot of the under-the-hood improvements involved the development environment…working on some automations for code testing that I’m going to add to my other projects.  User facing, the following features are now available

  • HERE Maps is joined by using HERE as a Weather and a Reverse Geocoding provider. While doing this, I discovered they switched to an API key system, and updated the code appropriately. HERE Maps also has a new endpoint, so I switched to that as well.
  • I went through the API documentation for all of the existing weather endpoints and made some changes to standardize the units of measurement being stored.  Did you know a millbar and a hectopascal are essentially the same thing?
  • I added support for the Met Office, which offers several hundred stations in the UK. Like the US National Weather Service, it provides the closest one, and if there isn’t close, it returns nothing. Working on another station-based weather provider interested me in trying to add better support for personal weather stations.
  • If you have WP_DEBUG enabled, a new tab appears on the Location Settings page to allow you to see what data is returned by your provider. This is used mostly by me as the developer, but I’ve kept it in in case someone wants to troubleshoot the information they are getting.

 

Thinking About Weather

Much to my annoyance, at the end of March, Dark Sky announced it was now part of Apple and was immediately shutting down its Android app and would be shutting down its public API at the end of 2021. So, Dark Sky, my favorite weather service, is going to be dead to me.

However, this is not the first time an API has shut down on me. I created a WordPress plugin called Simple Location. It uses map APIs to show maps of location, reverse geocoding APIs to turn coordinates into location data, and of course, Weather APIs to get the weather for a location at the time of a post.

I like adding weather to my posts, and I maintain my own weather stations at two locations. So, I went through all of the Weather API I have integrated  to note some of the pros and cons.

  • HERE – The newest provider I’ve added. It returns some info none of the other providers do: Descriptor values for air, sky; a textual description of the air, temperature, and precipitation; Snow cover as well as amount that has fallen; wind speed on the Beaufort scale; UV index; Barometric trend And their free tier offers 250,000 transactions per month. Does not offer historical data.
  • National Weather Service – No API key or limits as government data. Doesn’t keep more than a few days of historic data. Good general data. You are also limited to NWS Observation and forecast stations.
  • OpenWeatherMap – The free tier limits you to 1000 calls per day, and a limited subset of their APIs. However, in response to the Dark Sky situation, they just added a new API endpoint that is included, which mirrors the Dark Sky API offering. It offers the current weather, hourly forecast for 48 hours, daily forecast for 7 days, and historical weather data for 5 previous days. It also offers a Stations API for retrieving data from a user supplied weather station. UV Index is available, but that is a separate API call.  They’ll also sell you 40 years worth of weather data for a single location for 10 cents.
  • Weatherbit – Daily forecasts and current weather data is free for non-commercial use. Offers UV Index and Air Quality Index.  Allows for historical data.
  • WeatherStack – Free tier limits you to 1000 calls per month, so this is the one I’m least likely to use. Does include historical data.
  • Met Office UK – The UK’s service has the most basic of all the data provided. Behind a free API key, you can get information for several hundred stations in the UK. However, the Data Point API is set to be replaced in future, but the replacement does not currently have an observation API, only a forecast one.
  • Accuweather – Free tier limited to 50 calls per day, and referred to as a trial. And you cannot lookup by location, you need to query for a location key…which means if you look it up every time, that’s only 25 calls per day. Didn’t even bother to implement this.
  • Weather Channel – only opened its API for a Call for Code challenge period.
  • Weather Underground – While Weather Underground shut its API down, it does still offer one for Personal Weather Station contributors. This appeals to me. I still send my weather data to Weather Underground…as well as 5 other places. But I would only be able to search current conditions for Personal Weather Stations.
  • AerisWeather – Same as Weather Underground, free access to their APIs and weather reporting stations if you contribute. Might implement this in future.

Anyone have any other weather sources for current conditions?