If you want to call any of the following actions when your not logged in you can authenticate with an API key:

  • Append on the URL of your request: &apikey=APIKEY
  • Use POST parameter: "apikey=APIKEY"
  • Add the HTTP header: "Authorization: Bearer APIKEY"

API keys

There are two types of api key the write apikey and read apikey giving read & write access or read-only access. Login or create an account to obtain these keys.

Input API

Available HTML URLs

The input list view
Input processing configuration page

Available JSON commands

To use the json/text api the request url needs to include .json

Post data

JSON format:{power:200}
CSV format:,200,300
Assign inputs to a node group,200,300
Set the input entry time manually,200,300

To post data from a remote device you will need to include in the request url your write apikey. This give your device write access to your emoncms account, allowing it to post data.

For example using the first json type request above just add the apikey to the end like this:{power:200}&apikey=WRITE_APIKEY

Bulk data

You can provide data using bulk mode[[0,16,1137],[2,17,1437,3164],[4,19,1412,3077]]
  • The first number of each node is the time offset (see below).
  • The second number is the node id, this is the unique identifer for the wireless node.
  • All the numbers after the first two are data values. The second node here (node 17) has two data values: 1437 and 3164.
  • Optional offset and time parameters allow the sender to set the time reference for the packets. If none is specified, it is assumed that the last packet just arrived. The time for the other packets is then calculated accordingly.
Legacy default format (4 is now, 2 is -2 seconds and 0 is -4 seconds to now):[[0,16,1137],[2,17,1437,3164],[4,19,1412,3077]]
Time offset format (-6 is -16 seconds to now):[[-10,16,1137],[-8,17,1437,3164],[-6,19,1412,3077]]&offset=-10
Sentat format: (useful for sending as positive increasing time index)[[520,16,1137],[530,17,1437,3164],[535,19,1412,3077]]&sentat=543
Absolute time format (-6 is 1387730121 seconds since 1970-01-01 00:00:00 UTC))[[-10,16,1137],[-8,17,1437,3164],[-6,19,1412,3077]]&time=1484822355

Input actions

List of inputs
Delete an input

Input process actions

Add an input process
List input process list
Delete input process
Move input process
Reset input process list