Open Weather Map QuickApp for Z-Box

Right out-of-the-box, the Zooz Z-Box Hub comes with a pre-configured weather provider, YR Weather, based in Norway. It does a pretty good job for locations in North America, but I’ve found other weather providers with a public API might serve me better–in other words, more accurately describe the weather at my location.

The details…

One of the alternate weather providers I’ve investigated is Open Weather Map. Their Current Weather Data API provides all that is needed to build a QuickApp to be used on the Z-Box Hub. Note that you first need to create an account and obtain an API Key that is used when calling their service to obtain weather data. The free service, shown on the detailed pricing page is sufficient for this QuickApp.

Two ways to install

Simple: Download the .fqa file from the GitHub repository and upload it straight to your Z-Box — no coding required.

Advanced: Grab the Lua source code from the repo if you want to dig in, customize, or modify it for your specific needs.

Configuration

  • Create a QuickApp Variable named APIKey and enter your OpenWeatherMap API key.

Usage:

This QuickApp may be used as the default weather app for your hub by selecting it as the Weather provider on the Devices->Main Devices tab in the hub’s web interface.

That’s it! Hopefully some of you find this useful & you’re welcome to share your stories here. If you run into issues or have feature requests, GitHub Issues is the best place to track them — or just reply here. I reserve the right to accept or reject changes, but you’re free to use this code simply as a starting place for your application.

2 Likes