# Node-red to EmonCMS problems

**URL:** <https://community.openenergymonitor.org/t/node-red-to-emoncms-problems/21131>\
**Category:** emonPi\
**Created:** [20 August 2022 14:27 UTC](https://community.openenergymonitor.org/t/node-red-to-emoncms-problems/21131 "2022-08-20T14:27:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joe\_Bloggs](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/joe_bloggs/32/21967_2.png) [@Joe\_Bloggs](https://community.openenergymonitor.org/u/Joe_Bloggs)\
**Post date:** [20 August 2022 14:27 UTC](https://community.openenergymonitor.org/t/node-red-to-emoncms-problems/21131/1 "2022-08-20T14:27:19Z")

</div>

Hello all,  
First post here and a noob when it comes to a lot of the terminology so bear with me if I get a few things muddled.  
I have an EmonPi which I have been using to monitor my PV install and that has been successful so far.  
Recently I have made a hardware device to send mqtt data to the EmonPi mqtt broker (Mosquitto).  
I then installed node-red on the same Pi device and have managed to create a flow that seems to output ok to the debug window in node red as I had hoped.  
The problem comes when I use the EmonCMS push function to ‘push’ the info to the EmonCMS. I get an error stating ‘Invalid API key’ as depicted here.

 ![image](https://community.openenergymonitor.org/uploads/default/original/3X/5/f/5fd8d69558277ed447fffe2343b4046d667ea26d.png)

I have checked that the API keys match and they do so I am not sure what I am doing wrong?  
Thanks for your help in advance.

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [20 August 2022 19:34 UTC](https://community.openenergymonitor.org/t/node-red-to-emoncms-problems/21131/2 "2022-08-20T19:34:58Z")

</div>

Are you sure you are using the RW key and not the Read only key?

![image](https://community.openenergymonitor.org/uploads/default/original/3X/c/6/c6826dd71d63529d4e794bafd7be1f7201f6de78.png)

---

<div class="post-metadata">

**Author:** ![Joe\_Bloggs](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/joe_bloggs/32/21967_2.png) [@Joe\_Bloggs](https://community.openenergymonitor.org/u/Joe_Bloggs)\
**Post date:** [20 August 2022 20:11 UTC](https://community.openenergymonitor.org/t/node-red-to-emoncms-problems/21131/3 "2022-08-20T20:11:55Z")

</div>

Thank you.  
Told you I was a noob.
