{"id":50480370,"url":"https://github.com/gnomical/edgerouter_poe_cron","last_synced_at":"2026-06-01T17:02:24.013Z","repository":{"id":353475950,"uuid":"310493382","full_name":"gnomical/edgerouter_poe_cron","owner":"gnomical","description":"scripts and instructions for controlling the poe on an edgerouter via task-scheduler","archived":false,"fork":false,"pushed_at":"2020-11-06T05:33:18.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-24T04:32:54.649Z","etag":null,"topics":["cron","edgerouter","task-scheduler"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/gnomical.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-11-06T04:41:56.000Z","updated_at":"2023-02-12T11:57:25.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gnomical/edgerouter_poe_cron","commit_stats":null,"previous_names":["gnomical/edgerouter_poe_cron"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/gnomical/edgerouter_poe_cron","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnomical%2Fedgerouter_poe_cron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnomical%2Fedgerouter_poe_cron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnomical%2Fedgerouter_poe_cron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnomical%2Fedgerouter_poe_cron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gnomical","download_url":"https://codeload.github.com/gnomical/edgerouter_poe_cron/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnomical%2Fedgerouter_poe_cron/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33784631,"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-01T02:00:06.963Z","response_time":115,"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":["cron","edgerouter","task-scheduler"],"created_at":"2026-06-01T17:02:23.277Z","updated_at":"2026-06-01T17:02:24.001Z","avatar_url":"https://github.com/gnomical.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# edgerouter_poe_cron\nscripts and instructions for controlling the poe on an edgerouter via cron / task-scheduler\n\n### Customize the scripts\nIn order to utilize these scripts you must alter them to the specifics of your network devices. The line of interest is the `set` line of both the poe_on and poe_off scripts. \n\n    $WR set interfaces ethernet \u003c\u003ceth4\u003e\u003e poe output \u003c\u003coff\u003e\u003e\n    \nThe available values you can use in place of `\u003c\u003ceth4\u003e\u003e` will depend on your router. On the edgerouter POE all 5 jacks are capable of supplying power so the available options are (`eth0`, `eth1`, `eth2`, `eth3`, `eth4`)  \n\nThe available values you can use in place of `\u003c\u003coff\u003e\u003e` are (`24v`, `48v`, `off`)  \nYou should exercise caution when setting the voltage because setting the wrong value could result in the hardware that is connected becoming damaged.\nThe appropriate setting for your specific connected device should be found in the device manufacturers documentation\n\nI use two different Unifi APs\n1. AC Lite which requires `24v` \n1. AC NanoHD which requires `48v`\n\n### Where to place the scripts\nSSH onto your edgerouter and place the scripts at `/config/user-data/`\nThis location will be preserved during firmware upgrades so that you will not need to perform this task again in the future.\n\n### Don't go editing the crontab\nAt this point you are ready to enable the cron jobs, however, for the sake of these changes surviving a firmware upgrade you must add them in a proprietary fashion.\n1. SSH onto your edgerouter\n1. enter configure mode by typing  \n        \n        configure\n        \n1. two commands will be required for each cron entry\n\n        set system task-scheduler task POWERDOWN crontab-spec \"0 6 * * *\"  \n        set system task-scheduler task POWERDOWN executable path /config/user-data/poe_off.sh  \n    \n1. repeat that for the POWERON task and any other schedules you would like to program\n1. once all task-scheduler entries have been created you must commit and save them\n\n        commit  \n        save  \n        exit\n    \n### Helpful Hint\nWhile initially setting this up or debugging your schedules it is helpful to do so while physically hardwired to your router. That way if you accidentally turn an access point off you will still be connected. Just be sure not to turn on POE to the jack you are connected to! \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnomical%2Fedgerouter_poe_cron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgnomical%2Fedgerouter_poe_cron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnomical%2Fedgerouter_poe_cron/lists"}