Thanks for the suggestion to use ubidots.
I looked over some tutorials including the excellent one by @RWB on setting up a dashboard
I tried a simple experiment using the examples given here
I built a Device on ubidots called "Weather Station" with a single variable called "Temp"
Then built a dashboard with widgets called "WeatherShield"
Here is the code I flashed to the electron
// This #include statement was automatically added by the Particle IDE.
#include <Ubidots.h>
// This #include statement was automatically added by the Particle IDE.
//#include "Ubidots/Ubidots.h"
#define TOKEN "pwy6q5f43V71zV516s6dyxxxxxxxxx" // Put here your Ubidots TOKEN
#define DATA_SOURCE_NAME "Weather Station"
Ubidots ubidots(TOKEN);
void setup() {
Serial.begin(115200);
ubidots.setDatasourceName(DATA_SOURCE_NAME);
}
void loop() {
float value = analogRead(A0);
ubidots.add("Temp", value, "context1=value_context1$context2=value_context2"); // Change for your variable name
ubidots.sendAll();
delay(5000);
}
When I ran this, my data appeared as a new device on ubidots called "Particle" - it did not go to my dashboard called "Weather Station" . So I got data - but not where I wanted it.
I don't fully understand the difference between Name and Tag - and how that relates back to the devices and dashboards I create on Ubidots.
ubidots.setDatasourceName(DATA_SOURCE_NAME);
ubidots.setDatasourceTag(DATA_SOURCE_TAG);
Thanks in advance for any help with this newbie question.