diff --git a/.gitignore b/.gitignore index 0331bbb..6b33294 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,7 @@ *.exe *.out *.app + +#other +TSI_inout_ino/APIKey.h +*~ diff --git a/TSI_inout_ino/APIKey_template.h b/TSI_inout_ino/APIKey_template.h new file mode 100644 index 0000000..8521ae2 --- /dev/null +++ b/TSI_inout_ino/APIKey_template.h @@ -0,0 +1,4 @@ +// rename this file to "APIKey.h" and fill in a real key! + +String thingtweetAPIKey = "myThingspeakKey"; + diff --git a/TSI_inout_ino/TSI_inout_ino.ino b/TSI_inout_ino/TSI_inout_ino.ino index 8959067..6786154 100644 --- a/TSI_inout_ino/TSI_inout_ino.ino +++ b/TSI_inout_ino/TSI_inout_ino.ino @@ -28,6 +28,8 @@ Example sketches from Arduino team, Ethernet by Adrian McEwen #include #include +#include "APIKey.h" + // Local Network Settings byte mac[] = { 0xD4, 0x28, 0xB2, 0xFF, 0xA0, 0xA1 }; // Must be unique on local network @@ -36,7 +38,6 @@ unsigned int localPort = 8888; // local port to listen for UDP packets // ThingSpeak Settings char thingSpeakAddress[] = "api.thingspeak.com"; -String thingtweetAPIKey = "21I4R9UJQZJSC60Y"; // Variable Setup - check if these Variables are needed long lastConnectionTime = 0; @@ -78,7 +79,7 @@ int ethernetstatus = -1; int readStatus=0; // Twitter message, intermediate part -String tmsg = " Hackerspace @ Freies Theater at "; +String tmsg = " Hackerspace at "; //debug options boolean debug = false;