Commit Graph

1741 Commits

Author SHA1 Message Date
Facetoe
3d48213834 Add test for case where subclass defines a setting and sets it to None 2016-08-09 18:33:35 +08:00
Facetoe
8d8c0b6812 Update comment 2016-08-09 18:33:28 +08:00
Facetoe
c30365338b Refactor conditional to pass required setting tests.
If a setting is defined in a subclass and is not None do not raise
config error.
2016-08-09 18:20:40 +08:00
Facetoe
86fddf8e22 Add tests for required settings. 2016-08-09 18:14:25 +08:00
facetoe
163af76e89 Merge pull request #429 from facetoe/disk_logic_fail
Fix logic fail in disk.py
2016-08-08 16:39:48 +08:00
Facetoe
73dae9bfec Fix logic fail in disk.py 2016-08-08 16:38:41 +08:00
facetoe
b6122ae2ee Merge pull request #428 from facetoe/disk_metric
Add flexibility in calculating criticality.
2016-08-08 16:27:34 +08:00
facetoe
a816a9c9d7 Merge pull request #426 from facetoe/abc_radio
Add module for streaming ABC radio Australia.
2016-08-08 16:27:13 +08:00
facetoe
45c10d0fe9 Merge pull request #423 from jk0dick/add-modules
* Network multi color
* Add scratchpad module
* Add window_title module
2016-08-07 19:41:29 +08:00
limbe-osc
1f3581bcea bug fix 2016-08-07 19:16:44 +08:00
limbe-osc
25a21a3fe0 minor fix 2016-08-07 18:29:58 +08:00
Facetoe
8adbc0b8cb Add flexibility in calculating criticality.
Support using any of the calculated values for determining whether or not the module should alert.
2016-08-07 12:59:23 +08:00
facetoe
8cae11a9f3 Merge pull request #420 from ncoop/mpd-stop
mpd: implement stop method
2016-08-07 12:00:33 +08:00
ncoop
d906151ae2 Documented available callbacks. 2016-08-06 14:32:57 -07:00
ncoop
b179d29abf pep8 compliance. 2016-08-06 14:32:57 -07:00
ncoop
9769d1b7d0 stop method sends stop command to mpd via socket. 2016-08-06 14:32:36 -07:00
Facetoe
5bb40926b8 Ensure required settings are defined correctly.
Possible fix for #424. If a setting has not been overidden in a subclass
or set in the user's config then raise an exception.
2016-08-07 01:16:27 +08:00
Facetoe
952fd22115 Add module for streaming ABC radio Australia. 2016-08-07 00:18:34 +08:00
facetoe
1528f04de0 Merge pull request #410 from richese/clock_refactor
Refactor of `clock` module.
2016-08-06 22:12:15 +08:00
facetoe
36dfe06786 Merge pull request #416 from terminalmage/scores
Add format option, logic to handle suspended MLB games
2016-08-06 22:00:11 +08:00
facetoe
4095e4e051 Merge pull request #419 from ncoop/mpd-except
mpd: Catch KeyError
2016-08-06 21:59:16 +08:00
limbe-osc
5eb1f91151 remove deadbeef 2016-08-06 16:03:28 +08:00
limbe-osc
eb93387290 ci fix 2016-08-06 08:29:25 +08:00
limbe-osc
88b8813bd7 bug fix 2016-08-06 07:08:01 +08:00
limbe-osc
4882714382 merge network colour and network 2016-08-06 07:01:52 +08:00
facetoe
f0438b0601 Merge pull request #421 from ncoop/docs-internet
Document how to customize the internet check
2016-08-05 22:54:15 +08:00
facetoe
686f3e82a9 Merge pull request #422 from jcornwall/master
Pulseaudio: Wait on child processes to avoid zombies
2016-08-05 22:51:16 +08:00
limbe-osc
b7a73f5b46 add four modules 2016-08-05 22:11:09 +08:00
Jay Cornwall
91fae807ed Pulseaudio: Wait on child processes to avoid zombies
subprocess.Popen() does not implicitly wait() on the child process.
This leads to transient zombie pactl processes which are only reaped
as new processes are spawned.

