Ribbit-Network / ribbit-network-dashboard

The web dashboard for the world's largest crowdsourced network of open-source, low-cost, CO2 Gas Detection Sensors.
MIT License
17 stars 16 forks source link

time scale display on all graphs / heroku #98

Closed pascaljoly closed 1 year ago

pascaljoly commented 1 year ago

when I look at the graphs on https://ribbit-network.herokuapp.com/ the time scale is only displayed in the last graph (Humidity). Can we also add it to the other graphs? CO2 concentration, temperature, pressure...

jklmaynard commented 1 year ago

I suppose it's better to put this on the ticket than in Discord.

I can't test it, because my local server can't SSH into the online data. If there's a guide for implementing the DataVisualization csvs, let me know. Otherwise, I think the fix for the time scale is to remove shared_xaxes=true from line 201 of the app.py file.

Here's the documentation from Plotly on that: https://plotly.com/python/subplots/#subplots-with-shared-xaxes

@pascaljoly @spestana

keenanjohnson commented 1 year ago

Hey @pascaljoly ! I think this issue should actually be in the dashboard project, no the Frog sensor project. I can transfer it now.

keenanjohnson commented 1 year ago

Hey @jklmaynard ! Thanks for jumping in here! Your local server should have access to the data.

You followed the run instructions in the readme here correct?

https://github.com/Ribbit-Network/ribbit-network-dashboard#technical-details

jklmaynard commented 1 year ago

@keenanjohnson yessir, that part was straightforward. I'll run the requirements install again, just to see if something broke. The error on my local server looks like this:

Screen Shot 2022-09-28 at 5 55 59 PM

I'll also just see if my local is set up with proper certifications.

The variables in the influx_config file are all up to date, I assume?

keenanjohnson commented 1 year ago

Hmm interesting. Those variables should be correct as this repo gets literally auto-deployed from github via Heroku.

Are you on a macbook perchance? I know that sometimes there can be issues with local certificates.

Perhaps you could try this? https://stackoverflow.com/questions/52805115/certificate-verify-failed-unable-to-get-local-issuer-certificate

image
jklmaynard commented 1 year ago

@keenanjohnson nice, that did it! I can add that to the readme if you'd like.

keenanjohnson commented 1 year ago

Glad that was an easy fix @jklmaynard ! Yes that would be quite helpful! Are you familiar with forking / creating a PR?

jklmaynard commented 1 year ago

Yep, seems pretty clear from the guidelines. I had just cloned directly from here, but I'll go and fork it first then send it up. I should have a PR for this tonight (Pacific Standard) unless somebody is able to make the change first. My recommendation seems to have solved it:

Here's for 7 days:

Screen Shot 2022-09-29 at 3 39 25 PM

Here's for 1 day:

Screen Shot 2022-09-29 at 3 39 33 PM
keenanjohnson commented 1 year ago

Thanks so much @jklmaynard ! Let me know if you run into any issues!

jklmaynard commented 1 year ago

PR created: https://github.com/Ribbit-Network/ribbit-network-dashboard/pull/99

keenanjohnson commented 1 year ago

Thanks!