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

More interactive no-data case #38

Open
matschaffer opened this issue Dec 2, 2021 · 3 comments
Open

More interactive no-data case #38

matschaffer opened this issue Dec 2, 2021 · 3 comments

Comments

@matschaffer
Copy link

Both @jamoross and I had the the same situation happen recently. We had airnotes that had gone offline (poor sun in my case), and had reconnected them (I moved mine indoors).

When you make this change and scan the QR code it's easy to wind up on the "no data" case since we only look at the last 8 days.

{#if noDataError}
<div class="alert">
<h4 class="alert-heading">{NO_DATA_ERROR_HEADING}</h4>
There is no data associated with this Airnote. If this is a new Airnote,
it may take several hours for your device to report its first readings.
For help setting up your Airnote, visit
<a href='https://start.airnote.live'>start.airnote.live</a>.
</div>
{/if}

It'd be great if we could have that page include a "last seen" query. Asking for the most recent time a device_urn has been seen, even since the beginning of time (2020 for the airnotes should be fine), should be quite cheap for the elasticsearch, or any data store really.

While the current point-in-time dashboard probably wouldn't make sense for a very old time span, we could maybe link off to grafana where the time selector is more present and allow people to see their old data or at least have the page open and ready to watch for new updates as the device gets started on the network again.

@tjvantoll
Copy link
Contributor

Hey @matschaffer 🙂 Sorry it took me forever to reply here. Back in May I made a small wording change, and added a link to Grafana if there’s no data (see a260a96).

I want to dig in and add a more thorough solution here soon. I like the idea of querying for the most recent time seen.

@matschaffer
Copy link
Author

cc @robouden

@robouden
Copy link

robouden commented Jul 14, 2022 via email

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

3 participants