Commit Graph

1756 Commits

Author SHA1 Message Date
enkore
6ac571e402 Merge pull request #466 from rscholer/moc
Add module for MOC (music on console)
2016-10-17 18:35:49 +02:00
enkore
575a60843f Merge pull request #470 from dopykuh/master
Provide ability to filter by groups.
2016-10-17 18:35:32 +02:00
Tim Foerster
03341386e5 Provide ability to filter by groups. 2016-10-17 18:24:34 +02:00
Raphael Scholer
0fd281d4a0 moc - Fix typo 2016-10-14 15:16:47 +02:00
Raphael Scholer
ab00bf4d2a moc - Remove all references to cmus 2016-10-14 15:16:07 +02:00
Raphael Scholer
be22e60433 Fix stupid and avoidable error in moc 2016-10-14 03:40:27 +02:00
Raphael Scholer
4ca3112331 Expose collected data in moc module 2016-10-14 02:42:25 +02:00
Raphael Scholer
0df4882ba0 Add moc to module overview 2016-10-14 00:49:52 +02:00
Raphael Scholer
d16d66e520 Add module for MOC (music on console) 2016-10-14 00:46:53 +02:00
Jindrich Pilar
0e3ca19469 Taskwarrior re-raise and log error 2016-10-09 13:41:04 +02:00
Jindrich Pilar
6016c52a87 Timewarrior use Logger instead of print 2016-10-09 10:53:01 +02:00
Jindrich Pilar
4692e0f914 Timewarrior re-raise error 2016-10-09 10:09:54 +02:00
Jindrich Pilar
4a3744192a Timewarrior module
Module for heads up information for taskwarrior.org/docs/timewarrior/
2016-10-08 16:03:23 +02:00
enkore
3b53abb6ea Merge pull request #462 from hcpl/master
Pulseaudio: fix non-working decrease_volume()
2016-10-07 09:50:01 +02:00
hcpl
f678565666 Pulseaudio: fix non-working decrease_volume()
Also change switch_mute() and increase_volume() to look similar to
decrease_volume()
2016-10-07 02:25:13 +03:00
Erik Johnson
86f1248a85 Rename api_request func to specify it is for GitHub Status API
Also change loglevel to error when API response is blank
2016-10-04 17:27:52 -05:00
Erik Johnson
5b8ed2de2c Check API response for additional pages of notifications 2016-10-04 17:21:13 -05:00
facetoe
55b1c1432c Merge pull request #458 from udono/master
Use len() for lists instead of count() for #447
2016-09-29 19:12:16 +08:00
Erik Johnson
db7a1a2271 Merge pull request #459 from terminalmage/update-color
Update color for Pittsburgh Penguins
2016-09-28 20:53:25 -05:00
Erik Johnson
d0503262ce Update color for Pittsburgh Penguins
This reflects a change in their primary accent color
2016-09-28 20:51:39 -05:00
Udo Spallek
5099227027 Use len() for lists instead of count() for #447 2016-09-28 22:30:19 +02:00
Gareth Dunstone
c462ecf955 Added to docstring pip installation command for speedtest-cli/modularize-2 2016-09-28 14:20:06 +10:00
Gareth Dunstone
207aa22035 change to conf as per https://github.com/enkore/i3pystatus/pull/449#issuecomment-247045192 2016-09-28 14:15:35 +10:00
Erik Johnson
7dbcec5a09 Updates from code review
See https://github.com/enkore/i3pystatus/pull/455#pullrequestreview-1728935
2016-09-27 19:29:04 -05:00
Erik Johnson
598a511420 Keep the previous color if a status update fails 2016-09-27 09:33:04 -05:00
facetoe
e1a3dfaaea Merge pull request #457 from Xenopathic/master
Change ping module text color above latency threshold
2016-09-27 21:43:26 +08:00
Erik Johnson
8afd1da5cf Merge githubstatus.py's functionality into github.py 2016-09-25 15:01:12 -05:00
Erik Johnson
394eaf52ee Improve keyring documentation 2016-09-25 14:58:38 -05:00
Robin McCorkell
d6f8f5d660 Change ping module text color above latency threshold 2016-09-24 17:28:34 +01:00
Erik Johnson
38e23aedcb Merge pull request #454 from terminalmage/issue453
Fix traceback when notification daemon not running
2016-09-21 17:21:32 -05:00
Erik Johnson
bafc492c45 Always log exception for DesktopNotification failure
Also remove unused ``exc`` variable.
2016-09-20 12:53:06 -05:00
enkore
e0bd9385af Merge pull request #452 from sileht/master
Fix imap re-connection
2016-09-20 19:19:26 +02:00
Mehdi Abaakouk
caaf9844f6 Fix imap re-connection
Imap re-connection is not working.

