Emoncms API

Emoncms API docs

The API is the same for remote Emoncms.org and local Emoncms (running on emonPi). To get started on the EmonPi, read /var/www/emoncms/readme.md or browse to

For a local EmonCMS system, just replace emoncms.org with <EMONPI_LOCAL_IP_ADDDRESS>/emoncms. For instance

When trying to read a value, you’ll notice that authentication is required.

[email protected](ro):~$ wget -qO- ""
{"success":false,"message":"Username or password empty"}[email protected](ro):~$ 

Visit https://emoncms.org/site/api# for more information on authentication. Retrieve the API keys from For this example, the read only key is ok.

[email protected](ro):~$ APIKEY=put_your_api_key_here
[email protected](ro):~$ wget -qO- "$APIKEY"
{"time":1523695587,"value":32}[email protected](ro):~$ 

If you specify an invalid feed id, you’ll get an error message.

[email protected](rw):~$ wget -qO- "$APIKEY"
{"success":false,"message":"Feed does not exist"}

Check your feed list id against the EmonCMS web interface at