SEND XBEE DATA TO PACHUBE

29 Jan 2011

I have a project using xbee to send data to PACHUBE.

The following code(from the cookbook)) works fine but I have to put the id and value numbers in the " pachube.PutCsv("14671", "10" , "34.5");" line.

/media/uploads/williamlynn/pachube_csv.txt

I want to update the ID and VALUE field automatically as new data is received from the xbee.

If I add the variable name (data_1,data_2) into the code PACHUBE returns a 404 code; I have tried making the data into string data and other things but nothing seems to work.

There is probably and easy solution but I'm maxed out on things to try.

Bill Lynn

31 Jan 2011

I found the solution; I converted the INT data with sprintf() and put the result into the PACHUBE PUT request without the quotes.

Things are working good; PACHUBE feed ID is 14671 if you want to see it.