Error sending data to Emoncms

I have installed the Emoncms software on my web server running on ubuntu. The installation looks to be ok. I can login,navigate, create input,feed and dashboard. I checked the database(mysql) and the tables are created correctly,so the connection with the database is ok. The emoncms is installed in the var/www/emoncms folder. When I send the input data from emntx I get a error message. If I send the input data to a emoncms.org account using the same sketch(changing the web adress and the api request)it is ok. The error message and the sketch are attached.

Robert Wall's picture

Re: Error sending data to Emoncms

I cannot see in your code where the emoncms folder is specified. I think you need that.

scodeller.m's picture

Re: Error sending data to Emoncms

how to specify it?

Robert Wall's picture

Re: Error sending data to Emoncms

I don't recognise your sketch. In the NanodeRF demo sketch it is done with this line:

// 2) If your emoncms install is in a subdirectory add details here i.e "/emoncms3"
char basedir[] = "";

You must check the library that you are using for details. It might have to go in the "GET ..." string.

Or you might be able to use .htaccess at the root level to redirect to your emoncms directory.

Comment viewing options

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