{"id":20084454,"url":"https://github.com/pierregode/zaptecunifiednotifier","last_synced_at":"2026-06-08T11:31:45.816Z","repository":{"id":213494171,"uuid":"734249995","full_name":"PierreGode/ZaptecUnifiedNotifier","owner":"PierreGode","description":"ZaptecUnifiedNotifier Unified alert system for Zaptec data, seamlessly integrating notifications to both Slack and Microsoft Teams.\"","archived":false,"fork":false,"pushed_at":"2024-01-05T09:29:32.000Z","size":366,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T14:23:40.277Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PierreGode.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-21T08:19:07.000Z","updated_at":"2023-12-21T08:28:56.000Z","dependencies_parsed_at":"2023-12-21T10:44:58.610Z","dependency_job_id":"a2044cba-3622-4e43-af5f-06eedcd1192d","html_url":"https://github.com/PierreGode/ZaptecUnifiedNotifier","commit_stats":null,"previous_names":["pierregode/zaptecunifiednotifier"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PierreGode/ZaptecUnifiedNotifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PierreGode%2FZaptecUnifiedNotifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PierreGode%2FZaptecUnifiedNotifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PierreGode%2FZaptecUnifiedNotifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PierreGode%2FZaptecUnifiedNotifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PierreGode","download_url":"https://codeload.github.com/PierreGode/ZaptecUnifiedNotifier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PierreGode%2FZaptecUnifiedNotifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34061121,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-13T15:52:05.932Z","updated_at":"2026-06-08T11:31:45.795Z","avatar_url":"https://github.com/PierreGode.png","language":"JavaScript","funding_links":["https://ko-fi.com/J3J2EARPK"],"categories":[],"sub_categories":[],"readme":"# ZaptecSlackNotifier\n\n\n![image](https://github.com/PierreGode/ZaptecSlackNotifier/assets/8579922/badc54dc-ca64-4c54-9ad3-786d857eadc3)\n\n![image](https://github.com/PierreGode/ZaptecTeamsNotifier/assets/8579922/4045aa5a-f37a-4df1-8192-ee26e2a8e7b2)\n\nSend notifications of availible Zaptec chargers that are availible in your Zaptec account to Slack or Teams\n\n\nNode.js \u0026 npm: This is the runtime environment for executing JavaScript code server-side.\n\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/J3J2EARPK)\n\n\n## Clone this repository\n```\ngit clone https://github.com/PierreGode/ZaptecUnifiedNotifier.git\n```\n```\ncd ZaptecUnifiedNotifier\n```\n## Prerequisites\nBefore you proceed, ensure you have the following:\n```\nsudo apt-get install npm\n```\n```\nnpm install axios @slack/web-api\n```\n\n```\nnpm install dotenv\n```\n\n## Setup\nCreate a .env file: At the root of your project, create a file named .env\n```\ntouch .env\n```\n\nAdd your secrets/configuration: Inside this file, you can set your environment variables as key-value pairs:\n# Zaptec Credentials\n```\nZAPTEC_USERNAME=myUsername\nZAPTEC_PASSWORD=myPassword\n```\n# Slack Configuration\n```\nSLACKBOT_NAME=ZaptecBot\nSLACKBOT_ICON=https://raw.githubusercontent.com/PierreGode/ZaptecSlackNotifier/main/images/zaptec.png\nSLACK_WEBHOOK_URL=myWebhookURL\nSLACK_TOKEN=BotUserOAuthToken\nSLACK_WEBHOOK_PRIVATE_URL=myPrivateWebhookURL\n```\n\n# Microsoft Teams Configuration\n```\nTEAMS_WEBHOOK_URL=myTeamsWebhookURL\nTEAMS_WEBHOOK_PRIVATE_URL=myPrivateTeamsWebhookURL\n```\n```\n# General Settings\nCOMPANY_NAME=word\nEXCLUDE_DEVICES=devicename1,devicename2\n```\n\n Note Descriptions\n COMPANY_NAME: Removes specified word from status (e.g., 'company' from 'company 01').\n SLACK_WEBHOOK_PRIVATE_URL: Posts charge complete notifications privately. Defaults to SLACK_WEBHOOK_URL if not set.\n TEAMS_WEBHOOK_PRIVATE_URL: Same as SLACK_WEBHOOK_PRIVATE_URL but for Teams.\n SLACKBOT_ICON/SLACKBOT_NAME: Customize Slack message appearance.\n EXCLUDE_DEVICES: Exclude specific devices from notifications.\n\n Security Note: Avoid storing sensitive information in plaintext. Use secure methods for production.\n\n## Running the Notifier\nOnce you've set up the configurations, run the notifier using:\n```\nnode node.js\n```\npreferably setup an @reboot sleep 60 \u0026\u0026 /usr/local/bin/node /home/pi/ZaptecSlackNotifier/node.js \u003e\u003e /var/log/slack.log 2\u003e\u00261 in crontab\n\n/Created by Pierre Gode\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpierregode%2Fzaptecunifiednotifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpierregode%2Fzaptecunifiednotifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpierregode%2Fzaptecunifiednotifier/lists"}