Parsing CSV values

Hello,

         I am trying to set up a shared server Emoncms using the following doc:

 

http://emoncms.org/site/docs/sharedlinuxhosting

 

I appear to have the setup done.  The questions I have are the following:

 

1)  It cuts my decimal off.  When I was sending data to the primary emoncms.org server, I was allowed to send a data string like 22.2,22.6,26.3,etc... for up to 80 values.  But now that I am sending data to my own server, it cuts off the decimal value and only allows integer.  I did find a "unsigned long" setting, but that turned my '22' into 3.4487373834, something totally non-relevant, which I can't use because temperature can be negative.

 

2) When I go to the 'Node' page, it shows the raw data, but I can't figure out how to separate out my values into different variables.  I am monitoring up to 90 sensors that provide temp/humidity sensors.  While they are standard DHT sensors, the DHT sensor option only allows for 2 temperatures.

 

Help.

 

Tim

Robert Wall's picture

Re: Parsing CSV values

Emoncms (for the moment) only accepts signed integers. The work-around is to multiply the values you send before you send them, then divide by the same factor inside emoncms.

I don't fully understand what you mean by "I can't figure out how to separate out my values into different variables."  Do you have 90 sensors on the same node, or what mix of nodes and sensors do you have?  (You can have only 30 nodes in any one group, if you're using wireless). Look at the Input API Help page to see what data formats are acceptable.

soundjudgement's picture

Re: Parsing CSV values

When I initially start loading data it comes up as in Fig 1, showing the raw byte data with comma seperated values.  But when I pull the menu down, see Fig 2, none of those work with the number of values I have.  When I try a custom and tell it there are 41 values, it gives me a big table of nonsense (See Fig 3).  I hope you can see enough of Fig 3 to see what I mean, if you can't then let me know.  When I send this same string to Emoncms.org I get EmonORG Fig1.

 

To answer your question: I am planning on having 4 nodes.  3 nodes will have UP TO (it will change depending on location) 20 DHT sensor and 1 AM2315 external sensor.  Each of these will feed a Temperature and Humidity value.  The 4th node will be 'supersized' with the ability to read 40 DHT sensors and 1 AM2315 sensor. 

 

Any insight?  Thank you.

 

Tim

Robert Wall's picture

Re: Parsing CSV values

I see what you're saying now - it's not the question I thought you were asking. I'm not up to speed on the latest versions of emoncms so I don't know how emoncms.org relates to the version you installed. I think you'll have to wait for someone who is involved with the development of emoncms to help you.

Paul Reed is a likely candidate.

Comment viewing options

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