             Serial.println("error opening raw data log file");
         }
 
+        // send data for to emoncms.org: node id, T, Vcc
+        emonapiurl = "http://emoncms.org/input/post.json?apikey="
+                     + EMONCMS_APIKEY
+                     + "&node="
+                     + String(dataPackage.rf12_nodeid)
+                     + "&csv="
+                     + String(dataPackage.T)
+                     + ","
+                     + String(dataPackage.Vcc);
+
+        client.get(emonapiurl);
+
+        //
     }
     digitalWrite(13, LOW);   // turn the LED off (HIGH is the voltage level)
 }


// data logging and time stamping from http://arduino.cc/en/Tutorial/YunDatalogger
#include <FileIO.h>
String fileName, dataStr, rawdataStr;
char __fileName_rawdata[43] = "/mnt/sda1/datalogs/YYYY-MM-DD_RF12_raw.dat";  // value as pattern only, to get size right
char __fileName_data[39] = "/mnt/sda1/datalogs/YYYY-MM-DD_RF12.dat";  // value as pattern only, to get size right


//      --> time stamp, RF12 group ID, node ID, Vcc, T
// 2) raw data file
//      --> time stamp, RF12 group ID, node ID, all data byte received
// 3) send via http to emoncms.org
//
// Blink LED #13 for each package received
//

#include <Bridge.h>
#include <HttpClient.h>
#include <JeeLib.h>
#include "mytokens.h"

// temperature node data structure. Timestamp created locally, at time of receival.
typedef struct
