LOCAL ACCESS   /   OPEN INTEGRATION

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

HTTP GET   /getdata
curl http://192.168.1.100/getdata

{
  "data": [
    [988, 11665, 11800, 1360],
    [989, 11665, 4854, 560]
  ]
}
Illustrative electricity response. Fields vary by model.

Own your energy data

A local energy monitoring API gives you direct access to measurements, so your collection and analysis workflow need not depend exclusively on a cloud service.

Direct network access

Retrieve instantaneous readings using HTTP and JSON.

Your own storage

Save timestamped measurements to CSV files, databases or your own servers.

Local + cloud

Use local collection alongside MyEyedro Cloud when connected.

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 access has evolved with Eyedro hardware. Select the approach that matches your device generation and network configuration.
GENERATION 6 AND NEWER

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
GENERATION 5 AND EARLIER

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
For legacy models, direct setup-network access may differ from normal LAN operation. Check your product guide for the supported connection method. Not every historical model supports a local API.

Build the integration that works for you

Home automation

Use local measurements as inputs for your own automation workflows.

Custom dashboards

Visualize live electrical demand and historical readings in your own application.

Industrial integration

Feed electrical measurements into custom monitoring and reporting systems.

Research and testing

Collect timestamped measurements for experiments and equipment analysis.

Local data logging

Maintain your own measurement archive with a local computer or server.

Building management

Integrate compatible measurements into your facility data workflows.
These are development use cases, not claims of certified or built-in third-party integrations.

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

Turn raw JSON into engineering units with a simple, model-aware conversion. The example below follows the documented electricity measurement format.

01 / Raw JSON

One illustrative electricity sensor response.
{
  "data": [
    [988, 11665, 11800, 1360]
  ]
}
Each row contains measurements for one reported sensor. The array positions define the meaning of each value.

02 / Decoded values

Index 0 · Power factor

0.988
988 ÷ 1,000 · unitless

Index 1 · Voltage

116.65 V
11,665 ÷ 100

Index 2 · Current

11.800 A
11,800 ÷ 1,000

Index 3 · Real power

1,360 W
1,360 · signed watts

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

Run these examples on a computer or server that can reach your device. The examples use port 80 for Gen6+; append :8080 to the IP address for supported earlier devices. The decoding examples are for electricity meters only.

cURL

Quickly inspect the raw JSON response from a terminal.
#!/bin/sh
# Gen6+: default HTTP port 80. Older supported models: :8080.
curl --fail --max-time 5 http://192.168.1.100/getdata

Python

Retrieve and decode electrical measurements using the standard library.
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

Retrieve measurements from a server-side JavaScript application.
// 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

Query the device and display structured measurement objects.
$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

Use HttpClient and System.Text.Json in a console application.
// .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}");
}
For browser dashboards, use a trusted local backend or same-origin proxy. Browser CORS, mixed-content and private-network restrictions may prevent direct requests from a hosted HTTPS page.

Build reliable local data collection

Poll responsibly

Use a reasonable request interval appropriate to the device and firmware; avoid overlapping requests.

Handle interruptions

Use timeouts, retry with backoff, and record missing samples rather than treating them as zero.

Protect local access

Keep HTTP endpoints on trusted networks. Do not expose device ports directly to the internet.
For historical energy estimates, timestamp each reading and integrate signed power over elapsed time. For kWh, sum power in watts × interval in seconds ÷ 3,600,000. Account for gaps, topology and measurement direction. Local storage and dashboards are your application’s responsibility.

Explore compatible monitoring hardware

Choose the right measurement hardware for your integration. Start with the application, then check device generation and the model-specific API reference.
RESIDENTIAL / SOLAR

Home Energy Monitor

Understand household electrical demand, energy consumption and compatible solar configurations.

Whole-home monitoring
Solar and grid measurements
Custom residential dashboards

COMMERCIAL / INDUSTRIAL

3-Phase Energy Meter

Measure electrical demand across compatible single-phase and three-phase installations.

Facility and equipment monitoring
Industrial data collection
Custom energy analytics

More ways to integrate measurement data

Inline Power Meter

Direct electrical measurement

Flow Meter

Fluid consumption and flow data

Temperature Meter

Temperature measurement data

Check compatibility before deploying

Gen6 and newer: local access without a MyEyedro Cloud connection, using port 80 or backward-compatible port 8080. Supported Gen5 and earlier devices require an initial cloud connection to enable the local API. Response formats vary by product.

Frequently asked questions

Can I use Eyedro without an internet connection?

Gen6 and newer devices support local API access without a MyEyedro Cloud connection. Supported Gen5 and earlier devices require an initial cloud connection to enable normal LAN API access. Remote cloud analytics require internet connectivity.

Which HTTP port should I use?

Gen6 and newer devices use port 80 by default and offer port 8080 for backward compatibility. Supported earlier devices typically use port 8080 on the LAN.

Do I need to use MyEyedro Cloud to collect my own data?

With Gen6 and newer devices, you can collect instantaneous measurements directly using your own application without connecting to MyEyedro Cloud. Earlier supported devices have the initial connection requirement described above.

Can I store measurements in my own database?

Yes. Your application can retrieve and store measurement data independently. The local API returns current readings; implement your own historical storage.

Can I use the API with Home Assistant or Grafana?

The HTTP JSON endpoint can be used as a building block for custom integrations. You are responsible for configuring and validating the integration, including accumulated energy entities where required.

Does the API return every measurement shown in MyEyedro?

Not necessarily. Available fields depend on the model and firmware. Refer to the product API documentation for the response format.

Can I use the local API and MyEyedro Cloud together?

Compatible devices can provide local measurements while communicating with MyEyedro Cloud. Follow the device-specific documentation.

Can I access the API remotely?

Use a properly secured network solution such as a VPN managed by your network administrator. Avoid exposing local HTTP ports directly to the public internet.

Build with Eyedro

Have a custom energy monitoring, research or industrial integration project? Discuss your hardware and data access requirements with our team.