Connection exceptions (socket.error, socket.gaierror, IMAP4.abort) can
be raise during any imap operations, not only on connection
establishment.

Also the idle thread call start() on thread multiple times, but this is
not allowed by python. The thread is not daemonize, so the thread code
can be never runned if the python process is busy. And the module is
located in imaplib2.imaplib2.IMAP4 not imaplib2.IMAP4...

This change fixes all of that.
2016-09-20 19:18:05 +02:00
enkore
a5b463dd60 Merge pull request #445 from terminalmage/system_tz
clock: Detect system TZ (if possible) for cases where no TZ is specified
2016-09-20 19:15:31 +02:00
enkore
c21368fb03 Merge pull request #451 from terminalmage/optimize-weather-module
Optimize weather module, rewrite Weather.com backend
2016-09-20 19:13:22 +02:00
Erik Johnson
bc429c965d Ignore decimal point 2016-09-19 17:38:19 -05:00
Erik Johnson
ac961dbd33 Use colors from status.github.com 2016-09-19 10:13:33 -05:00
Erik Johnson
c48ec987f2 Add a GitHub Status module
This adds a new module for displaying the status of github.com via
GitHub's Status API.
2016-09-18 23:51:54 -05:00
Erik Johnson
d798a8c3d8 Optimize weather module, rewrite Weather.com backend
Weather.com's XML feed is now defunct, this commit includes a rewritten
Weather.com module which uses the same JSON feed used by the website
itself.

The weather updates now happen in a separate thread rather than
happening in the ``run()`` function. Since the ``run()`` function is
executed before any of the mouse events are run, this was causing the
mouse event callbacks to result in a flurry of weather updates, which
caused the Weather Underground API to be overutilized beyond its rate
limit.
2016-09-18 23:26:07 -05:00
Erik Johnson
429c5d4865 Fix traceback when notification daemon not running
When a desktop notification is displayed but there is no notification
daemon running, an exception is raised.

This fixes the traceback by adding a logger to the DesktopNotification
class, and logging an error when the exception is caught.

Fixes #453.
2016-09-18 20:45:40 -05:00
Gareth Dunstone
ca3a9b60b3 change to conf as per https://github.com/enkore/i3pystatus/pull/449#issuecomment-247045192 2016-09-15 12:18:51 +10:00
Gareth Dunstone
439e725107 2fp is too precise I think 2016-09-14 10:33:10 +10:00
Gareth Dunstone
338ad21ccb fixed net_speed to properly use speedtest-cli/modularize-2
added some nice unicode formatting down and up symbols for download and upload speed.
2016-09-14 10:24:17 +10:00
Erik Johnson
3590dd20e5 clock: Detect system TZ (if possible) for cases where no TZ is specified
When the pytz dep was reintroduced, this made all TZ usage reliant upon
a tzinfo object generated by pytz. This had the effect of making the
``%Z`` strftime placeholder evaluate as blank when a timezone is not
explicitly defined (i.e. when the format is just a format string and
not a tuple containing the format string and timezone).

This commit resolves this regression by using pytz to build a tzinfo
object from either /etc/localtime or /etc/timezone during the ``init()``
function, establishing the system TZ to be used for those cases where no
TZ was specified.
2016-08-31 23:15:17 -05:00
enkore
03df1a644a 3.35 changelog 2016-08-31 18:18:12 +02:00
enkore
1b8461b324 Merge pull request #444 from drwahl/master
dota2wins: fix win% reporting
2016-08-31 17:55:39 +02:00
David Wahlstrom
453767e50e dota2wins: fix win% reporting
Somehow I accidentially had 2 win_percent values being set in the cdict,
one of which was a string that breaks when you try to round off the
remainder.
2016-08-31 07:57:29 -07:00
enkore
4b38b78b1b Merge pull request #443 from drwahl/master
openstack_vms: update novaclient auth
2016-08-31 16:34:01 +02:00
David Wahlstrom
cebdf49ec4 openstack_vms: update mock modules 2016-08-30 15:57:49 -07:00
David Wahlstrom
338d446bb3 openstack_vms: update novaclient auth
The openstack novaclient has updated it's auth mechanism, deprecating
the method used in this module.  This patch updates the novaclient
authentication call to leverage this new auth method.
2016-08-30 13:55:27 -07:00