Go Down

Topic: Sending Float values to Pachube from Arduino (Read 6141 times) previous topic - next topic

Jack Christensen


Yeah, I was going for efficiency, but certainly float is perfectly acceptable to beginners, and even beyond. I can be too much of a bit-biter sometimes :D

How is Cosm working for you as far as reliability? I have issues getting every datapoint to the website. I don't expect 100%, but probably at least 99.9% or better, and I haven't been able to achieve that.


Jan 10, 2013, 08:57 pm Last Edit: Jan 10, 2013, 09:16 pm by olof_n Reason: 1

I have some projects that send float values with Virtualwire.

In one project I use dtostrf and it has never crashed.
My weatherstation is sending all data in a binary format (byte array).

This is some parts of my code:

struct WeatherData {
 byte year;
 byte month;
 byte day;
 byte hour;
 byte minute;
 byte windspeed;
 byte winddirection;
 unsigned int  pressure;
 unsigned int humidity;
 float rain;
 float temperature;
WeatherData WeatherDataArray[144];


vw_send((uint8_t *)msg, strlen(msg));

dtostrf is easier to use and ok for short messages..



OK, I have a DHT11 Temperature-Humidity sensor (@Rob's Library) and data going to the web here:

The code for this (And an earlier dead-data test version) are now hosted here:

It was a few hours and a few of the usual weird error gremlins to work through, but it works.  I plan to update that page with much more how-to and explanation, and work into Control from the web etc. over time.

Any comments, critique, suggestions welcome!  Thanks to everyone for helping...
Regards, Terry King terry@yourduino.com  - Check great prices, devices and Arduino-related boards at http://YourDuino.com
HOW-TO: http://ArduinoInfo.Info


Nice project Terry.
I have a similar one with added rainfall and wind. You can see my feed here https://cosm.com/feeds/58529.  I also recently got an Air Space Egg which feeds data to COSM as well.   This has NO2 and CO sensors as well as temp & humidity. See more about them at http://www.kickstarter.com/projects/edborden/air-quality-egg

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131