Node Red post to local emoncms

I am trying to post data to my local Emonbase using Node-Red. I can post to emoncms.org but not to my local Emonbase. I am using a Emoncms node with my API key and IP adress (192.168.79.18). 

Any suggestions why its working against emoncms.org but not locally?

 

[{"id":"b6366569.49c998","type":"emoncms-server","z":"a2e588a0.5d1a78","server":"http://localhost","name":"Local Raspberry"},{"id":"99d44af9.662bb8","type":"inject","z":"a2e588a0.5d1a78","name":"","topic":"emonhub/rx/21/values","payload":"50,0,42,3","payloadType":"string","repeat":"10","crontab":"","once":false,"x":895,"y":565,"wires":[["469efe47.b961"]]},{"id":"469efe47.b961","type":"emoncms","z":"a2e588a0.5d1a78","name":"Emoncms node 21","emonServer":"b6366569.49c998","nodegroup":"21","x":1216,"y":567,"wires":[]}]

pb66's picture

Re: Node Red post to local emoncms

"server":"http://localhost/emoncms" perhaps ?

Paul

larsthiesson's picture

Re: Node Red post to local emoncms

does not work

 

Robert Wall's picture

Re: Node Red post to local emoncms

"server":"http://[dotted IP address]/emoncms" perhaps then ?

larsthiesson's picture

Re: Node Red post to local emoncms

"server":"http://[dotted IP address]/emoncms" - does not work. I have tried to buy a new Raspberry Pi. Install 8.5 low-write. Same problem. 

Robert: I can see  the similarities (between this and this) but as far as I understand its to different methods. I am annoyed that I can get it to work).

Paul Reed's picture

Re: Node Red post to local emoncms

I use MQTT to pass data back and forth between node-red & emoncms, it's easy to set up and it works great. I stopped using the emoncms node about a year ago

Paul

larsthiesson's picture

Re: Node Red post to local emoncms

Thank you very much for that answer. It works! I have wrestled with the problem for many days. Mqtt seems to be the answer. 

Another questing. What method do you use if you have to edit the logged data (for example a wrong accumulated feed)?

Paul Reed's picture

Re: Node Red post to local emoncms

If you go to Extra > visualizations you will find some tools there to edit existing data, but unfortunately the 'Edit daily' currently has a bug and only works on the current day's data - see this post 

Paul

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.