Giter VIP home page Giter VIP logo

Comments (7)

BNNorman avatar BNNorman commented on June 16, 2024 2

A cron job has been added which should run once per week at 5a.m.

It will set/reset the device visible flag. I.e. if a device hasn't sent data for 31 days or more visible is set to 0. If the device then comes back on line it will be made visible again.

from air-quality-web.

sbrl avatar sbrl commented on June 16, 2024 1

Fixed - this should show up in beta soon.

We've already got a task in #36 about the marker colouring, so I'm going to close this issue.

from air-quality-web.

bsimmo avatar bsimmo commented on June 16, 2024

on the plus side I makes the colour mapping make more sense.

#2 idea
after this a way to automate it,

  • a cron job to check on date/last-sceen to flip the setting and vice versa.

from air-quality-web.

BNNorman avatar BNNorman commented on June 16, 2024

cron job is a good idea but deciding how long to wait is the question. Less than a month could be waiting for repair. longer could be dead and buried.
Won't be quick - need to write a python program in amongst the current pixelbot stuff I'm doing whilst Rob focusses on writing his next source of income.

from air-quality-web.

sbrl avatar sbrl commented on June 16, 2024

Great catch - thanks for this. I think a filter in the SQL is a great idea, as it allows us to hide dead / test / irrelevant sensors.

However, I think there's room for colour-coding the SVG marker too. Since we already have last_seen, the marker shouldn't be too much of a problem, but dynamically setting the marker in Leaflet.js in a manner that's both future-proof and extensible in the future is more bothersome than it should be (but I've now got an idea of how to do it - it's just a case of doing it).

from air-quality-web.

BNNorman avatar BNNorman commented on June 16, 2024

from air-quality-web.

sbrl avatar sbrl commented on June 16, 2024

Cool, thansk @BNNorman! I'll let you know when I implement the device marker colouring.

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.