In the repository you can see the "sampledata" folder, which contains 5 test files, with which you can see the functionality of the program
SimpleDailyTracker.UI folder contains the json file AppConfiguration.json, which contains information for automating the import and export of data:
{
"DirectorySettings": {
"ImportDirectory": "directory", // D:\\DailyInfo\\Import\\
"ExportDirectory": "directory" // D:\\DailyInfo\\Export\\
},
"FileSearch": {
"Extension": ".json", // EXTENSION OF IMPORT FILES
"SearchPattern": "day*.json", // SEARCH PATTERN TO FIND FILES FOR IMPORT
"DayFinderRegex": "day([\\d]+)\\.json$" // REGULAR EXPRESSION WHICH IS USED TO FIND DAY OF FILE (FOR GROUPING DATA IN CHART)
}
}
- Refresh button: imports all files from ImportDirectory
- Add button: select files for import
- At the left you can see all users with: Name, Average Steps Count, Best Steps Count, Worst Steps Count
- At th right a chart by day for selected user (red dot shows the highest result of all time for this user)
- At users list some users are highlited with orange color (users whose best or worst results differ from the average number of steps for the entire period (for this user) by more than 20%)
Application supports 3 types of export: XML, CSV and JSON:
- Select user for export
- Select type of export
- Click on button
- Look at ExportDirectory (configuring in AppConfiguration.json)