{"id":20084463,"url":"https://github.com/pierregode/zaptecteamsnotifier","last_synced_at":"2026-05-24T16:33:21.638Z","repository":{"id":198407097,"uuid":"700775559","full_name":"PierreGode/ZaptecTeamsNotifier","owner":"PierreGode","description":"Send notifications of availible Zaptec chargers that are availible in your Zaptec account to Teams","archived":false,"fork":false,"pushed_at":"2023-10-26T14:27:38.000Z","size":89,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T14:23:40.505Z","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":"gpl-3.0","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-10-05T09:16:23.000Z","updated_at":"2023-10-05T09:16:56.000Z","dependencies_parsed_at":"2023-10-16T11:29:45.974Z","dependency_job_id":"ae9f8c38-c473-4fc7-87f4-815da39ebcb3","html_url":"https://github.com/PierreGode/ZaptecTeamsNotifier","commit_stats":null,"previous_names":["pierregode/zaptecteamsnotifier"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PierreGode/ZaptecTeamsNotifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PierreGode%2FZaptecTeamsNotifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PierreGode%2FZaptecTeamsNotifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PierreGode%2FZaptecTeamsNotifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PierreGode%2FZaptecTeamsNotifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PierreGode","download_url":"https://codeload.github.com/PierreGode/ZaptecTeamsNotifier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PierreGode%2FZaptecTeamsNotifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33442524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-24T13:13:05.286Z","status":"ssl_error","status_checked_at":"2026-05-24T13:13:03.728Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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:06.786Z","updated_at":"2026-05-24T16:33:21.622Z","avatar_url":"https://github.com/PierreGode.png","language":"JavaScript","funding_links":["https://ko-fi.com/J3J2EARPK"],"categories":[],"sub_categories":[],"readme":"# ZaptecTeamsNotifier\n\n\n![image](https://github.com/PierreGode/ZaptecTeamsNotifier/assets/8579922/4045aa5a-f37a-4df1-8192-ee26e2a8e7b2)\n\n\n\nSend notifications of availible Zaptec chargers that are availible in your Zaptec account to Teams\n\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/J3J2EARPK)\n\nCreate a .env file: At the root of your project, create a file named .env\n\nClone this repository\n```\nhttps://github.com/PierreGode/ZaptecTeamsNotifier.git\n```\n```\ncd ZaptecTeamsNotifier\n```\n```\nnpm install axios\n```\n\n```\nnpm install dotenv\n```\n\n```\ntouch .env\n```\n\n\nAdd your secrets/configuration: Inside this file, you can set your environment variables as key-value pairs:\n\n```\nZAPTEC_USERNAME=myUsername\nZAPTEC_PASSWORD=myPassword\nTEAMS_WEBHOOK_URL=webhookUrl\nCOMPANY_NAME=word\n```\nCOMPANY_NAME= comapany name or word to be removed from status eg api presents your chargers as company 01 company 02 company 03 company 04 you can remove the word company by adding it to .env COMPANY_NAME=company and the result will be 01 02 03 04\u003cp\u003e\nAccess in code: With the help of libraries like dotenv, you can easily load these variables into your application's environment. For Node.js applications, after setting up dotenv, you can access these variables using process.env.VARIABLE_NAME.\nnote that it is never a good practice to store passwords in clear text on a file, this example is to get started locally.\n\nCreate a .gitignore file\n```\ntouch .gitignore\n```\n\nAdd .env to .gitignore: This is crucial. The .gitignore file tells Git which files or directories to ignore in a project. By adding .env to .gitignore, you ensure that the .env file is not committed to your repository, keeping your secrets safe. The .gitignore entry would simply look like:\n```\n.env\n```\nBy doing this, even if you accidentally try to commit the .env file, Git will ignore it, ensuring that your secrets remain local and are not exposed in the remote repository.\n\nRunning 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\nZaptecTeamsNotifier will send notifications about a charger when it becomes available, updates are pulled every 3 minutes but notifications will not be repeated until the status is changed.\nnotifocation is only sent when OperatingMode == 1 and 1 = Charger is available! and OperatingMode == 3 Charger has stopped charging\u003cp\u003e\nNotifications are silenced after work hours 16-06 and weekends. this can be  configured in config.js\u003cp\u003e\n//@Created By Pierre Gode\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpierregode%2Fzaptecteamsnotifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpierregode%2Fzaptecteamsnotifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpierregode%2Fzaptecteamsnotifier/lists"}