Displaying real time data from serial port

63 views
Skip to first unread message

Pedro Henriquez

unread,
Mar 16, 2014, 12:02:36 PM3/16/14
to google-visua...@googlegroups.com
I want to use the visualization API to display, locally, data recieved from the serial port in my PC. Can anyone tell me how to incorporate the data into the charts?

Yehonathan Sharvit

unread,
Mar 17, 2014, 4:09:56 AM3/17/14
to google-visua...@googlegroups.com
You need to update the ‘data’ part of the JSON using data literal notation. See: https://developers.google.com/chart/interactive/docs/reference

asgallant

unread,
Mar 17, 2014, 5:30:20 PM3/17/14
to google-visua...@googlegroups.com
You need to write an interface to your serial port in your webserver (or an interface that reads data output stored in another form, like a database) that takes the data and reformats it to the form that the Visualization API uses.  There are a few different approaches you could take from there; which you choose mostly depends on whether you want the data to be live from the serial port or whether you are retrieving stored data.

Pedro Henriquez

unread,
Mar 19, 2014, 11:42:30 PM3/19/14
to google-visua...@googlegroups.com
Yup thanks. For those who read later, I linked my serial port to a Google Spreadsheet (via processing) to the Visualization API. Pretty staightforward.


--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/WEOaUKocN7E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages