Hughesnet Status

Plasma 4 Extensions

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
7.2

Description:
Display status of Hughesnet HN9000 satellite modem. Depends on python2, kde4, and pytz.
Last changelog:

1.2
- make sure Plan Remaining says 0 when it's 0 (sometimes it remained non-zero even though the status changed to orange(fapped)
- recognize the 2-7 free time and change a couple of things accordingly
- now requires pytz as a dependency
??? - quick question if anyone knows, is the free time 2-7 Eastern, or 2-7 varying based on your local time zone? I'm assuming Eastern for now, set me straight if I'm wrong.
1.1
- shade icon as fap depletes
- display % beneath icon
- set the script up for possible future expansion
- renamed fap-status to account for the possibility of the aforementioned
1.0
- initial release


Ratings & Comments

14 Comments

67GTA

Just tried the newest and still no love. I wish I knew enough to help you debug. shawnr@suse-laptop:~> plasmaengineexplorer Traceback (most recent call last): File "/usr/share/kde4/apps/plasma_scriptengine_python/pydataengine.py", line 68, in sourceRequestEvent return self.pydataengine.sourceRequestEvent(name) File "/home/shawnr/.kde4/share/apps/plasma/dataengines/engine-fap-monitor/contents/code/main.py", line 25, in sourceRequestEvent return self.updateSourceEvent(name) File "/home/shawnr/.kde4/share/apps/plasma/dataengines/engine-fap-monitor/contents/code/main.py", line 44, in updateSourceEvent fap_soup = re.sub('<.*?>','\n',fap_soup) File "/usr/lib64/python2.6/re.py", line 151, in sub return _compile(pattern, 0).sub(repl, string, count) TypeError: expected string or buffer

dwidmann

Well, uploaded to the same place again ... went through and did all the changes I was intending to save for later, hopefully it'll help.

67GTA

Thanks for all the help. I ran the engine and got this output: shawnr@suse-laptop:~> plasmaengineexplorer Traceback (most recent call last): File "/usr/share/kde4/apps/plasma_scriptengine_python/pydataengine.py", line 68, in sourceRequestEvent return self.pydataengine.sourceRequestEvent(name) File "/home/shawnr/.kde4/share/apps/plasma/dataengines/engine-fap-monitor/contents/code/main.py", line 25, in sourceRequestEvent return self.updateSourceEvent(name) File "/home/shawnr/.kde4/share/apps/plasma/dataengines/engine-fap-monitor/contents/code/main.py", line 43, in updateSourceEvent fap_soup = re.sub('<.*?>','\n',fap_soup) UnboundLocalError: local variable 'fap_soup' referenced before assignment

dwidmann

ah, I made a silly mistake, hopefully there won't be too many more ... fixed, same url.

67GTA

https://dl.dropbox.com/u/9661957/Page%20Source

dwidmann

Ready to be a guinea pig? Hopefully it will work, here's what you need to do: download this file: http://www.xnowherex.com/linux/engine-fap-monitor.zip unzip it edit the file engine-fap-monitor/contents/code/main.py Change the username and password to what you would use when logging in (lines 11 and 12 of main.py) Save changes Run 'plasmapkg -t dataengine -i engine-fap-monitor' (the folder) To test it, run plasmaengineexplorer, pick engine-fap-monitor from the list and see if it displays your usage data for the WildBlue source.

67GTA

The URL doesn't change once logged in, so I guess the process is hidden. Might be out of luck. I don't know how to find out where the usage info comes from. New screenshot: https://dl.dropbox.com/u/9661957/snapshot2.png

dwidmann

I still need the _full_ source of the page after login. right click, view source :)

67GTA

I forgot the URL! https://myusage.wildblue.net/UsageGUI/pages/webapp-index.xhtml Here is a screenshot after logging in: https://dl-web.dropbox.com/get/Photos/snapshot2.png?w=61a7d690

dwidmann

Umm, I'll need the source of the page with the info (after login) so I can figure out how to extract the info from it. Also, the screenshot is giving me a 403 forbidden error.

67GTA

Here is the URL to check usage, but you have to log in to see it. It may be more trouble than it's worth. I'm not sure how such things work on the backend. I'm not sure if this is querying WB servers, or the modem. Maybe I can post on the WB forums and see if I can check this via CLI.

dwidmann

The URL seems to be absent... The URLs for and snapshots of the login and monitoring pages I definitely need to able to do it. I think I can get it to be login and retrieve the page automatically with python's urllib2. Should be easy. (though, I've never tried it before ... I'll need you to test)

67GTA

I've been wanting something similar to keep an eye on my wildblue satellite usage without having to open a browser.

dwidmann

Maybe I can do something about that, but I'm not sure. How do you go about checking up on it with Wild Blue? (If possible, things like the URLs, and snapshots of the respective pages would be useful. (That is, unless there is a more intuitive way to get at the data)

Pling
0 Affiliates
Details
license
version 1.2
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 2

Other Plasma 4 Extensions:

Icon Tasks deb build
N00bun2
last update date: 13 years ago

Score 4.3

Prayer Times Plasmoid
riyad
last update date: 12 years ago

Score 5.2

KPrayertime4 Islamic Prayer Times
ahaq
last update date: 15 years ago

Score 4.4

Hostinfo
mgraesslin
last update date: 13 years ago

Score 4.7

Monitor QuadCore Russian
kuchumovn
last update date: 16 years ago

Score 5.0

blaKjaK
werevire
last update date: 15 years ago

Score 5.0