Energy monitoring with local API access
Your energy. Your data. Your control.
Retrieve real-time measurements directly from compatible Eyedro devices on your local network. Build your own dashboards, store your own data or use MyEyedro Cloud — the choice is yours.
Generation 6 and newer devices support local API access without a connection to MyEyedro Cloud.
Direct device access
curl http://192.168.1.100/getdata
{
"data": [
[988, 11665, 11800, 1360],
[989, 11665, 4854, 560]
]
} Own your energy data
Direct network access
Your own storage
Local + cloud
One device. Two ways to work with your data
Local API
Eyedro device → Local network → Your application
Poll measurements directly and implement your own storage, visualizations and automation.
MyEyedro Cloud
Eyedro device → Internet → MyEyedro Cloud
Access historical data, reports and energy analytics remotely. Nearly all core monitoring features are included in Standard; optional paid features are available.
Local API compatibility by generation
Local-first flexibility
Local API access does not require a connection to the MyEyedro Cloud server. Once the device is reachable on your network, use its local IP address.
Default HTTP port: 80
Backward-compatible port: 8080
http://192.168.1.100/getdata
http://192.168.1.100:8080/getdata Established local access
For supported earlier-generation devices, an initial connection to the MyEyedro Cloud server enables the local API on your network. After that initial connection, local data access can be used independently of the cloud connection, subject to device and firmware behavior.
Typical LAN port: 8080
http://192.168.1.100:8080/getdata Build the integration that works for you
Home automation
Custom dashboards
Industrial integration
Research and testing
Local data logging
Building management
Get started with the /getdata API
Connect your computer to a network that can reach your Eyedro device. Find its IP address in your router or DHCP leases, then use the appropriate port for your generation. Replace the example IP in every snippet with your device address.
Send an HTTP GET request to /getdata. The response represents instantaneous measurements, not a historical database.
GET /getdata HTTP/1.1
Host: 192.168.1.100 Decode electricity measurements
01 / Raw JSON
{
"data": [
[988, 11665, 11800, 1360]
]
} 02 / Decoded values
Index 0 · Power factor
Index 1 · Voltage
Index 2 · Current
Index 3 · Real power
Know your device response
Four fields: Common electricity measurement format shown above.
Five fields: Some legacy electricity devices include an additional reserved field at index 4. Ignore it where documented.
Preserve signed readings and consult the product API reference before interpreting or summing sensor rows. Flow and temperature devices use different formats.
API code examples
cURL
#!/bin/sh
# Gen6+: default HTTP port 80. Older supported models: :8080.
curl --fail --max-time 5 http://192.168.1.100/getdata
Python
import json
from urllib.request import urlopen
URL = "http://192.168.1.100/getdata"
with urlopen(URL, timeout=5) as response:
payload = json.load(response)
for index, sensor in enumerate(payload["data"], 1):
if len(sensor) not in (4, 5):
raise ValueError("Unexpected electricity sensor format")
pf, voltage, current, watts = sensor[:4]
print(f"Sensor {index}: {voltage/100:.2f} V, "
f"{current/1000:.3f} A, {watts} W, PF={pf/1000:.3f}")
JavaScript / Node.js
// Node.js 18+; run on a computer on the device LAN.
const url = "http://192.168.1.100/getdata";
const response = await fetch(url, {
signal: AbortSignal.timeout(5000)
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const payload = await response.json();
for (const [i, sensor] of payload.data.entries()) {
if (![4, 5].includes(sensor.length))
throw new Error("Unexpected electricity sensor format");
const [pf, v, a, w] = sensor;
console.log({sensor: i + 1, powerFactor: pf / 1000,
voltage: v / 100, current: a / 1000, watts: w});
}
PowerShell
$url = "http://192.168.1.100/getdata"
$result = Invoke-RestMethod -Uri $url -Method Get -TimeoutSec 5
$i = 0
foreach ($sensor in $result.data) {
$i++
if ($sensor.Count -notin 4,5) { throw "Unexpected sensor format" }
[PSCustomObject]@{
Sensor = $i
PowerFactor = $sensor[0] / 1000
Voltage = $sensor[1] / 100
Current = $sensor[2] / 1000
Watts = $sensor[3]
}
}
C# / .NET
// .NET 6+ console application
using System;
using System.Net.Http;
using System.Text.Json;
using var client = new HttpClient { Timeout = TimeSpan.FromSeconds(5) };
var json = await client.GetStringAsync("http://192.168.1.100/getdata");
using var doc = JsonDocument.Parse(json);
int i = 0;
foreach (var sensor in doc.RootElement.GetProperty("data").EnumerateArray())
{
if (sensor.GetArrayLength() is not (4 or 5))
throw new FormatException("Unexpected sensor format");
Console.WriteLine($"Sensor {++i}: {sensor[3].GetInt32()} W, " +
$"{sensor[1].GetDouble()/100:F2} V, " +
$"{sensor[2].GetDouble()/1000:F3} A, PF={sensor[0].GetDouble()/1000:F3}");
}
Build reliable local data collection
Poll responsibly
Handle interruptions
Protect local access
Explore compatible monitoring hardware
Home Energy Monitor
Whole-home monitoring
Solar and grid measurements
Custom residential dashboards
3-Phase Energy Meter
Facility and equipment monitoring
Industrial data collection
Custom energy analytics