Coder Social home page Coder Social logo

wtwd's People

Contributors

nop77svk avatar

Watchers

 avatar

wtwd's Issues

multithreaded event log querying

Event logs with a few days worth of data start to get "sluggish" when queried. Try multithreading the event log querying process, since there are atm 4 distinct queries anyway.

optional daily/weekly summaries

As a CLI option, calculate and display daily/weekly work time summaries.

Note: Sequences of On/Off events must be taken into consideration to prevent including, e.g., the wakeup->sleep (without unlocking->locking) sessions into the calculations, as these usually indicate accidental or purely technical/maintenance PC startups/shutdowns.

customizable period of event log query

Currently, the event log is being queried for events at most 1 month old. Add a CLI option for specifying a custom period of events of interest with 1 month as the default.

init-lock-unlock error when no elevated privileges

C:\Users\...>wtwd init-lock-unlock
Unhandled exception. System.Security.SecurityException: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.
   at System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly, Boolean wantToCreate)
   at System.Diagnostics.EventLog.SourceExists(String source, String machineName, Boolean wantToCreate)
   at System.Diagnostics.EventLog.SourceExists(String source, String machineName)
   at System.Diagnostics.EventLog.SourceExists(String source)
   at NoP77svk.wtwd.cli.InitLockUnlock.InitLockUnlockProgram.InitializeEventSource()
   at NoP77svk.wtwd.cli.InitLockUnlock.InitLockUnlockProgram.Execute(InitLockUnlockConfig cli)
   at NoP77svk.wtwd.cli.InitLockUnlock.InitLockUnlockProgram.Execute(InitLockUnlockCLI cli)
   at NoP77svk.wtwd.cli.Program.<>c.<Main>b__0_3(InitLockUnlockCLI cli)
   at CommandLine.ParserResultExtensions.WithParsed[T](ParserResult`1 result, Action`1 action)
   at NoP77svk.wtwd.cli.Program.Main(String[] args)

human/machine-readable output option

Currently, the output is in human readable format with indentation et al.

Make the human-readable formatting optional, allowing for output in machine-readable (CSV/JSON/XML/...) format for possible further processing.

OS(+version) detection and validation

Upon wtwd startup, detect the OS and its version and validate it against the list of tested OS versions. If an unsupported OS, throw an error and finish. If an untested OS version, display a warning.

external config file for default settings

To allow users to use their own settings/options without specifying them all the time via CLI, add an XML/JSON-based config file to the CLI app. Priority of resolution then will be:

  1. CLI-supplied settings
  2. Config-file settings
  3. Hardcoded (C# code) settings

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.