{"id":21296951,"url":"https://github.com/reddec/apcsrv","last_synced_at":"2025-07-24T11:11:40.789Z","repository":{"id":81702446,"uuid":"54283952","full_name":"reddec/apcsrv","owner":"reddec","description":"Docker based APC UPS monitor that posts parsed status of one APC over HTTP POST in JSON format.","archived":false,"fork":false,"pushed_at":"2016-03-19T20:16:08.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-09T00:06:38.943Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/reddec.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":"2016-03-19T19:41:13.000Z","updated_at":"2022-01-07T14:17:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"8a3b498e-5c3c-448f-8bf4-f72f9e5e56b6","html_url":"https://github.com/reddec/apcsrv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddec%2Fapcsrv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddec%2Fapcsrv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddec%2Fapcsrv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddec%2Fapcsrv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reddec","download_url":"https://codeload.github.com/reddec/apcsrv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243765050,"owners_count":20344526,"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":[],"created_at":"2024-11-21T14:31:17.140Z","updated_at":"2025-03-15T17:27:44.777Z","avatar_url":"https://github.com/reddec.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# APC Service\n\nDocker based APC UPS monitor that posts parsed status of one APC over HTTP POST in JSON format.\n\n# Docker\n\nUse image `reddec/apcsrv` (by [Docker HUB](https://hub.docker.com/r/reddec/apcsrv))\n\nUseful environment:\n\n* `TARGET`       - (*required*) URL where to POST data in JSON format. Supports redirects (e.x. [Redirect](http://github.com/reddec/redirect/))\n* `APC_APC_HOST` - (*required*) IP address of APC UPS with SNMP access\n* `APC_PORT`     - SNMP APC UPS port. Default is 161\n* `APC_NAME`     - APC custom name. Any string for ID\n* `INTERVAL`     - Interval in seconds between checks. Default is 3\n\n# Example\n\n    docker run --rm -i                                 \\\n      -e APC_HOST=192.168.1.2                          \\\n      -e \"TARGET=http://192.168.1.3:10100/collect/apc\" \\\n      reddec/apcsrv\n\n\n# JSON Example\n\n\n```json\n{\n    \"name\": {\n        \"type\": \"string\",\n        \"value\": \"APC_NAME\"\n    },\n    \"alarmdel\": {\n        \"type\": \"seconds\",\n        \"value\": \"5\"\n    },\n    \"stesti\": {\n        \"type\": \"\",\n        \"value\": \"336\"\n    },\n    \"dwake\": {\n        \"type\": \"seconds\",\n        \"value\": \"000\"\n    },\n    \"battv\": {\n        \"type\": \"volts\",\n        \"value\": 218.0\n    },\n    \"lotrans\": {\n        \"type\": \"volts\",\n        \"value\": 154.0\n    },\n    \"\": {\n        \"type\": \"+0000\",\n        \"value\": \"28\"\n    },\n    \"status\": {\n        \"type\": \"\",\n        \"value\": \"ONLINE\"\n    },\n    \"hitrans\": {\n        \"type\": \"volts\",\n        \"value\": 242.0\n    },\n    \"driver\": {\n        \"type\": \"\",\n        \"value\": \"SNMP UPS Driver\"\n    },\n    \"statflag\": {\n        \"type\": \"status flag\",\n        \"value\": \"0x07000008\"\n    },\n    \"sense\": {\n        \"type\": \"\",\n        \"value\": \"Unknown\"\n    },\n    \"firmware\": {\n        \"type\": \"\",\n        \"value\": \"476.17.W\"\n    },\n    \"itemp\": {\n        \"type\": \"c internal\",\n        \"value\": 14.0\n    },\n    \"mbattchg\": {\n        \"type\": \"percent\",\n        \"value\": \"5\"\n    },\n    \"bcharge\": {\n        \"type\": \"percent\",\n        \"value\": 100.0\n    },\n    \"mintimel\": {\n        \"type\": \"minutes\",\n        \"value\": \"3\"\n    },\n    \"maxlinev\": {\n        \"type\": \"volts\",\n        \"value\": 227.0\n    },\n    \"battdate\": {\n        \"type\": \"\",\n        \"value\": \"11/06/15\"\n    },\n    \"end_apc\": {\n        \"type\": \"\",\n        \"value\": \"2016-03-19 19:28:43 +0000\"\n    },\n    \"maxtime\": {\n        \"type\": \"seconds\",\n        \"value\": \"0\"\n    },\n    \"lastxfer\": {\n        \"type\": \"\",\n        \"value\": \"Automatic or explicit self test\"\n    },\n    \"cumonbatt\": {\n        \"type\": \"seconds\",\n        \"value\": \"0\"\n    },\n    \"upsname\": {\n        \"type\": \"\",\n        \"value\": \"XXXXYYYZZZ\"\n    },\n    \"xoffbatt\": {\n        \"type\": \"\",\n        \"value\": \"N/A\"\n    },\n    \"model\": {\n        \"type\": \"\",\n        \"value\": \"Smart-UPS RT 10000 XL\"\n    },\n    \"nomoutv\": {\n        \"type\": \"volts\",\n        \"value\": \"220\"\n    },\n    \"apc\": {\n        \"type\": \"\",\n        \"value\": \"001,049,1179\"\n    },\n    \"date\": {\n        \"type\": \"\",\n        \"value\": \"2016-03-19 19:28:43 +0000\"\n    },\n    \"minlinev\": {\n        \"type\": \"volts\",\n        \"value\": 218.0\n    },\n    \"extbatts\": {\n        \"type\": \"\",\n        \"value\": \"1\"\n    },\n    \"starttime\": {\n        \"type\": \"\",\n        \"value\": \"2016-03-19 19:28:25 +0000\"\n    },\n    \"ambtemp\": {\n        \"type\": \"c\",\n        \"value\": 0.0\n    },\n    \"loadpct\": {\n        \"type\": \"percent load capacity\",\n        \"value\": 17.0\n    },\n    \"dshutd\": {\n        \"type\": \"seconds\",\n        \"value\": \"020\"\n    },\n    \"cable\": {\n        \"type\": \"\",\n        \"value\": \"Ethernet Link\"\n    },\n    \"humidity\": {\n        \"type\": \"percent\",\n        \"value\": 0.0\n    },\n    \"serialno\": {\n        \"type\": \"\",\n        \"value\": \"xxxxxxxxxxxxxxxxx\"\n    },\n    \"numxfers\": {\n        \"type\": \"\",\n        \"value\": \"0\"\n    },\n    \"linev\": {\n        \"type\": \"volts\",\n        \"value\": 226.0\n    },\n    \"retpct\": {\n        \"type\": \"percent\",\n        \"value\": 0.0\n    },\n    \"badbatts\": {\n        \"type\": \"\",\n        \"value\": \"0\"\n    },\n    \"version\": {\n        \"type\": \"\",\n        \"value\": \"3.14.10 (13 September 2011) debian\"\n    },\n    \"selftest\": {\n        \"type\": \"\",\n        \"value\": \"OK\"\n    },\n    \"timeleft\": {\n        \"type\": \"minutes\",\n        \"value\": 59.0\n    },\n    \"upsmode\": {\n        \"type\": \"\",\n        \"value\": \"Stand Alone\"\n    },\n    \"hostname\": {\n        \"type\": \"\",\n        \"value\": \"yyyyyyyyyyyy\"\n    },\n    \"dlowbatt\": {\n        \"type\": \"minutes\",\n        \"value\": \"02\"\n    },\n    \"tonbatt\": {\n        \"type\": \"seconds\",\n        \"value\": \"0\"\n    },\n    \"outputv\": {\n        \"type\": \"volts\",\n        \"value\": 221.0\n    },\n    \"mandate\": {\n        \"type\": \"\",\n        \"value\": \"01/12/08\"\n    },\n    \"linefreq\": {\n        \"type\": \"hz\",\n        \"value\": 50.0\n    }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freddec%2Fapcsrv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freddec%2Fapcsrv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freddec%2Fapcsrv/lists"}