Network sub-actions¶
Call a web address¶
Visits a web address and saves the answer. Use it to call other websites or tools, like fetching a joke or poking a smart device.
| Setting | What to put in |
|---|---|
| Method | GET asks for information. POST sends information. PUT, PATCH and DELETE change or remove things on the other side. HEAD asks only for the headline details. Options: GET, POST, PUT, PATCH, DELETE, HEAD. Starts as: GET. |
| URL | The full web address, starting with http:// or https://, like "https://example.com/api". |
| Headers | Extra details sent along, one per line as "Name: value". Most people can leave this empty. |
| Body | The data to send with a POST, PUT or PATCH. Leave empty if you send nothing. |
| Content type | What kind of data the body is. application/json is right for JSON. Only used when there is a body. Starts as: application/json. |
| Timeout (seconds) | How many seconds to wait for an answer before giving up. The most is 30. Starts as: 30. |
| Save the reply in variable | The name of the variable that will hold the answer. Use it later as %httpResponse% (or the name you type). Starts as: httpResponse. |
| Parse result as JSON | Tick if the answer is JSON data. Each value in it also gets its own variable, like %httpResponse.name%. Starts as: false. |
Variables it adds
| Variable | What it holds |
|---|---|
%httpResponse% |
The answer text (or the name you chose in the box above) |
%httpStatusCode% |
The result number: 200 means it worked, 404 means not found |
%httpSuccess% |
True if the request worked |
%httpHeaders% |
The extra details that came back |
%httpError% |
What went wrong, if the request failed or timed out |
Type id: core.httpRequest
Send a message on your network¶
Sends a short text message to other devices on your network, or to this computer, with no reply expected. Handy for small gadgets or other apps that listen.
| Setting | What to put in |
|---|---|
| UDP port | The door number the other app listens on, from 1 to 65535. Check that app's settings. Starts as: 6669. |
| Message | The text to send. |
| Address | Who to send it to. 255.255.255.255 shouts to every device on your home network. 127.0.0.1 means this computer. You can also type one device's address. Starts as: 255.255.255.255. |
Variables it adds
| Variable | What it holds |
|---|---|
%udpBytesSent% |
How many bytes were sent |
Type id: core.udpBroadcast