Pachube upload

Greetings gents,

Can anyone help with a simple sketch to upload data from four sensors to a pachube feed ?
I have adapted the scrip that Jose Anes put together and it works for about one hour and after that freezes my Mega not only the feed. For the life of me I could not figure out for the last week what is going wrong. ... very frustrating.

Many thanks,
Marian

here is the only modification that I've done to Jose's script:

void collectSensorData () {
assignSensorData (0, temp_Current, "Water temperature", "F");
assignSensorData (1, pH_val, "pH value", "pH");
assignSensorData (2, orp_val, "Reef ORP value ", "mV");
assignSensorData (3, orpSD_val, "Sulfur denitrator ORP", "mV");
}

void assignSensorData (int i, double value, char * label, char * units) {
sensorValues = value;
_ sensorLabels = label;_
_ sensorUnits = units;
}
_

A late response.

You can have a try with the ERxPachube library. Google Code Archive - Long-term storage for Google Code Project Hosting.. With this library, you don't need to do much work to communicate with pachube.com server.

The code to put local sensor data to Pachube is that as below (Suppose you have initialized the ethernet).

        ERxPachubeDataOut dataout("PACHUBE_API_KEY", PACHUBE_FEED_ID);
        dataout.addData(0);
        dataout.addData(1);
        dataout.addData(2);

        dataout.updateData(0, analogRead(0));
        dataout.updateData(1, analogRead(1));
        dataout.updateData(2, "Arduino Data");
        dataout.updatePachube();