Mozilla WebThings on Raspberry Pi - Getting Started

Mozilla WebThings on Raspberry Pi - Getting Started

from translator

Mozilla has made a universal hub for smart home devices to link together devices of different vendors and protocols (including Zigbee and Z-Wave), and manage them without using the clouds and from one place. A year ago there was news about the first version, and today I'm posting a translation of the documentation updated the other day, which answers most of the basic questions for the project. I look forward to discussion and exchange of views in the comments.

WebThings Gateway for Raspberry Pi

Mozilla WebThings Gateway is a software for gateways used in smart home systems, which will allow you to directly monitor and control smart devices via the Internet without intermediaries.

What you need

  1. Компьютер Raspberry Pi and power supply (Raspberry Pi 3 requires at least 2A)
  2. microSD card (at least 8 GB, class 10)
  3. USB adapter (see list compatible adapters)

Note: The Raspberry Pi 3 comes with Wi-Fi and Bluetooth. A USB adapter is required to connect devices using protocols like Zigbee and Z-Wave.

1. Download the image

Download the image from the site Mozilla IoT.

2. Sew the image

Flash the image to a microSD card. Exist different ways records. We recommend using Etcher.

Mozilla WebThings on Raspberry Pi - Getting Started

  1. Open Etcher
  2. Insert a memory card into your computer's adapter.
  3. Select image as source
  4. Choose a memory card
  5. Click "Flash!"

When finished, remove the memory card.

3. Raspberry Pi download

Mozilla WebThings on Raspberry Pi - Getting Started

  1. Insert memory card into Raspberry PI
  2. Connect USB adapters if available
  3. Connect power to start download

Note: The first boot of the Raspberry Pi may take 2-3 minutes.

4. Wi-Fi connection

After downloading, the gateway will create an access point “WebThings Gateway XXXX” (where XXXX is the four digits of the Raspberry Pi MAC address). Connect to this hotspot from your computer or smartphone.

Mozilla WebThings on Raspberry Pi - Getting Started

Once connected, you should see the welcome screen of the WebThings gateway, which will then start searching for your home Wi-Fi network.

Mozilla WebThings on Raspberry Pi - Getting Started

Select your home network from the list and enter the password to connect.

Note:

  • If you have connected to the “WebThings Gateway XXXX” hotspot but do not see the welcome screen, try opening the page at 192.168.2.1.
  • Raspberry Pi can also be connected to a network using an Ethernet cable. In this case, it will try to get the network IP address from your router automatically. Then type “http://gateway.local” in your browser to set up the gateway for the first time.
  • If you move the gateway to another location or it loses access to the original network, it will automatically switch to access point mode so that you can connect to it and set up another network.

5. Selecting a subdomain

After connecting the gateway to the network, make sure that your computer or smartphone from which you are setting up is on the same network. After that go togateway.local in the browser.

After that, you will have the option to register a free subdomain to access the gateway outside the local network via secure tunnel from Mozilla.

Mozilla WebThings on Raspberry Pi - Getting Started

Enter your desired subdomain and email address (for future password resets), and click "Create".

Note:

  • You can skip this step and use the gateway completely locally, or set up port forwarding and DNS yourself. However, in this case, if in the future you still decide to use the Mozilla subdomain, the gateway settings will have to be completely reset.
  • If the page at gateway.local does not open, try to find the gateway IP address through your router (look in the list of connected devices for a device like “gateway” or with a MAC address starting with “b8:27:eb”), and try to open the page directly by IP.
  • If gateway.local and http:// do not work, make sure both your computer and Raspbeery Pi are connected to the same network.
  • If you have already registered a subdomain before, enter its name and the email address you used when registering it. The on-screen instructions will appear on how to gain access.

6. Account creation

After registering a subdomain, a page with the next steps to configure the gateway will open. Enter your name, email address and password, and click Next.

Mozilla WebThings on Raspberry Pi - Getting Started

Note: Additional accounts can be created later.

Done!

After that, the “Things” page should open for connecting smart devices to the gateway.

Mozilla WebThings on Raspberry Pi - Getting Started

See WebThings Gateway User Guide for further customization.

Source: habr.com

Add a comment