Giter Site home page Giter Site logo

wlanslovenija / django-datastream Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 4.0 1.24 MB

Django HTTP interface to time-series Datastream API.

Home Page: http://django-datastream.readthedocs.org/

License: Other

Python 5.64% JavaScript 94.20% CSS 0.04% HTML 0.12%

django-datastream's People

Contributors

kostko avatar mitar avatar mstajdohar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-datastream's Issues

Implement waiting for new data

I was thinking that the best way to implement waiting for new data would be to add new HTTP command, for example FETCH. So when you do a GET request with start time interval parameter, you get all data from that interval to current time. If there is no data it returns you an empty list. But by doing FETCH to same URL, django-datastream would wait until data is available and then return you the data. And after it returns the data, you could open another connection with updated start time interval parameter.

Of course, it is not smart to block Django process while both client and server are waiting for data, so another approach should be used. I see two options:

  • implement custom Tornado based web server which handles FETCH requests in a asynchronous manner, similar to how django-pushserver implements it, we can then use this server instead of fast cgi process to interact with Django
  • instead of reimplementing Tornado integration, just use django-pushserver directly, redirecting on FETCH request to django-pushserver channel and requesting that new data is send to that channel

The tricky thing here is scalability, when you have multiple instances of this asynchronous server, you want that when data comes, that it is pushed to all clients listening on all instances of an asynchronous server (I am not sure if this is handled correctly in django-pushserver even).

Improve content of exported and printed image

Improve content of exported and printed image. We should decide if we want to make 1:1 copy (with all controls) or without controls. Currently some controls are missing, but on the other hand scrollbar is there. Additionally, size of the image does not match displayed and some datapoints are drawn outside the image.

Add export data link

For now, it can be really something so simple as a link to REST API URL for given displayed datapoints.

Enable graph embedding

Enable users to include the graph in other webpages by preparing an embedding code snippet. Useful for sharing graphs on screens for monitoring and other webpages.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.