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

Get points from websockets after initial load #2

Open
oscgonfer opened this issue Jul 13, 2021 · 0 comments
Open

Get points from websockets after initial load #2

oscgonfer opened this issue Jul 13, 2021 · 0 comments

Comments

@oscgonfer
Copy link
Contributor

So, as commented in fablabbcn/smartcitizen-api#197, we should consider having this approach for the data

in index view

  1. load world map at the beginning
  2. subscribe to websockets to append changes on devices post, same as now.smartcitizen.me approach

in graph view

  1. load the data based on settings.js with a predefined time-span (delta days)
  2. add a reload button and a calendar picker in the plots view to reload data
  3. subscribe to the websockets endpoint to append data to corresponding id, only in plot view

Do you agree?

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

1 participant