 
 // data logging and time stamping from http://arduino.cc/en/Tutorial/YunDatalogger
 #include <FileIO.h>
-String fileName, dataStr, rawdataStr;
+String fileName, dataStr, rawdataStr, emonapiurl;
 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
 

            Serial.println("error opening measurement data log file");
        }

        //
        // Log raw data to separate file, to prevent data gets lost or misinterpreted
        //
        rawdataStr = dataPackage.timeStamp + ","

            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)
}
