Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

layout formatting not working in plotly_ethernet.cpp ? #2

Open
dwblair opened this issue Feb 26, 2014 · 1 comment
Open

layout formatting not working in plotly_ethernet.cpp ? #2

dwblair opened this issue Feb 26, 2014 · 1 comment

Comments

@dwblair
Copy link

dwblair commented Feb 26, 2014

Hi Folks!

I'm trying to send data to plot.ly using an Arduino Leonard + an Ethernet shield. Everything seems to be working nicely (great stuff @ plot.ly -- thanks!), but I'm having trouble sending the "layout" JSON info such that the server likes what it's getting.

The code I'm using is here: https://gist.github.com/dwblair/9236591

Here's the full response I'm getting:

Attempting to connect to plotly's servers...
Connected to plotly's servers

== Sending HTTP Post to plotly ==
POST /clientresp HTTP/1.1
Host: 107.21.214.199
User-Agent: Arduino/2.0
Content-Length: 523

version=0.2&origin=plot&platform=arduino&un=donblair&key=6f3ad11nnb&args=[[1296409, 18.90000, 1296563, 21.00000]]&kwargs={"filename": "olmTest_1", "fileopt": "extend", "transpose": true, "layout": {}, "convertTimestamp": true, "timezone": "America/Montreal", "sentTime": 1296573}
== Sent message, waiting for plotly's response ==
HTTP/1.1 200 OK
Date: Wed, 26 Feb 2014 19:29:12 GMT
Server: Apache/2.2.22 (Ubuntu)
Vary: Accept-Encoding
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8

70
{"url": "http://107.21.214.199/~donblair/2", "message": "", "warning": "", "filename": "olmTest_1", "error": ""}
0

@rabbithat
Copy link

Did you ever get it working? I haven't seen it in any of the "official" examples (all of which seem to be insignificant variations of what is really just one example).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants