Contents

How to Access Data from the DashIO Server

The DashIO server keeps a history of the data your devices send for three kinds of control: time graphs (TGRPH), maps (MAP) and event logs (LOG). This guide explains how to fetch that history over MQTT, for example to export it or to use it in your own software.

1. What the server stores

The server stores a control's data only if storage is turned on for that control. Turn it on in the Dash app, in Data Storage, for each control (or with Enable All). Your account's plan must include data storage.

From then on, whenever the device sends that control's data to the server (on its MQTT data topic), the server stores it. Nothing sent before storage was turned on, or sent while the device was only connected over BLE or TCP, is stored.

2. Connecting

  • Server: dash.dashio.io
  • Port: 8883 (MQTT over TLS 1.2 or later)
  • Login: Your Dash account username and password

3. Topics

Topic Use
<owner>/<device_id>/store/control Publish requests here
<owner>/<device_id>/store/data Subscribe here for the replies

<owner> is the username of the account that owns the device. For your own devices, that's your username. For a device shared with you, it's the username of the account that shared it, while you still log in with your own username and password.

Replies arrive asynchronously. Subscribe to the store/data topic before you publish a request.

4. Requests

Each request is one line: fields separated by tabs (\t), starting with a tab and ending with a newline (\n). One message can hold several requests, one per line.

Control Request
Time graph \t<device_id>\tTGRPH\t<control_id>\t<dashboard_id>\t<from>\n
Time graph, one line only \t<device_id>\tTGRPH\t<control_id>\t<dashboard_id>\t<from>\t<line_id>\n
Map \t<device_id>\tMAP\t<control_id>\t<dashboard_id>\t<from>\n
Event log \t<device_id>\tLOG\t<control_id>\t<dashboard_id>\t<from>\n
  • <control_id> is the control's ID on the device (for example TG1).
  • <dashboard_id> is any ID your client chooses, such as a UUID. The server copies it into every reply, so you can tell which request a reply answers.
  • <from> is the time to fetch data after (data at exactly that time isn't included), in ISO 8601 with a UTC offset: 2026-11-16T03:00:00+00:00 or 2026-11-16T03:00:00Z.

Example: everything since 16 November 2026, 03:00 UTC, from time graph TG1 on device ab12cd34:

\tab12cd34\tTGRPH\tTG1\tmy-client-1\t2026-11-16T03:00:00+00:00\n

5. Replies

Every reply starts with the same fields as its request (\t<device_id>\t<type>\t<control_id>\t<dashboard_id>), followed by the data. Data is oldest first.

Time graph

One reply line per graph line:

\t<device_id>\tTGRPH\t<control_id>\t<dashboard_id>\t<line_id>\t<line_name>\t<line_type>\t<line_color>\t<line_axis>\t<time>,<value>\t<time>,<value>…\n

Each point is a time and a value, separated by a comma. The time is ISO 8601 with a UTC offset, for example 2026-11-16T03:05:00+00:00.

Map

One reply line per track:

\t<device_id>\tMAP\t<control_id>\t<dashboard_id>\t<track_id>\t<track_name>\t<track_color>\t<point>\t<point>…\n

Each point is a JSON object:

{"time": "2026-11-16T03:05:00Z", "latitude": "-36.8485", "longitude": "174.7633"}

with avgeSpeed, peakSpeed, course, altitude and distance as well, when the device sent them. The numbers are strings.

Event log

One reply line:

\t<device_id>\tLOG\t<control_id>\t<dashboard_id>\t<entry>\t<entry>…\n

Each entry is a JSON object:

{"time": "2026-11-16T03:05:00+00:00", "color": "red", "lines": ["Pump stopped", "Pressure low"]}

When there's no data

An event log request always gets a reply line, with no entries if there's nothing newer than <from>. A time graph or map request with no data gets no reply at all. So wait for a reply with a timeout (a few seconds), and treat no reply as no data.

6. Getting more than one reply's worth

Each reply holds at most 10,000 points per graph line or map track, and 1,000 event log entries (the defaults; they can differ by account). To fetch more, send the request again with <from> set to the time of the last point you received, until a reply comes back with fewer points than the limit (or no reply comes).

7. Example: dashio_data_exporter

The python-dashio package includes a command, dashio_data_exporter, that fetches a control's data and prints it or writes it to files. Its source (dashio/utilities/dashio_data_exporter.py) is a worked example of this API.

pip install dashio
dashio_data_exporter -u <username> -p <password> -d <device_id> -c TG1 -t TGRPH -n 7 -f csv -s
Option Meaning
-u, -p Your Dash username and password
-a For a device shared with you: the username of the account that shared it
-d, -c The device ID and the control ID
-t TGRPH, MAP or LOG
-n How many days of data to fetch, up to now
-f raw or csv
-s / -o Print the data, or write it to files

8. Common issues

  • No data, or no reply: check that storage is on for the control (section 1), that the device has sent data over MQTT since then, and that <from> is early enough. Remember that a time graph or map with no data gets no reply (section 5).
  • Shared devices: the topics use the owner's username, not yours (section 3).
  • Check the IDs: device and control IDs are case-sensitive, and must belong to a device you own or that is shared with you.
  • Times are UTC: give <from> with a UTC offset, and expect UTC times in replies.
  • Only part of the data: a reply is capped (section 6); ask again from the last time received.

For more about DashIO, see dashio.io and the dashio-connect repositories on GitHub.