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

how do i input sqlite3 data? #158

Open
nwgat opened this issue Mar 4, 2018 · 2 comments
Open

how do i input sqlite3 data? #158

nwgat opened this issue Mar 4, 2018 · 2 comments

Comments

@nwgat
Copy link

nwgat commented Mar 4, 2018

am new to this soo i got all the data from my htu22 sensor in a sqlite3 db with temperature,humidity and unixtime, but how do i feed it into the graph?

you can read my current code here
https://github.com/nwgat/zerosensor2/blob/master/zerosensor-nvd3.py

is there a way to run it locally without internet? it seems the rendered output call javascript from the internetz

@quetzaluz
Copy link
Contributor

You'll need to turn your data into a series of arrays. Pandas and the read_frame method might be useful for querying your database and converting it to datatypes that can be read by these charts.

I'll look into these requests you mention / offline functionality and verify is these requests are coming from this lib.

@quetzaluz
Copy link
Contributor

Confirming that this library makes external requests to a CDN. We might add a feature to have local assets that do not require making an HTTP requests, I'll see if I have time to get to this later.

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