Commit Graph

1873 Commits

Author SHA1 Message Date
tyjak
4e3ea71437 Fix battery status
see https://github.com/enkore/i3pystatus/issues/877
2025-05-04 16:22:10 +02:00
tyjak
812a463846 Apply MR #869 2025-02-06 19:44:25 +01:00
tyjak
377ab13705 Fix and refactor bticoin module
* change API endpoint to blockchain.info
* remove wallet monitor functionality
2024-10-20 14:32:07 +02:00
David Foucher
e828091c25 Fix ping module with LANG fixed to C 2024-08-15 09:55:21 +02:00
Giancarlo Razzolini
f3c539ad78
Introduces a plugin to display information about Galaxy Buds devices using (#860)
the earbuds tool from https://github.com/JojiiOfficial/LiveBudsCli

* Displays per bud battery level
* Displays case battery level
* Displays placement status
* Displays and sets both Ambient sound (AMB) and Active noise control (ANC)
* Has commands to connect/disconnect
* Dynamic coloring based on battery level
* Equalizer setting
* Touchpad lock
2024-06-13 12:10:08 -05:00
Alexandre Detiste
c899ec1c5a
remove dependency on old mock (#855) 2024-06-13 12:09:04 -05:00
Giancarlo Razzolini
5cbb06292d
Update the code for imp's removal with python 3.12 (#865)
* Changed the `__init__.py` file to use importlib instead of imp.
2024-05-30 00:29:55 -05:00
Erik Johnson
fd96fc6d2e
Ignore empty color strings to prevent xsession errors (#864)
Fixes #863
2024-05-30 00:28:05 -05:00
Erik Johnson
28ed5c1c30
Wunderground: fix API key lookup (#858) 2024-02-05 20:48:02 -06:00
Mathis Felardos
534822077a
Replace pacmd calls with pactl to support Pipewire (#836) (#836)
Co-authored-by: EgZvor <ezvor@mail.ru>
2023-12-01 06:55:58 -06:00
elig0n
d4addb9e78 Update conf.py
Fixes
AttributeError: 'Sphinx' object has no attribute 'add_stylesheet'
2023-11-18 17:07:22 +00:00
Erik Johnson
0820dd4e3d
i3pystatus.scores.nhl: Handle null win/loss values during playoffs (#846) 2023-04-25 15:56:08 -05:00
Erik Johnson
60ac28b678
i3pystatus.scores.mlb: Update default colors to reflect API change (#845)
The Arizona Diamondbacks are now identified using AZ instead of ARI.
2023-04-04 10:35:51 -05:00
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