Hello all
Has anyone got any sample code or able to set me write to send data to pvoutput using an arduino?
I was using xively personal for data but that is now offline
Would like to be in an easy format similar to below that i used to send to thingspeak
but im have a lot of trouble formating it correctly for PVoutput to accept an
cant fully understand what the API documetation asks for
thanks
Geoff
void update_thingspeak()
{
Serial.println(“connecting to thingspeak”);
delay(200);
if (client.connect(“api.thingspeak.com”, 80))
{
delay(100);
Serial.println("connected to thingspeak");
delay(200);
client.print("POST /update HTTP/1.1\n");
delay(100);
client.print("Host: api.thingspeak.com\n");
delay(100);
client.print("Connection: close\n");
delay(100);
client.print("X-THINGSPEAKAPIKEY: "writeAPIkey"\n");
delay(100);
client.print("Content-Type: application/x-www-form-urlencoded\n");
delay(100);
client.print("Content-Length: ");
client.print(Power_Data.length());
client.print("\n\n");
delay(100);
client.println(Power_Data);
delay(200);
Serial.println("thingSpeak MSG data sent");
delay(100);
client.stop();
delay(100);
client.flush();
delay(100);
client.stop();
// delay(100);
/
}