{"id":25171255,"url":"https://github.com/basemax/wakatimeteamreport","last_synced_at":"2025-04-03T21:20:44.113Z","repository":{"id":182039405,"uuid":"667836014","full_name":"BaseMax/WakatimeTeamReport","owner":"BaseMax","description":"This Python script generates a daily report for the team lead to monitor the hourly work of team members. It tracks the number of hours spent by team members on various projects and sends the report to a Telegram group and the director's email.","archived":false,"fork":false,"pushed_at":"2023-07-19T05:04:40.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T17:08:10.422Z","etag":null,"topics":["api","api-wakatime","python","python-wakatime","remote","remote-work","script","team","team-wakatime","team-work","teamwork","wakatime","wakatime-api","wakatime-client","wakatime-python","wakatime-script","wakatime-software","wakatime-team","work","workflow"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BaseMax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-18T12:09:53.000Z","updated_at":"2023-07-18T12:46:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"dc1181ec-c1d5-45d0-a8ab-80eeb41eb298","html_url":"https://github.com/BaseMax/WakatimeTeamReport","commit_stats":{"total_commits":12,"total_committers":2,"mean_commits":6.0,"dds":0.08333333333333337,"last_synced_commit":"c038ce51d49a107575e0c98e17903cd341335c51"},"previous_names":["basemax/wakatimeteamreport"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FWakatimeTeamReport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FWakatimeTeamReport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FWakatimeTeamReport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FWakatimeTeamReport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaseMax","download_url":"https://codeload.github.com/BaseMax/WakatimeTeamReport/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247079198,"owners_count":20880015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-wakatime","python","python-wakatime","remote","remote-work","script","team","team-wakatime","team-work","teamwork","wakatime","wakatime-api","wakatime-client","wakatime-python","wakatime-script","wakatime-software","wakatime-team","work","workflow"],"created_at":"2025-02-09T09:19:42.556Z","updated_at":"2025-04-03T21:20:44.090Z","avatar_url":"https://github.com/BaseMax.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wakatime Team Member Daily Report Generator\n\nThis Python script generates a daily report for the team lead to monitor the hourly work of team members. It tracks the number of hours spent by team members on various projects and sends the report to a Telegram group and the director's email.\n\n## Prerequisites\n\nBefore running the script, ensure that you have the following dependencies installed:\n\n- time\n- pytz\n- email\n- smtplib\n- requests\n- datetime\n\n## Configuration\n\nTo use this script, you need to set up the configuration in the config.py file. Please complete the following information:\n\n### User Information\n\nProvide the names of team members as keys and their respective Wakatime API keys as values in the USERS dictionary:\n\n```python\nUSERS = {\n    'Max': '.............',\n    # Add more users here if needed\n}\n```\n\n### Time Configuration\n\nSet the timezone and the time when you want the script to send the report:\n\n```python\nTIME_ZONE = 'Asia/Tehran'\nSEND_AT_HOUR = 0\nSEND_AT_MINUTE = 0\nSEND_AT_SECOND = 0\nSEND_AT_MICROSECOND = 0\n```\n\n### Telegram Bot and Chat Information\n\nConfigure the Telegram bot token and chat ID:\n\n```python\nBOT_TOKEN = '473681081:xxxxxxxxxxx'\nCHAT_ID = '-xxxxxxxxxxx'\n```\n\n### Date Range for the Coding Activity Report\n\nSet the start and end dates for the coding activity report. By default, it will be set to today's date:\n\n```python\nTODAY = datetime.now().strftime('%Y-%m-%d')\nSTART_DATE = TODAY\nEND_DATE = TODAY\n```\n\n### Email Configuration\n\nProvide the necessary information for sending the daily report via email:\n\n```python\nEMAIL_SUBJECT = f\"Coding Activity Report - {TODAY}\"\nEMAIL_SENDER = 'max@asrez.com'\nEMAIL_RECEIVERS = [\n  'maxbasecode@gmail.com',\n  '98@hi2.in'\n]\nEMAIL_PASSWORD = 'XXXX'\n```\n\n## How to Run\n\n- Install the required dependencies mentioned in the \"Prerequisites\" section.\n\n- Configure the config.py file with the necessary information.\n\n- Run the script. It will generate the daily report for team members and send it to the Telegram group and email recipients based on the configured schedule.\n\n- Please make sure to keep the script running daily to get the regular reports as scheduled.\n\nNote: Replace the placeholder values marked with ............., xxxxxxxxxxx, and XXXX in the `config.py` file with the actual API keys, tokens, chat IDs, and passwords for proper functionality.\n\nCopyright 2023, Max Base\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fwakatimeteamreport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasemax%2Fwakatimeteamreport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fwakatimeteamreport/lists"}