Skip to content
/ mahakala Public

Small command-line program to fetch your state from the NovaTime© time tracking system

License

Notifications You must be signed in to change notification settings

kyusu/mahakala

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mahakala

Node.js CI Libraries.io dependency status for GitHub repo Maintainability Known Vulnerabilities Coverage Status Maintenance GitHub license DeepScan grade

Purpose

Mahakala is just a small command-line application which is able to query a NovaTime© time tracking system for your state (present/absent).

Motivation

My current employer is using a time tracking system. And I, not being used to a punch clock, keep forgetting to "punch in" in the morning or after the lunch break which means I'm essentially working for free then. So I was looking for way to see my time tracking state in the menu bar of my mac. BitBar is an excellent way of adding information to your menu bar, but how to get the information from our NovaTime© installation?

In addition to the practical reason mentioned above, I was also looking for an excuse to try out monad transformers or to be more precise ReaderT as way to improve the testability of effectful code.

Usage

In our home directory you have to create a file called .mahakala. The content of the file should be JSON of the following schema:

{"userName": "1234", "password": "secret", "url": "http://yourLocalNovaTimeInstallation/cgi-bin/htm_term.cgi"}

where userName is the account name/number which you normally use to sign in. password does not need any explanation and url should point to your local NovaTime© installation.

After that you can use run mahakala and it should output the following:

  • 💓 – The system considers you being present
  • 💔 – The system considers you being absent
  • 💥 - Mahakala was not able to fetch the state during error, e.g. no network connection

Disclaimer

NOVAtime and NOVAtime logo are registered trademarks of NOVAtime Technology, Inc. The name NOVAtime Technology, Inc. and NOVAtimeAnywhere are registered trademarks of NOVAtime.

About

Small command-line program to fetch your state from the NovaTime© time tracking system

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •