Group Abstract Group Abstract

Message Boards Message Boards

Build your own weather station in a snap with the Wolfram Cloud

Posted 11 years ago
POSTED BY: Arnoud Buzing
7 Replies
Posted 11 years ago

So that I've contributed something other than questions to this discussion, I'll elaborate on Arnoud's response by observing that it's not too late for me to execute this command:

SetOptions[Databin["44kLAu9q"], "Interpretation" -> {"temperature" -> "Number"}]
POSTED BY: Scott Kelly
Posted 11 years ago

Thanks for the quick and insightful response!

I see that my temperatures are strings and I understand the method you propose for generating the plot I was hoping for, but I'm still not sure why I encountered this issue while Arnoud didn’t, given the similarity of my code to his.

POSTED BY: Scott Kelly

Instead of using just:

CreateDatabin[]

I think I should have written:

CreateDatabin["Interpretation" -> {"temperature" -> "Number"}]

That way, the 'temperature' should come out as regular numbers.

POSTED BY: Arnoud Buzing
Posted 11 years ago

I responded too quickly to Ilian's comments. I think Arnoud's subsequent response has resolved my confusion.

Thanks to both of you. This is fun stuff!

POSTED BY: Scott Kelly

This is because the temperatures are strings: for example, the FullForm of samplePair[[2]] is "27.64" (note the quotes are not printed by default). We can get a plot by converting them to numbers. enter image description here

POSTED BY: Ilian Gachevski
Posted 11 years ago
POSTED BY: Scott Kelly

Arnoud, this is a great example. Thanks for sharing! It makes a good use of Data Drop RESTful API.

POSTED BY: Bernat Espigulé
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard