Weather Station Hardware > Davis Instruments Weather Stations
WXLink: A Lightweight WordPress Plugin for Displaying Davis WeatherLink Data
wx2000:
Hi everyone — I’m not a developer by trade, just a weather and AV enthusiast who needed a simple way to display data from my Davis WeatherLink station on a WordPress site. Not finding exactly what I needed, I built a plugin to solve that and thought I'd share it with all of you--for free.
What it does:
WXLink connects to the WeatherLink v2 API and displays key station data—temperature, highs/lows, wind, gusts, humidity, rain totals, pressure, and more—on your WordPress site in a clean, responsive layout. It uses PHP, caching, and no heavy dependencies. It’s free, has no tracking or branding—not even a header. Just your data on your site, with a flexible layout and a few settings to help you style and install it quickly.
Why I made it:
Many station owners just want a simple, reliable way to get back to the basics: observing and sharing their weather data with their community. This free tool helps do exactly that—display your data on your own website, without relying on third-party widgets that may not match your site’s look or feel.
Link to the Plugin & Screenshots/More Info:
https://theavcoach.com/wxlink-plugin/
Enjoy! Hopefully it’s helpful!
JesseLikesWeather:
I don't operate a Davis Weather Station, but I find your plugin quite interesting, nice and simple. Good work, keep it up!
beren:
Cool - will you be keeping this up to date with Wordpress updates? Definitely woudl suggest adding to their pulgin distribution system so that users can see if it is compatible with the next Wordpress release.
beren
wx2000:
Thanks so much — I really appreciate you thinking that highly of the plugin! I’ve definitely considered submitting it to the WordPress plugin repository so others can more easily track compatibility and updates. That said, I’m not a developer by trade, so I’ve been cautious about navigating the official requirements and coding standards just yet.
I do use the plugin myself, so as long as I rely on it, I’ll absolutely be keeping it updated if any WordPress changes ever cause it to stop working. [tup]
beren:
Actually I am software engineer with ~30 years of experience.I have not done WP development for a long time, but I checked out your code. Looks pretty good to me. Some minor formatting issues. Not sure what development environment you are using. I use MS Visual Studio Code with the recommended PHP extensions: PHP Intelephense and PHP Debug. Jetbrains PHP Storm Community is a good one too. Both are free. [tup]
One suggestion would be to look at a plugin from Auttomatic to see how they do things. A good one is the akismet plugin, which is supplied by default in a base Wordpress install. Checkout their header and how they incorporate things like the license information. I don't think you need to break up your plugin into multiple files like they have unless it gets a lot bigger in terms of functionality.
Another suggestion would be to manage your code on github.com so that if problems did arise, uses could post issues or feature suggestions there. Or you could have other "volunteers" help maintain this or extend this.
I have a public Wordpress blog that I'll install this on and see how things go.
beren
Navigation
[0] Message Index
[#] Next page
Go to full version