Local Web Server
Mains-powered Aqua-Scope WiFi devices feature an integrated HTTP web server that is directly accessible on the local network. It allows you to query sensor data, change configurations, control valves, and perform diagnostics — without cloud, without app, directly via browser or HTTP client.
Prerequisites
- WiFi device with mains power (not available on battery power)
- Device and client on the same local network
Enabling the Web Server
Factory Default State
The web server is always active in factory default mode. During initial setup, it can be configured to remain permanently enabled.
Later via the App
- Open the Aqua-Scope App
- Select the device
- Navigate to Configuration → Communication Options
- Enable Local Web Server
Access
The web server is accessible via the device's local IP address or via mDNS:
http://<IP-address>(e.g.,http://192.168.1.42)http://scope.local(via mDNS, if only one device is on the network)
Pages and Endpoints
Web Interface (Browser)
| URL | Description |
|---|---|
/ | Home page — shows the home page (when WiFi is configured) or the setup page (in factory default state) |
/home | Home page with device overview and sensor data |
/setup | WiFi configuration page (SSID, password, email, communication options) |
/command | Shell console for device diagnostics |
Data API (JSON)
| URL | Method | Description |
|---|---|---|
/data | GET | All current sensor values as JSON including device ID (eid) |
/json | GET | Sensor data in JSON format |
/cdata.js | GET | Sensor data as JavaScript object (for web interface) |
/conn | GET | Connection status as JSON |
Example: Retrieving Sensor Data
curl http://192.168.1.42/data
{
"temperature": "22.5",
"pressure": "3200",
"uptime": "86400",
"battery": "3.3",
"eid": "12345678"
}
The available fields vary depending on the device type.
Valve Control
| URL | Method | Description |
|---|---|---|
/control?valve=<value>&token=<token> | GET | Control valve |
Parameters:
| Parameter | Description |
|---|---|
valve | 0 or off = close, 100 or on = open |
token | Security token (must match the token stored in the configuration) |
Examples:
# Close valve
curl "http://192.168.1.42/control?valve=off&token=my-token"
# Open valve
curl "http://192.168.1.42/control?valve=on&token=my-token"
# Open valve with numeric value
curl "http://192.168.1.42/control?valve=100&token=my-token"
Valve control requires a valid token. Without the correct token, the command is rejected. The token is set during the webhook configuration (see JSON Webhook).
Configuration
| URL | Method | Description |
|---|---|---|
/config | GET/POST | Read and modify device configuration |
The following settings can be changed via this endpoint:
| Parameter | Field | Description |
|---|---|---|
ssi | WiFi SSID | WiFi network name |
wpa | WiFi Password | WPA2 key |
ema | Registration email | |
mqt | MQTT | Enable MQTT service |
mse | MQTT Server | Broker hostname |
mpo | MQTT Port | Broker port |
mus | MQTT Login | Username |
mpa | MQTT Password | Password |
mdi | MQTT Discovery | Enable Home Assistant auto-discovery |
mtl | MQTT TLS | Enable TLS encryption |
jen | JSON Webhook | Enable webhook service |
jur | JSON URL | Webhook target URL |
jto | JSON Token | Security token |
jex | JSON XXTEA | Enable XXTEA encryption |
jra | JSON Raw | Enable raw data transmission |
lws | Local Web Server | Keep web server enabled |
ble | Bluetooth | Enable Bluetooth |
mbi | Modbus IP | Enable Modbus TCP/IP |
fac | Factory Reset | Set to 1 for factory reset |
Shell / Diagnostics
| URL | Method | Description |
|---|---|---|
/shell | POST | Execute shell command (field: shell) |
/console | GET | Retrieve console log |
The shell accepts AT commands and diagnostic commands via HTTP POST.
# Query firmware version
curl -X POST -d "shell=AT+VER=?" http://192.168.1.42/shell
# Retrieve console log
curl http://192.168.1.42/console
Integration into Automation
The local web server is suitable for direct integration into smart home systems without cloud dependency:
- Home Assistant: Via the REST integration,
/dataand/controlcan be connected - Node-RED: HTTP request nodes for sensor queries and valve control
- Shell scripts: Simple querying and control via
curl
Supported Devices
The local web server is available on all WiFi devices with mains power: