HTTP-Client Plugin

The HTTP-Client plugin is designed to read HTTP information from devices and resources on the local network and the Internet.

Plugin installation

The plugin installation procedure is shown here

Plugin setup

Configuring the plugin is not required.

Channels configuration

Press the button to call the channel list and select “Channel List”:

Press the “+” button
Channel group row will be added.

Note:
The HTTP plugin allows one request to get multiple values. For this, the Channel Group is first formed. The line of a group of channels is marked with the icon shown in the figure below:

In the properties of the channel group you need to fill in the following fields:

1. URL – The line with the address of the request.
For example, to get the temperature from the OpenWeather site, this line could be like this:
http://api.openweathermap.org/data/2.5/weather q=Moscow,ru&units=metric&appid=2e8eed7ebf9be5108c6fc187feb0a
2. Request method. Choose from the list. In most cases, the GET method is used.
3. Interval. The frequency of polling in seconds.
4. The response code. In most cases – 200.
5. Request header. In most cases, no editing is required.

More details about HTTP can be read in Wiki.

Add Chanel

To add a channel, click on the Channel Groups icon.
A new line will be added for the channel. Fill in the following fields in the channel properties window:

For the JSON:

1. Device. Select from the list of available devices.
2. Parser – JSON
3. Extract data.
For example, get the temperature:
data.main.temp
4. Convert to number.

The most correct and simple option is JSON. If you can receive data from the requested resource in the form of JSON files, select this option.

For the TEXT:

1. Device. Select from the list of available devices.
2. Parser – TEXT
3. Regular expression. For example, get the temperature:
{“temperature”:{“air”:(.*)},”icon”
For the formation of a regular expression, you can use the site regex101.com
4. Convert to number.

Thus, using one HTTP plugin, you can parse several resources and form several channels from each resource simultaneously:

Close Menu