Skip to content

dejanzelic/coxusage-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

It looks like Cox started to use "Incapsula" to block requests. This means that this script no longer works. Cox is actively making it more difficult for us to check out data caps. Please join me in contacting cox and requesting that they create and API endpoint for us to be able to obtain usage metrics.

coxusage-docker

Build

docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t dejandayoff/coxusage:dev --push .

Usage

docker container run --rm --env-file secret/cox.env -v ${PWD}/output/:/data/ dejandayoff/coxusage

The script outputs to /data/ so the mapped destination must stay /data/. Adjust the source mapping to your needs (ie. ~/.homeassistant/config/:/data/)

Contents of secret/cox.env

COX_USER=username
COX_PASSWORD=password
JSON_FILENAME=coxusage.json

Pro Tips

Run the container daily in your crontab!

Check out: https://github.com/ntalekt/coxusage-docker For examples of integrating into Home Assistant

About

Get the usage data of Cox

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published