If you look through this and see what it's doing then look through the other references and come back with any questions..........I am using a modified twitter library also posted on the forum...........
Sample Dashboard....
https://freeboard.io/board/5bOyD6
Sample Thingspeak.....
https://thingspeak.com/channels/73184
The Twitter feed from this.....
https://twitter.com/mcuautomation
/* Post a simple message to Twitter */
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <Twitter.h>
#include <Wire.h>
#include <SFE_BMP180.h>
SFE_BMP180 pressure; // i2c Address 77h
#define ALTITUDE 30.0
double baseline; // BMP180 baseline pressure
double T,P,p0,a; // BMP180 Data
int TweetInterval= 900; // Tweet Interval in Seconds
int i=1; // How many Tweets
unsigned long ulMeasDelta_ms; // Time to next Tweet time
unsigned long ulNextMeas_ms; // next Tweet time
char buf[120];
Twitter twitter("You need a Key of your own in here");// Twitter API Key
// Get Yours here http://arduino-tweet.appspot.com/oauth/twitter/login
void setup()
{
ulMeasDelta_ms = ( (unsigned long) TweetInterval * 1000); // Tweet Interval in Seconds
ulNextMeas_ms = millis()+ulMeasDelta_ms;
if (pressure.begin()){
} else
{
while(1); // Pause forever.
}
WiFi.begin("Your-ssid", "Your-Password");
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
}
}
void tweet(char msg[]){
if (twitter.post(msg)) {
int status = twitter.wait();
if (status == 200) {
} else {
}
} else {
}
}
void loop()
{
if (millis()>=ulNextMeas_ms)
{
ulNextMeas_ms = millis()+ulMeasDelta_ms;
char status;
double T,P,p0,a;
status = pressure.startTemperature();
if (status != 0)
{
// Wait for the measurement to complete:
delay(status);
status = pressure.getTemperature(T);
if (status != 0)
{
status = pressure.startPressure(3);
if (status != 0)
{
// Wait for the measurement to complete:
delay(status);
status = pressure.getPressure(P,T);
if (status != 0)
{
p0 = pressure.sealevel(P,ALTITUDE); // we're at 1655 meters (Boulder, CO)
a = pressure.altitude(P,p0);
}
else;
}
else;
}
else;
}
else;// ALL OK send tweet
p0 = pressure.sealevel(P,ALTITUDE);
int TEint = T+0.5;
int MpressU = p0+0.5;
sprintf(buf, "Current room Temp: %dC Air Pressure(MSLP): %dmbar, %dinHg TweetNo: %d via an #ESP8266", TEint, MpressU, i );
tweet (buf);
i++;
}
}