davidkirwan / ardtweeno

Ardtweeno is an application gateway which bridges devices connected via Serial Link and an Internet Protocol network. The system is designed as a PaaS (platform as a service) for the Raspberry Pi ARM platform.
GNU General Public License v3.0
5 stars 0 forks source link

Source a replacement graphing library to highcharts.js #28

Closed davidkirwan closed 11 years ago

davidkirwan commented 11 years ago

The only component currently used in Ardtweeno which has a Non-Commercial licence attached is Highcharts.js. Until a replacement is sourced and implemented, the Ardtweeno system must also remain as non commercial software.

Once a replacement is sourced, reimplement the status graph in this new library and allow the Ardtweeno gateway licence to be changed from a non commercial licence to something which allows integration in commercial systems.

davidkirwan commented 11 years ago

https://github.com/flot/flot looks like a potential replacement, according to the licence at https://github.com/flot/flot/blob/master/LICENSE.txt it can be used within commercial projects.

Will build a replacement graph for the system status using Flot and see how it performs

davidkirwan commented 11 years ago

https://github.com/DmitryBaranovskiy/g.raphael is another potential replacement with the licence also granting commercial projects to use the library as shown here: http://raphaeljs.com/license.html

Will attempt to replace the dynamically updating system status graph using g.Raphael

davidkirwan commented 11 years ago

Another potential library is the D3.js library https://github.com/mbostock/d3 the licence seems reasonably permissive to use in my project, https://github.com/mbostock/d3/blob/master/LICENSE

davidkirwan commented 11 years ago

I've begun to investigate the flot library, its forced me to first take care of an issue with the /api/v1/system/status API end point. I've implemented a RingBuffer which keeps 15 minutes worth of status updates to hand. The new graph builder will be able to query this buffer using the /api/v1/system/status/list endpoint.

davidkirwan commented 11 years ago

Havn't had time to do any work on this recently, hopefully over the weekend.

davidkirwan commented 11 years ago

flot_status_graph

Made a quick attempt at integrating flot into the status system.

davidkirwan commented 11 years ago

Fixed on dev branch