Commit Graph

1860 Commits

Author SHA1 Message Date
Franziska Kunsmann
d93c61c90b
Add WIFIonICE module (#842)
* add wifionice module

* wifionice: clean up imports, fix typo in docs

* wifionice: reformat module to use one formatting string only

* wifionice: rework everything to use different intervals for "on train" and "off train"

* wifionice: add some logging, fix typo in variable naming

* wifionice: fix delay display

* wifionice: make opened url fully configurable

* wifionice: use f-strings everywhere

* wifionice: improve logging for on-train wifi dectection

* wifionice: fix another occurence of using repr() in f-string
2023-02-22 14:43:09 -06:00
Stefano Rivera
19600d8e41
Migrate to inspect.getfullargspec() (#844)
getargspec() was deprecated in 3.0 and removed in 3.11.
2022-12-26 00:42:06 -06:00
adralioh
29f78b3207
Fix default MPD time format (#841)
Change the default value of the `time_format` setting in the mpd module
so that it matches the default value used by `TimeWrapper`.

This fixes a bug where the seconds weren't displaying correctly due to a
typo.

Before: `02:MS`
After:  `2:06`
2022-05-16 08:22:24 -05:00
Erik Johnson
90887964e1
Ensure numeric values are strings (#840)
This prevents record/score values from being being interpreted as False
and excluded from bracketed blocks in formatp.
2022-03-22 16:00:45 -05:00
Erik Johnson
c4876ed551
Rewrite scores backends to use a single format string (#833)
* Rewrite scores backends to use a single format string

Since the game status is almost always the only thing that differs, this
simplifies things greatly by using a single format string and building a
game_status formatter depending on format strings set for each game
status type.

* Use formatp on game_status

* Make postponed games appear last by default

* Add score formatters back to defaults

* Fix conditional display of zero scores by treating them as strings
2022-01-27 07:22:27 -06:00
enkore
34af13547d
2022 2022-01-02 18:24:01 +01:00
enkore
edda533c2a
2022 2022-01-02 18:23:29 +01:00
enkore
b8d872f8e5
ticker: fix "non-required setting(s) <symbol> with no default!" 2022-01-02 18:21:23 +01:00
enkore
6cced3aacc
fix docs build failing 2022-01-02 18:19:21 +01:00
Erik Johnson
e14f2bea15
Improve Documentation (#835)
* Update installation documentation to include virtualenv example

* Add notice about ampersand replacement in pango markup

* Remove rubric header

* Forgot to add the installation.rst

* Fix typo
2022-01-02 11:05:52 -06:00
Erik Johnson
e84a6090f3
window_title: Use empty_title if title is None (#799)
Co-authored-by: tjg1 <1909894+tjg1@users.noreply.github.com>
2022-01-01 14:23:30 -06:00
David Foucher
211ece568c Fix API error
- Replace the old API bitcoinaverage.com by bitaps.com
- Add bistamp as default exchange
- remove and replace some fields to adapt the new API
- Replace Bitcoin symbol by \uF15A
2021-12-21 18:00:50 +01:00
Erik Johnson
29a4cb74d8
i3pystatus.weather.wunderground: Fix regression in high temp (#832)
In the afternoon this value becomes null. Set it to an empty string when
the null value is encountered.
2021-12-17 16:23:40 -06:00
Erik Johnson
fc70951dfa
i3pystatus.scores.nhl: Detect and properly display postponed games (#831)
Also fix typos from #830
2021-12-16 22:39:21 -06:00
Erik Johnson
c07495778b
i3pystatus.scores.nba: Detect and properly display postponed games (#830)
Thanks, COVID! 👍
2021-12-16 19:19:11 -06:00
Erik Johnson
ad477a6b2a
i3pystatus.weather.wunderground: Fix daily high/low temp to reflect API changes (#829) 2021-12-16 10:03:54 -06:00
Erik Johnson
8476fd6a35
i3pystatus.scores.nba: Fix spurious log warning for games that haven't started (#827) 2021-12-16 09:46:12 -06:00
Simon Struck
48775e4b87
Fix "NowPlaying: KeyError: None" (#784) 2021-12-06 09:11:50 -07:00
David Wahlstrom
fadd3167fd
Fix teslacharge module (#809)
Tesla made changes to their API, which broke some pip modules. As such,
we need to switch to a new module and update some calls to properly
track the changes in module behaviour.

Signed-off-by: David Wahlstrom <david.wahlstrom@gmail.com>
2021-11-22 06:51:59 -07:00
David Wahlstrom
bb78124b89
Adding new hassio modulue (#808)
* Adding new hassio modulue

Initial commit for a new HomeAssistant.io module to report the state of
entities from hassio.

Signed-off-by: David Wahlstrom <david.wahlstrom@gmail.com>
2021-11-22 06:50:18 -07:00
Erik Johnson
294521e453
Scores updates (#826)
* Fix NameError

* Change Cleveland Baseball Team to Guardians

* Update NBA game clock parsing code to reflect API change
2021-10-07 19:22:35 -05:00
Tim Gates
3e9f61dff0
docs: Fix a few typos (#824)
There are small typos in:
- docs/configuration.rst
- i3pystatus/calendar/google.py
- i3pystatus/coin.py
- i3pystatus/core/modules.py
- i3pystatus/ping.py
- i3pystatus/sabnzbd.py
- i3pystatus/timer.py

Fixes:
- Should read `occurred` rather than `occured`.
- Should read `subtracts` rather than `substracts`.
- Should read `specify` rather than `specifiy`.
- Should read `remaining` rather than `remainig`.
- Should read `recommended` rather than `recomended`.
- Should read `property` rather than `propertie`.
- Should read `available` rather than `availible`.
2021-08-30 08:58:04 -05:00
Antoine Bardoux
3bd37173a1 Use str.format instead of C-style format
Signed-off-by: Antoine Bardoux <antoine.b@padoa-group.com>
2021-08-26 20:46:51 +02:00
Pluggi
1498c44063 Use return code
Signed-off-by: Pluggi <pluggi512@gmail.com>
2021-08-26 20:46:51 +02:00
Pluggi
336a394009 Use systemctl is-active instead of parsing service properties
Signed-off-by: Pluggi <pluggi512@gmail.com>
2021-08-26 20:46:51 +02:00
Pluggi
f70472db0f Use self.data instead of locals
Signed-off-by: Pluggi <pluggi512@gmail.com>
2021-08-26 20:46:51 +02:00
Pluggi
aecde0e84e Fix class name
Signed-off-by: Pluggi <pluggi512@gmail.com>
2021-08-26 20:46:51 +02:00
Pluggi
82813dde51 Add wireguard module
Signed-off-by: Pluggi <pluggi512@gmail.com>
2021-08-26 20:46:51 +02:00
David Wahlstrom
ac71437b29
Ticker: Add a stock ticker plugin (#822)
Pull stock info from Yahoo (via yfinance) and display a customizable ticker.

Signed-off-by: David Wahlstrom <david.wahlstrom@gmail.com>
2021-08-19 11:38:43 -06:00
Erik Johnson
d0912be27e
scores.mlb: account for upstream API change for suspended games (#820) 2021-06-26 19:57:13 -05:00
Franziska Kunsmann
cfd60a6bb0 mpd: add option "time_format" to module 2021-06-20 15:56:11 +00:00
Pascal van Kooten
177a00b874
Added python 3.9 (#802) 2021-04-29 22:14:42 -05:00
Erik Johnson
860c03da53
Fix travis builds (#817)
Setuptools is installing the library as an egg file, which is causing it
to fail to import
2021-04-29 22:13:11 -05:00
Erik Johnson
3bc23608fd
Update Weather Underground weather backend to reflect API change (#816)
* Update Weather Underground weather backend to reflect API change

Also change weather backends to use f-strings instead of
percent-replacement in log messages, now that i3pystatus is Python 3.6+.

* Address pycodestyle failure

* Remove outdated config items
2021-04-29 21:48:26 -05:00
Erik Johnson
cf3123b415
scores.nba: Fix timezone conversion (#815)
When updating recently to support nba.com's new web API, I missed the
fact that the game times were treating Eastern Time (US) as UTC and
localizing based on that. This corrects that oversight.
2021-04-29 18:35:34 -05:00
Erik Johnson
b0826cf6ca
Update scores backends (#812)
1. Remove EPL as it has been broken for several years
2. Fix NBA to reflect backend API changes
3. Replace percent string formatting with f-strings now that i3pystatus
   only supports Python 3.6+
2021-04-10 14:51:50 -05:00
Erik Johnson
3976efe5cc
Weather.com backend: Fix high/low forecasted temps (#811)
* Weather.com backend: Fix high/low forecasted temps

The values previously being used were the highest/lowest temps within
the last 24 hours, not the forecasted high/low for the current day.

* Interpret null forecasts as empty strings
2021-04-10 12:56:05 -05:00
Patrick Braune
7b861a42f5 read file in binary and replace encoding errors 2021-02-02 18:54:10 +01:00
sanjay-cpu
b5f485bc5a Travis-ci: added support for ppc64le 2020-10-21 17:37:21 +02:00
Erik Johnson
39d8d2778d pango: don't expand '&' when it is part of an HTML escape sequence 2020-10-10 13:28:43 +02:00
Erik Johnson
bfbdc60b31
wunderground: Switch value used for weather condition name (#793)
`wxPhraseShort` ends up being abbreviated a lot. `wxPhraseMedium` is
equivalent to how wunderground worked before the recent rewrite. I just
ended up missing this during the rewrite.
2020-10-04 17:31:09 +02:00
Erik Johnson
992fb8cecb
Team colorization updates for scores backends (#792)
MLB: San Diego changed color scheme for 2020
NHL: Adding Seattle Kraken (2021 expansion team)
2020-10-02 16:47:42 +02:00
Erik Johnson
102a87c864
Add new status "maintenance" (#791)
See https://www.githubstatus.com/incidents/ry5psbndh11j
2020-10-01 23:33:36 +02:00
enkore
51acc6d342
README: add rtfd badge 2020-09-07 16:52:44 +02:00
enkore
506d29965d
docs: update copyright year 2020-09-07 16:51:18 +02:00
enkore
51a11c10cc
docs/module.rst: update branch name 2020-09-06 18:47:09 +02:00
enkore
8749fe81cc
setup.py: -Python 3.5 +Python 3.8 2020-09-06 18:39:50 +02:00
lasers
259f423408
setup: add python_requires='>=3.5' (#723) 2020-09-06 18:37:12 +02:00
Erik Johnson
d5082fab73
Fix both broken weather modules (#789)
* Fix both broken weather modules

The Weather.com changed its API again, this fixes that as well as fixing
a bug that caused the weather conditions to always show as "None".

For Weather Underground, the module had been broken for some time due to
the discontinuation of their API. The module has been rewritten to use
the same API calls that the website itself uses.

* Fix double-click browser launch in wunderground module

* Add example of longer location_code for weather.com
2020-08-27 20:49:26 -05:00
Erik Johnson
a7c24e43b2
Update weather.com backend to reflect upstream changes (#788)
Weather.com embeds the weather data as a JSON in a <script> tag, so this
just updates to reflect recent changes to how that information is
embedded.

Co-authored-by: Erik Johnson <erik.johnson@centurylink.com>
2020-07-31 13:31:51 -05:00