Use synchronous subprocess communication to collect child process
return codes immediately and allow them to exit.
2016-07-31 15:17:49 -05:00
ncoop
be27d7839b It makes sense to put Credentials later. 2016-07-30 15:39:14 -07:00
ncoop
80b823fe68 Docs: how and why to customize internet_check 2016-07-30 15:39:04 -07:00
ncoop
54dfb17ecc Catch KeyError in self.status[status["state"]]. 2016-07-30 08:18:01 -07:00
facetoe
40b9283840 Merge pull request #418 from facetoe/cpu_usage_bug
Fix display bug in CpuUsageGraph.
2016-07-25 19:08:19 +08:00
facetoe
fce59b883c Fix display bug in CpuUsageGraph.
Addresses #417
2016-07-25 19:05:45 +08:00
facetoe
4e5f91e89d Merge pull request #415 from facetoe/openvpn_up_down
Support toggling connection on click.
2016-07-25 18:41:26 +08:00
Erik Johnson
6675f3fa6e Add score to default format string for suspended games 2016-07-24 10:46:11 -05:00
Erik Johnson
b7e0f8bbc4 Add format option, logic to handle suspended MLB games
Tonight's game was the first time I've seen the API return from a
suspended game. I added a separate format option for it.

I've also fixed date/time detection. The API returns different fields for if
a game ended after midnight eastern, and also different ones when a game
is suspended.
2016-07-24 00:50:45 -05:00
facetoe
d2b414f5c6 Support toggling connection on click. 2016-07-24 11:04:44 +08:00
enkore
8dee66059e Merge pull request #414 from nclsHart/github-access-token
Allow use of access_token in github module
2016-07-24 00:13:36 +02:00
Nicolas Hart
7e299ac270 add doc about access_token auth method 2016-07-24 00:07:40 +02:00
Nicolas Hart
ce0c040fcd Allow use of access_token in github module 2016-07-23 23:12:54 +02:00
enkore
5dbfc2110a Merge pull request #413 from Frechdachs/fix
Fix wrong dictionary key
2016-07-22 20:01:55 +02:00
Frechdachs
7caa3ecd3e Fix wrong dictionary key
Fixes the problem that one had to use ``{format_all}`` while the documentation clearly states ``{usage_all}``
2016-07-22 19:45:51 +02:00
facetoe
2603a394cd Merge pull request #412 from terminalmage/scores
Catch ConnectionResetError when making API request
2016-07-22 20:30:34 +08:00
Erik Johnson
d0defe0810 Properly identify rain-shortened games as final
These were erroneously being identified as pregame
2016-07-22 00:15:58 -05:00
enkore
0974f2547a Merge pull request #411 from jcornwall/master
Pulseaudio: Update status immediately when volume changes
2016-07-20 13:08:05 +02:00
Jay Cornwall
1dabaf1c2e Pulseaudio: Update status immediately when volume changes
Volume changes may occur externally (e.g. through pactl bound to media
keys) or through mouse interaction. The new volume is received
asynchronously but can only be outputted at the next status poll,
causing a small delay.

Introduce Module.send_output() to allow a module to send its output
without delay. Invoke this method in the Pulseaudio sink info callback.
2016-07-17 18:12:38 -05:00
Lukáš Mandák
c2f18885be Refactor of clock module.
Reintroduces `pytz` dependency for time zone data.
2016-07-16 15:24:55 +02:00
Erik Johnson
968c17a357 Catch ConnectionResetError when making API request
Caught this traceback in the log when an update failed to complete. Also
added a generic Exception catch-all.
2016-07-15 16:29:53 -05:00
enkore
9c414154fb Merge pull request #384 from rampage644/pomodoro_refactor
Pomodoro module timezone fix
2016-07-14 18:19:45 +02:00