Applying code alongside the emonpi base system

Good afternoon!

We are working to put our own code alongside the emonpi that will retrieve monitored data (voltage and total power) from the emonpi. We have added init scripts to run this code when emonpi boots. After the first reboot, we notice our init scripts remain in place, but they do not run. We did run rpi-rw to install those scripts, followed by rpi-ro.

Any advice?

Thank you,

Why do you need init scripts to retrieve emonpi data?
The emonpi data can be easily exported via MQTT or it’s api for use in other applications, without the need for additional scripts.


Thank you, Paul. Would you not mind pointing me in the right direction for those API calls?

The user guide should have all the info you need:

Emoncms api:

MQTT info:

NodeRed is the tool built into the emonpi to post data to other services. Browse to port 1880 on your emonpi to see example subscribing to the mqtt topic and sending an email alert. See nodeRed user guide page for login credentials:

Thank you, Glyn. I’ll give it a try.