Code Monkey home page Code Monkey logo

imls-pi-stack's People

Contributors

cantsin avatar jadudm avatar

Watchers

 avatar  avatar  avatar

Forkers

jadudm

imls-pi-stack's Issues

Should `session-counter` set monitoring mode?

Can we count on this to happen before we run? Does this happen in the playbook/service unit space? Does it ever "undo" itself? If so, should session-counter be doing this work instead of the unit files?

Or, should we have a unit file that just makes sure we're in monitoring mode?

Write duration timestamp outside duration bar

The duration stamp is normally written "inside" the duration bar.

When writing short durations (>10m), the duration overlaps with the timestamp of the start, because there is not enough room to write the stamp in the image.

We should write it to the right of the duration bar in those cases.

Merging sessions in old data

Our initial build did not reboot reliably. As a result, some sessions spanned many, many days.

The tool in imls-data-convert does the following:

  • for each session in the data
    • for event in the session
      • Remap mfg id, patron id
      • set session_id to the day

The problem is that some sessions will start and stop on the same day. The result is a broken merge of sessions.

More thought is needed. The reason for going session-by-session is because the mfg id and patron ids change from one session to the next. Perhaps clearing the mapping table, but not the counter... I think that would work.

Write an empty image if no durations were in range

We want to leave a clear breadcrumb trail for users.

If there are no durations in range when it comes time to write an image, we should leave an empty image behind (or, something) when we encounter the situation where everything is filtered out (or no wifi devices were ever found).

Restart option in wordpair entry

When entering wordpairs, we should have a restart option, in case a typo is made or a pair is skipped.

We should probably also... just finish when we hit 40 characters read in. There should be no reason to type done.

Session id tracking is redundant state

Instead of a counter in the DB, it might be better to just ask what DISTINCT session IDs are in the durations table (at startup), and then increment by one.

If we do this every time we startup, and simply track the session ID in RAM as we execute, we'll always have a correct session ID, and we can eliminate a piece of state.

(I think. That bears more thinking/discussion. But I wouldn't mind removing an explicit piece of state when it already exists somewhere else, and the possibility of it getting out-of-sync is real.)

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.