Usage_remaining = tree.find('account').find('usage_remaining').text Resp = requests.post(USAGE_URL, data=usage_payload)Įnd_date = tree.find('account').find('counter_end').text Tree = omstring(ntent)Īccess_token = tree.find('access_token').text Resp = requests.post(LOGIN_URL, data=login_payload)
#Comcast internet usage monitor password
Print("Error: Username and Password are required") #PASSWORD = os.environ.get('xxxxxxxxxxxx') #USERNAME = os.environ.get('xxxxxxxxxxxx') However, if I log into the Comcast website to view my usage I get a more believable number 298.Īnyone have any thoughts on this? Know of other usage monitoring scripts?įrom _future_ import absolute_import, division, print_function Also interesting is if I run the Comcast usage app (Window) it too shows the same usage, 291. If I run the script manually today, same thing. When I checked the log this morning, the timestamps are correct but the usage didn't change. I added an entry in crontab to run it every 3 hours. media/ext_disk/My Documents - Home/Google Drive/052016_comcast.csv Comcast/Xfinity Data Usage for the Month.ĩ7.3720703125 GBs remaining until 05/31/16. Usage was 291GB, which jived with their meter and website. Ran it yesterday and it seemed to work just fine. * Outputting timestamp and usage to a *.csv file I have come across a python script from u/wtfox here:ĭo you have Comcast/Xfinity? Use my script to check your usage easily! I have been searching for some time for a script to run my my server to log my Comcast internet usage.
#Comcast internet usage monitor code
/r/git and /r/mercurial - don't forget to put your code in a repo!./r/pyladies (women developers who love python)./r/coolgithubprojects (filtered on Python projects)./r/pystats (python in statistical analysis and machine learning)./r/inventwithpython (for the books written by /u/AlSweigart)./r/pygame (a set of modules designed for writing games)./r/django (web framework for perfectionists with deadlines)./r/pythoncoding (strict moderation policy for 'programming only' articles).NumPy & SciPy (Scientific computing) & Pandas.Transcrypt (Hi res SVG using Python 3.6 and turtle module).
Brython (Python 3 implementation for client-side web programming).PythonAnywhere (basic accounts are free).(Evolved from the language-agnostic parts of IPython, Python 3).The Python Challenge (solve each level through programming).Problem Solving with Algorithms and Data Structures.Udemy Tech Youtube channel - Python playlist Invent Your Own Computer Games with Pythonįive life jackets to throw to the new coder (things to do after getting a handle on python) Please use the flair selector to choose your topic.Īdd 4 extra spaces before each line of code def fibonacci(): Reddit filters them out, so your post or comment will be lost. If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat. 12pm UTC – 2pm UTC: Bringing ML Models into Production Bootcamp
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python Current Events