Commit Graph

1841 Commits

Author SHA1 Message Date
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
Daniel Theodoro
1f8b0a7863
Add a new module to manage Yubikey devices (#785)
* Add a new module to manage a Yubikey device

* Set python 3.6+ as a requeriment

* remove the enable_shell parameter used by run_through_shell in the yubikey module
2020-07-23 22:27:50 +02:00
enkore
d6b9c95a4c
net_speed: fix whitespace issue 2020-07-16 23:56:03 +02:00
Erik Johnson
dad5eb0c5c
Update weather.com weather backend to reflect API changes (#783) 2020-06-12 10:31:28 -05:00
Erik Johnson
e0234c1223
Update Github module to pass access token in request header (#777)
* Update Github module to pass access token in request header

Also update the status colors to match the current Github Status webpage
CSS.

* Fix indentation
2020-04-12 10:50:08 -05:00
Mathis Felardos
25f43621ed
utils/gpu: fix nvidia-smi parsing for new nvidia-smi that uses (N/A) when unsupported (#776) 2020-04-02 19:28:21 +02:00
Giancarlo Razzolini
db14a88fc9
spotify: Fix the spotify module (#773)
The now_playing module does not use player_name anymore so the spotify module is broken.
Change it to use player so it works correctly.
2020-02-26 23:24:55 +01:00
David Wahlstrom
3ec743b94b
Add a new module to display charge status of a Tesla (#762)
Signed-off-by: David Wahlstrom <david.wahlstrom@gmail.com>
2020-02-13 14:37:53 +01:00
chestm007
5c56fe12ed
alert on design percentage if desired (#756)
* needs testing.

* formatting fix
2020-02-10 13:51:12 +01:00
Gareth Dunstone
0550d0ab37
Bluetooth Module (#761)
* Added very simple bluetooth device module.

* Added a little bit more functionality, like hiding of blocked and non-paired devices, the option to hide disconnected but paired devices.

Added colour change and connected_color option for connected devices.

* fixing my imperfect style

* more fixing of imprefect code style
2020-02-10 13:49:46 +01:00
Facetoe
2c7de0b88e Fix index error in temp module. (#766) 2020-02-10 17:43:25 +08:00
Facetoe
ad4ae456a5 Allow setting dynamic_color in cpu_usage_bar (#767) 2020-02-10 17:43:13 +08:00
Tassos Natsakis
607584f160 Allowing to set the duration format for the timewarrior module (#769) 2020-01-07 09:04:51 -06:00
Egor Zvorykin
5a8eaf4027 Fix py38 warning (#770) 2019-11-18 18:32:34 +11:00
Erik Johnson
cb69563c33
Add documentation on callbacks executing the run() func (#765)
Resolves #378.
2019-10-10 15:15:59 -05:00
Erik Johnson
3bd0845797
Fix spelling in module docs (#764) 2019-10-10 13:37:57 -05:00
Erik Johnson
82fc9fbe44
Fix typo in weather docs (#763) 2019-10-03 09:23:51 -05:00
tyjak
4bafdd6901 Added Yay backend for updates script (#758) 2019-07-24 09:15:28 +10:00
chestm007
af6d98cb8e
Custom vertical bar glyphs (#738)
* refactor make_vertical_bar

refactor to use make_glyph under the hood (de-duping code)

* Allow pulseaudio module to accept custom vertical bar arrays

also added config example
2019-07-17 05:22:54 +10:00
chestm007
2016addf81
add color support to coin module (#755)
* add color support to coin module

* remove whitespace
2019-07-17 05:15:23 +10:00