WebThings Gateway for Wireless Routers

Wireless Routers

In April we announced that the Mozilla IoT team had been working on evolving WebThings Gateway into a full software distribution for consumer wireless routers.

Today, with the 0.9 release, we’re happy to announce the availability of the first experimental builds for our first target router hardware, the Turris Omnia.

Turris Omnia wireless router

Turris Omnia wireless router. Source: turris.cz

These builds are based on the open source OpenWrt operating system. They feature a new first-time setup experience which enables you to configure the gateway as a router and Wi-Fi access point itself, rather than connecting to an existing Wi-Fi network.

Router first time setup

Router first time setup

So far, these experimental builds only offer extremely basic router configuration and are not ready to replace your existing wireless router. This is just our first step along the path to creating a full software distribution for wireless routers.

Router network settings

Router network settings

We’re planning to add support for other wireless routers and router developer boards in the near future. We want to ensure that the user community can access a range of affordable developer hardware.

Raspberry Pi 4

As well as these new OpenWrt builds for routers, we will continue to support the existing Raspbian-based builds for the Raspberry Pi. In fact, the 0.9 release is also the first version of WebThings Gateway to support the new Raspberry Pi 4. You can now find a handy download link on the Raspberry Pi website.

Raspberry Pi 4 Model B

Raspberry Pi 4 Model B. Source: raspberrypi.org

Notifier Add-ons

Another feature landing in the 0.9 release is a new type of add-on called notifier add-ons.

Notifier Add-ons

Notifier Add-ons

In previous versions of the gateway, the only way you could be notified of events was via browser push notifications. Unfortunately, this is not supported by all browsers, nor is it always the most convenient notification mechanism for users.

A workaround was available by creating add-ons with basic “send notification” actions to implement different types of notifications. However, these required the user to add “things” to their gateway which didn’t represent actual devices and actions had to be hard-coded in the add-on’s configuration.

To remedy this, we have introduced notifier add-ons. Essentially, a notifier creates a set of “outlets”, each of which can be used as an output for a rule. For example, you can now set up a rule to send you an SMS or an email when motion is detected in your home. Notifiers can be configured with a title, a message and a priority level. This allows users to be reached where and how they want, with a message and priority that makes sense to them.

Rule with email notification

Rule with email notification

API Changes

For developers, the 0.9 release of the WebThings Gateway and 0.12 release of the WebThings Framework libraries also bring some small changes to Thing Descriptions. This will bring us more in line with the latest W3C drafts.

One small difference to be aware of is that “name” is now called “title”. There are also some experimental new base, security and securityDefinitions properties of the Thing Descriptions exposed by the gateway, which are still under active discussion at the W3C.

Give it a try!

We invite you to download the new WebThings Gateway 0.9 and continue to build your own web things with the latest WebThings Framework libraries. If you already have WebThings Gateway installed on a Raspberry Pi, it should update itself automatically.

As always, we welcome your feedback on Discourse. Please submit issues and pull requests on GitHub.

About Ben Francis

Full time UK-based Mozillian, working on the Web of Things.

More articles by Ben Francis…


5 comments

  1. frenchfaso

    It would be awesome to be able to configure the gateway as a router/accesspoint also in the raspbian version!
    Please consider this feature for the next Raspbian based release.
    Great project, thanks for the hard work!

    July 25th, 2019 at 11:07

  2. Starbeamrainbowlabs

    Hey, this looks really cool!

    I’d definitely install an up-to-date router distro provided by Mozilla.

    July 25th, 2019 at 15:33

  3. Joey

    Nice !
    And my Open C smartphone is still waiting for a Firefox OS update… Hooo, Mozilla has abandoned this project, it’s sad :'(
    I think I’ll never bought something else than this smartphone… And today, I think it’s already too much :/
    Thx to you !

    August 1st, 2019 at 11:50

  4. dwoody

    Mozilla IOT is my favorite. Works when web isn’t available. I do wish however someone would look into WYSE support. Good products, amazing price. But their ifttt solution sucks. Mozilla could fix all that.

    August 2nd, 2019 at 18:13

  5. patchedsoul

    I’m puzzled by this not using Rust at its core?? Being such a high-risk device, isn’t this what Rust was created for?

    August 20th, 2019 at 06:33

Comments are closed for this article.