Giter VIP home page Giter VIP logo

Comments (22)

BNNorman avatar BNNorman commented on June 25, 2024 1

Hmm, i think you need to bring a failing device to the next meetup otherwise its a lot of guesswork.

from air-quality-web.

bsimmo avatar bsimmo commented on June 25, 2024 1

@adamjennison reports it's working for him
it works for me on Win10 Chrome, Edge(EdgeHTML) Edge(Chromium)
and all the mobile Android device I could test on.

Many thanks, could see any other show stoppers (other than the veroni shading area often picking up the wrong sensor value for the wrong area, but I think we have an issue for that, it doesn't make it unusable)

from air-quality-web.

CrazyRobMiles avatar CrazyRobMiles commented on June 25, 2024

It looks like it might be this:
image
The message doesn't appear on a working load.

from air-quality-web.

CrazyRobMiles avatar CrazyRobMiles commented on June 25, 2024

Ha. Ignore that. Just done a reload on the working page and it worked fine, with that error. I've had a look at the code and it is just a sensible error message.

from air-quality-web.

CrazyRobMiles avatar CrazyRobMiles commented on June 25, 2024

Tried some different machines and it works OK on them. Maybe an issue with cookies and the migratin of the url to sensors

from air-quality-web.

bsimmo avatar bsimmo commented on June 25, 2024

This happens on all of mine, different browser different devices.
theat little box is
tippy-tooltip
it does not go away and close itself.

Everything loads in the background, but it's not usable.

I think it happened with the most recent update (1.3 or the sensor header change)

from air-quality-web.

BNNorman avatar BNNorman commented on June 25, 2024

Works ok on my amazon tablet with Silk browser. Though theres a significant lag between opening a chart and the graph appearing.

from air-quality-web.

sbrl avatar sbrl commented on June 25, 2024

Hey! That looks like the first-run tutorial isn't working correctly. The null cell polygons don't really any thing to do with that bit of the code.

Very strange. Which browsers is this in @CrazyRobMiles & @bsimmo? If it's an issue, we might just have to disable the first-run tutorial.

from air-quality-web.

CrazyRobMiles avatar CrazyRobMiles commented on June 25, 2024

I'm not sure if it is a browser thing. I think it is more likely that it uses a cookie to determine if it has displayed or not and gets stuck on devices where it hasn't been displayed. Could the change of url affected where it stores the cookie for the first run tutorial? (or am I just completely misunderstanding how it works?)

from air-quality-web.

CrazyRobMiles avatar CrazyRobMiles commented on June 25, 2024

The first run tutorial is a nice thing to have, but I think we can do without it if it is the cause of the problem.

from air-quality-web.

BNNorman avatar BNNorman commented on June 25, 2024

The cookie idea is easy to test. Perhaps ben could flush his out and retry?

from air-quality-web.

bsimmo avatar bsimmo commented on June 25, 2024

from air-quality-web.

bsimmo avatar bsimmo commented on June 25, 2024

from air-quality-web.

CrazyRobMiles avatar CrazyRobMiles commented on June 25, 2024

from air-quality-web.

bsimmo avatar bsimmo commented on June 25, 2024

Just looked at this on my PC again.
For now you can hit ESC * to bypass the failing tutorial* (the small rectangular box (Chrome/Edge)

For mobile (Android anyway) devices I would suggest not using it or showing it to anyone for now

(*as a side note, you may need to click in the little box and then press ESC)
(*assuming it is that)

from air-quality-web.

sbrl avatar sbrl commented on June 25, 2024

Whether the tutorial is launched or not is actually checked by using a localStorage key, not a cookie. This is done here:

https://github.com/ConnectedHumber/Air-Quality-Web/blob/dev/client_src/js/Tour.mjs#L141-L154

I could certainly put it behind a button. Let's try that.

from air-quality-web.

sbrl avatar sbrl commented on June 25, 2024

Fixed it. Turns out there was a change in the API in a recent update of Shepard.js, which is used for the tour. It should now be working on the beta version in ~10 minutes.

from air-quality-web.

sbrl avatar sbrl commented on June 25, 2024

There, it should be deployed now. Don't forget to reload without cache with Ctrl + Shift + R, and if you want the first-run wizard to appear again try a private browsing window.

If it works for everyone, then I'll release this to stable.

from air-quality-web.

BNNorman avatar BNNorman commented on June 25, 2024

beta works fine on my desktop (Windows 10) using Firefox.
However, the 'loading' circles take a long time to end and the charts take a long time to appear.

from air-quality-web.

sbrl avatar sbrl commented on June 25, 2024

Thanks for checking @BNNorman! Yeah, it is taking a while. It's because of the last_seen SQL query - it takes a long time on the dataset we've acquired lol.

Is there an index on readings.s_or_r? I think it might help

@bsimmo: Thanks. Yeah, I need to debug that.... again.

from air-quality-web.

BNNorman avatar BNNorman commented on June 25, 2024

Yes there is an index on s_or_r. Last seen would be max(s_or_r).

from air-quality-web.

sbrl avatar sbrl commented on June 25, 2024

Yeah, that's what it uses, @BNNorman. Hrm, might have to rethink that one :-/

from air-quality-web.

Related Issues (20)

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.