Commit Graph

1336 Commits

Author SHA1 Message Date
facetoe
3dcc2d7d8f Open calendar event on click. 2016-06-06 16:10:26 +08:00
facetoe
0215bdf5f1 Continue on 500/503 errors. 2016-06-06 15:53:54 +08:00
enkore
c8c09763c1 Merge pull request #383 from drwahl/temp
temp: add a "display_if" setting
2016-06-04 20:29:58 +02:00
enkore
89424d103c Merge pull request #382 from drwahl/gpu_temp
gpu_temp: add "display_if" setting
2016-06-04 20:29:51 +02:00
facetoe
07cbb84406 Merge pull request #392 from colajam93/fix-typo
Fix typo
2016-06-04 00:52:26 +08:00
colajam93
ecb532a5ac Fix typo 2016-06-04 01:39:31 +09:00
Mehdi ABAAKOUK
2d7b3afaca Fix imap connection lost (#380)
Nothing in imap mail backend reinit the imap connection
when this one is lost, and then the backend always output "socket.error:..."

This change fixes that by cleanup the connection object when
connection is lost so get_connection() will recreate a new one.

This also remove the unless utils.internet() checks already done by
Mail().run()
2016-05-24 12:22:30 +02:00
eBrnd
cee2860138 add weekcal module (#388) 2016-05-24 12:21:06 +02:00
enkore
b686afe42e Merge pull request #391 from rumpelsepp/syncthing
Use CSFR Token in Syncthing module
2016-05-24 12:20:17 +02:00
Stefan Tatschner
f059184411 Use CSFR Token in Syncthing module
Fixes #390
2016-05-24 10:24:56 +02:00
enkore
6859eb5a10 Merge pull request #389 from enkore/fix-spotify-playerctl
spotify: pass player_name=spotify to playerctl
2016-05-22 23:44:44 +02:00
enkore
3ab7a58d03 spotify: pass player_name=spotify to playerctl 2016-05-22 22:18:29 +02:00
enkore
1a64158c8b Merge pull request #385 from terminalmage/scores
Make NHL team wins reflect series wins during playoffs
2016-05-17 17:40:47 +02:00
Erik Johnson
8f9c878689 Make NHL team wins reflect series wins during playoffs
The win/loss values from the NHL data feed reset in the playoffs, but
don't reflect the current series. Instead, they reflect the current
win/loss total since the beginning of the playoffs.

This commit checks for a key in the API return data indicating that the
game is a playoff game, and if the game is a playoff game the team's
wins will be set to the remainder of the total wins divided by 4 (a team
with 6 overall wins will be assumed to have 2 wins in the current
playoff series).

The team's losses during a playoff series will be set to the amount of
wins for the opposing team.
2016-05-17 09:49:29 -05:00
David Wahlstrom
b901cec5a6 temp: add a "display_if" setting
Adds a "display_if" setting to temp module.  This is a snippet that will
be evaulated, and if the result is true, it will display the module's
output.
2016-05-11 13:38:28 -07:00
David Wahlstrom
cc3781a6c0 gpu_temp: add "display_if" setting
Adds a "display_if" setting to the gpu_temp module that allows the
output to be squelched unless some snippet has been evaluated as true.
2016-05-11 13:26:38 -07:00
enkore
4611295475 Merge pull request #365 from ncoop/iss359
Stricter criteria for including query output
2016-05-03 09:47:17 +02:00
enkore
b5a4fd2ab0 Merge pull request #373 from terminalmage/scores
Add module to display sports scores
2016-05-03 09:46:01 +02:00
enkore
efcf7d0cde Merge pull request #377 from terminalmage/weather-tstorm
Catch another odd weather.com weather condition
2016-05-03 09:42:39 +02:00
Erik Johnson
da104268ab Catch another odd weather.com weather condition
This properly colorizes when there is a thunderstorm and the weather.com
API response defines the current weather condition as "T-Storm". No idea
why they decide to do this, it's definitely not for brevity as they have
a "Thunderstorms in the Vicinity" weather condition as well. Just a
weird quirk of their API, I guess.
2016-05-02 22:08:12 -05:00
enkore
682961f956 Merge pull request #367 from k1-hedayati/patch-1
Added interval option to online module
2016-04-26 11:04:58 +02:00
enkore
dcc3cfeffc Merge pull request #371 from ncoop/master
Module should be chmod a-x
2016-04-26 11:04:36 +02:00
enkore
ba0b6bc0f1 Merge pull request #372 from ncoop/mpd-KeyError-fix
MPD KeyError fix at end of playback
2016-04-26 11:03:52 +02:00
enkore
f120fb65e3 Merge pull request #362 from terminalmage/logging
RFC: Improved logging
2016-04-26 11:03:19 +02:00
Erik Johnson
633ea4628e Use playoff W/L numbers if in playoffs
Also add seed info
2016-04-25 22:42:17 -05:00
Erik Johnson
c930fe8330 Properly identify multi-OT NHL games 2016-04-25 22:42:17 -05:00
Erik Johnson
157f0f57c8 Properly identify delayed games in-progress
Had to wait for an in-progress game to be delayed to see the API return
to properly catch this.
2016-04-25 22:42:17 -05:00
Erik Johnson
11db5baca6 Add EPL backend for scores module 2016-04-25 22:42:17 -05:00
Erik Johnson
5d053f7094 Add NBA backend for scores module 2016-04-25 22:42:17 -05:00
Erik Johnson
ddde786763 Add NHL backend for scores module 2016-04-25 22:42:17 -05:00
Erik Johnson
afdcf32388 Add module to display sports scores
This is a pluggable module which supports multiple backends. The first
backend displays MLB scores, with more planned (NHL to start).
2016-04-25 22:42:17 -05:00
ncoop
84e438caf4 Ensure currentsong dictionary has "file" key 2016-04-15 20:22:25 -07:00
ncoop
e7ca6d7cb9 Module should be chmod a-x 2016-04-15 02:00:41 -07:00
ncoop
762315dde1 Corrected setxkbmap -query output
Only includes the one or two lines desired.
Also, uses a class function instead of relying on sed.
2016-04-13 13:17:30 -07:00
Keyvan Hedayati
753860157c Added interval option to online module 2016-04-12 11:16:38 +04:30
Erik Johnson
16b28ec493 Document "logformat" option for i3pystatus.status.Status() 2016-04-10 21:16:23 -05:00
Erik Johnson
3d97ea80b8 Add information on setting logfile in i3pystatus.status.Status() constructor 2016-04-10 21:16:23 -05:00
Erik Johnson
8e9b6dfba3 Remove leading newline from exception logging
The new log formatting makes this unnecessary.
2016-04-10 21:16:23 -05:00
Erik Johnson
c6b2077263 Add support for logformat parameter to i3pystatus.Status()
This improves the usefulness of log messages, especially when it comes
to debug logging added for the purpose of future troubleshooting.
2016-04-10 21:16:23 -05:00
enkore
8aeaab7fa5 Merge pull request #363 from ncoop/iss357
Create updates backend for dnf
2016-04-09 13:18:47 +02:00
ncoop
52ef0e07df Not all lines after the second are updates.
There are 14 here:

```
Last metadata expiration check: 1:16:29 ago on Sat Apr  9 01:14:36 2016.

google-chrome-stable.x86_64            49.0.2623.112-1             google-chrome
kernel.x86_64                          4.4.6-301.fc23              updates
kernel-core.x86_64                     4.4.6-301.fc23              updates
kernel-debug-devel.x86_64              4.4.6-301.fc23              updates
kernel-devel.x86_64                    4.4.6-301.fc23              updates
kernel-headers.x86_64                  4.4.6-301.fc23              updates
kernel-modules.x86_64                  4.4.6-301.fc23              updates
kernel-modules-extra.x86_64            4.4.6-301.fc23              updates
openssh.x86_64                         7.2p2-2.fc23                updates
openssh-askpass.x86_64                 7.2p2-2.fc23                updates
openssh-clients.x86_64                 7.2p2-2.fc23                updates
openssh-server.x86_64                  7.2p2-2.fc23                updates
webkitgtk3.x86_64                      2.4.10-2.fc23               updates
Obsoleting Packages
kernel-headers.x86_64                  4.4.6-301.fc23              updates
    kernel-headers.x86_64              4.4.6-300.fc23              @updates
```
2016-04-09 03:35:45 -07:00
ncoop
c33a798b86 Simple 'dnf check-updates' backend for updates 2016-04-09 03:35:45 -07:00
enkore
ff63d95737 Merge pull request #358 from grimpy/nowplaying_tolerant
Now playing: be more tolerant for mpris properties
2016-04-09 12:33:04 +02:00
Jo De Boeck
be83476aef Now playing: be more tolerant for mpris properties
Some mpris clients dont implement all properties
2016-04-08 13:23:53 +02:00
Erik Johnson
7cb2dcc255 Fix improper usage of time.tzset() (#347)
* Fix improper usage of time.tzset()

time.tzname is a tuple containing the non-daylight-savings and
daylight-savings timezone abbreviations. However, when the TZ
environment variable is set to just the daylight-savings timezone (as
the clock module was changed to do in e31c58f), time.tzset() will break
time.tzname by setting both elements of the tuple to that timezone,
causing the effective timezone to fallback to UTC:

>>> time.tzname
('CST', 'CDT')
>>> time.localtime().tm_hour
1
>>> os.environ.putenv('TZ', 'CST')
>>> time.tzset()
>>> time.tzname
('CST', 'CST')
>>> # ^^^ This is broken
...
>>> time.localtime().tm_hour
6
>>> os.environ.putenv('TZ', 'CST+06:00CDT')
>>> time.tzset()
>>> time.tzname
('CST', 'CDT')
>>> time.localtime().tm_hour
1

This fixes this incorrect behavior by building a proper TZ environment
variable to set localtime.

* Use time.timezone instead of time.altzone

* Make _get_local_tz a static method
2016-04-07 23:21:23 +02:00
Maximiliano
c0cdfae1f8 mod bitcoin: multiple exchange support (#353)
* mod bitcoin: add 'volume_percent'

* mod bitcoin: Fix exception on url opening (#304)

Calling user_open as a 'Python callback' raises an exception because
this function doesn't expects 'self'.
Wrote a wrapper function as a 'Member callback' to filter it out.

* mod bitcoin: add specific exchange support

* mod bitcoin: add request age attribute

* mod bitcoin: refactor

* mod bitcoin: btc volume divisor

* bitcoin: Deal with diffrent locales

* Fixing PEP8

* mod bitcoin: Updated docs
2016-04-07 23:20:37 +02:00
Jindřich Pilař
c93bfe16b6 Taskwarrior module (#354)
* Taskwarrior module

* Taskwarrior - sort by urgency

* Taskwarrior - filter with multiple constraints
2016-04-07 23:19:59 +02:00
enkore
d9f5950eaa Merge pull request #355 from Xenopathic/master
Properly set MPD filename if no title
2016-04-07 23:19:17 +02:00
Erik Johnson
01395c6b39 Catch "Showers" as "Rainy" weather condition (#356)
* Catch "Showers" as "Rainy" weather condition

Weather.com has a "Showers in the Vicinity" weather condition that I
just happened to see this morning. This commit assigns this condition as
"Rainy" so it is properly colorized.

* Make "Clear / Windy" map to "Fair" weather condition

Another odd weather condition from the weather.com API

* Reverse icons for Fair and Sunny

"Sunny" should have a filled-in sun icon as it implies a brighter weather
condition than "Fair" does.

* Properly detect "Sunny / Windy" as "Sunny" weather condition

Also, do not check for similarly-named conditions if an exact match is
found.

* Properly detect "Fair / Windy" as "Fair"
2016-04-07 23:18:39 +02:00
Robin McCorkell
e3194147fa Properly set MPD filename if no title 2016-04-01 13:07:49 +01:00