Skip to content

Stigmatoz/time-tracker-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Time tracker agent

The TimeTrackerAgent keeps track of the time you spend on any desktop applications.

Generic badge Generic badge

About The Project

The application runs as a Windows service and has an api endpoint. http://*:5050 Based on .net core 3.1.

Time tracking runs in the background and saves all data in an xml document along the path %ProgramData%/TimeTrackerAgent/Data for Windows. The application captures the active current window, detects the current program, and tracks the running time of the application. In addition, idle time is recorded when the user does nothing.

The application can be extended to work with other platforms (linux).

TimeTracker has a project to install from wix.

Example of xml data:


<?xml version="1.0" encoding="utf-8"?>
<Day xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Applications>
    <Application>
      <Name>TimeTrackerAgent.exe</Name>
      <Path>F:\time-tracker-agent\time-tracker-agent\src\TimeTrackerAgent\bin\Release\netcoreapp3.1\TimeTrackerAgent.exe</Path>
      <WindowTitle>F:\time-tracker-agent\time-tracker-agent\src\TimeTrackerAgent\bin\Release\netcoreapp3.1\TimeTrackerAgent.exe</WindowTitle>
      <SummaryTime>00:00:03</SummaryTime>
    </Application>
    <Application>
      <Name>Explorer.EXE</Name>
      <Path>C:\Windows\Explorer.EXE</Path>
      <WindowTitle />
      <SummaryTime>00:00:33</SummaryTime>
    </Application>
    <Application>
      <Name>notepad++.exe</Name>
      <Path>C:\Program Files\Notepad++\notepad++.exe</Path>
      <WindowTitle>C:\ProgramData\TimeTrackerAgent\Data\29.10.2021.xml - Notepad++ [Administrator]</WindowTitle>
      <SummaryTime>00:00:28</SummaryTime>
    </Application>
    <Application>
      <Name>chrome.exe</Name>
      <Path>C:\Program Files\Google\Chrome\Application\chrome.exe</Path>
      <WindowTitle>Zimbra: Финансы - Google Chrome</WindowTitle>
      <SummaryTime>00:50:49</SummaryTime>
    </Application>
    <Application>
      <Name>SearchApp.exe</Name>
      <Path>C:\Windows\SystemApps\Microsoft.Windows.Search_cw5n1h2txyewy\SearchApp.exe</Path>
      <WindowTitle />
      <SummaryTime>00:00:02</SummaryTime>
    </Application>
    <Application>
      <Name>StartMenuExperienceHost.exe</Name>
      <Path>C:\Windows\SystemApps\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\StartMenuExperienceHost.exe</Path>
      <WindowTitle />
      <SummaryTime>00:00:07</SummaryTime>
    </Application>
    <Application>
      <Name>devenv.exe</Name>
      <Path>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\devenv.exe</Path>
      <WindowTitle>Microsoft Visual Studio (Administrator)</WindowTitle>
      <SummaryTime>00:02:24</SummaryTime>
    </Application>
    <Application>
      <Name>taskmgr.exe</Name>
      <Path>C:\Windows\system32\taskmgr.exe</Path>
      <WindowTitle>Task Manager</WindowTitle>
      <SummaryTime>00:00:10</SummaryTime>
    </Application>
    <Application>
      <Name>vmware.exe</Name>
      <Path>C:\Program Files (x86)\VMware\VMware Workstation\vmware.exe</Path>
      <WindowTitle>Windows 10 x64 - VMware Workstation</WindowTitle>
      <SummaryTime>00:02:21</SummaryTime>
    </Application>
    <Application>
      <Name>InetMgr.exe</Name>
      <Path>C:\Windows\system32\inetsrv\InetMgr.exe</Path>
      <WindowTitle>Internet Information Services (IIS) Manager</WindowTitle>
      <SummaryTime>00:00:04</SummaryTime>
    </Application>
    <Application>
      <Name>Skype.exe</Name>
      <Path>C:\Program Files (x86)\Microsoft\Skype for Desktop\Skype.exe</Path>
      <WindowTitle>Skype</WindowTitle>
      <SummaryTime>00:00:06</SummaryTime>
    </Application>
    <Application>
      <Name>Telegram.exe</Name>
      <Path>C:\Users\Stigmat\AppData\Roaming\Telegram Desktop\Telegram.exe</Path>
      <WindowTitle>Telegram (3740)</WindowTitle>
      <SummaryTime>00:02:54</SummaryTime>
    </Application>
    <Application>
      <Name>LockApp.exe</Name>
      <Path>C:\Windows\SystemApps\Microsoft.LockApp_cw5n1h2txyewy\LockApp.exe</Path>
      <WindowTitle />
      <SummaryTime>00:00:09</SummaryTime>
    </Application>
    <Application>
      <Name>Fork.exe</Name>
      <Path>C:\Users\Stigmat\AppData\Local\Fork\app-1.67.1\Fork.exe</Path>
      <WindowTitle>Fork</WindowTitle>
      <SummaryTime>00:02:29</SummaryTime>
    </Application>
  </Applications>
  <Date>10/29/2021</Date>
  <ActiveTime>01:02:53</ActiveTime>
  <IdleTime>01:08:29</IdleTime>
</Day>