Commit Graph

1751 Commits

Author SHA1 Message Date
chestm007
a4ecdd6566 fix #647 weather doesnt run forever if offline on start (#700)
* always run init()

added online/offline_interval to settings of base weather class and accompanying logic

* remove `require(internet)` from `init` methods of both weather modules

* ...
2018-12-25 09:56:33 -06:00
Max
4d237620d9 yep. 2018-12-24 16:39:12 +11:00
euri10
1cd971f582 Added unicode icons to moon crescents (#649) 2018-12-24 15:08:04 +11:00
chestm007
6a4e941082
better handling of optional dependency (#696) 2018-12-22 14:19:25 +11:00
Josip Janzic
b31b5e4f49 Add humanize_remaining formatter (#671)
* Add humanize_remaining formatter

Allows for formating the time remaning to next event in _human readable
format_. Work only if `humanize` module is available.
2018-12-21 13:28:38 +11:00
Erik Johnson
9e3b45812c Update default value for github status URL (#691)
status.github.com has been deprecated, this updates the default URL
2018-12-21 13:20:44 +11:00
chestm007
01ca308eaf
Fix network module. (#694)
* default rounding should be 0.

* we also should only be calculating bytes_recv, bytes_sent if we are displaying network traffic
2018-12-21 13:16:23 +11:00
chestm007
f461b1b953
Fix googlecalendar's misleading first run semantics (#689)
* ...

* docs

* ...

* pep8.... everytime

* i broke docs

* derp
2018-12-21 03:31:19 +11:00
chestm007
d30773b92d
autoscaling network usage units (#684)
* bytes_info_dict

* network auto unit selection

* network
2018-12-21 03:25:54 +11:00
chestm007
a333effc88
Deluge (#685)
deluge module
2018-12-21 03:23:16 +11:00
chestm007
d9c5d92bdc
allow adjusting volume, centralization of some code (#688) 2018-12-21 03:14:15 +11:00
chestm007
91a0b5d05d
basic amdgpu monitoring (#686)
* basic amdgpu monitoring
2018-12-21 03:09:22 +11:00
chestm007
2ead8fd2f3
require internet, if backend returns falsey assume it was 0 (#687)
require internet, if backend returns falsey assume it was 0
2018-12-21 01:59:48 +11:00
chestm007
f909d7edfc
use raw string (#682)
Cpu usage color (just an updated #376 to fix failed test due to regex)
2018-12-21 01:32:29 +11:00
Björn Guth
c9c83bfce4 added dynamic color support for cpu_usage (#376)
* added dynamic color support for cpu_usage

* some minor fixes to pass build tests

* added new PyPI requirement to documentation

* removed explicit setting self.color in CpuUsage

as a response to @facetoe removed explicitly setting self.color and instead
set the class wide variable color to #FFFFFF to not have the output been shown
in black.
2018-12-21 01:26:35 +11:00
chestm007
42d9955a9b stop iinet from filling the bar with a connection error if internet is down (#679)
* only run if we have internet

* decorators are so clean
2018-12-08 15:39:11 +00:00
chestm007
ece908d9ae Travisci (#677) 2018-12-08 15:38:00 +00:00
Егор
90460d94ce Abridge levels description, add example instead (#683)
fixes issue #681
2018-12-08 15:36:46 +00:00
enkore
8120d807eb
The golem is dead 2018-12-03 12:42:54 +01:00
Егор
fde7b6bb78 Added levels settings to the battery module (#654)
* Added levels settings to the battery module

Specify text for custom levels of the battery charge

* Round up charge the same way it is displayed

percentage value used to determine text from levels setting should be
round up the same way as when it is displayed on the screen
2018-12-03 11:41:02 +00:00
1m0d
7e8da7686c add option to round coin price to set decimal point (#658)
* add option to round coin price to set decimal point

* import decimal
2018-12-03 11:38:41 +00:00
Raphael Scholer
82f9548a2c Support auracle as an update backend (#669) 2018-12-03 11:38:14 +00:00
tigerjack
55f8812bc9 temp.py: Fixed bug related to dynamic colors (#672)
When a custom alert_temp was given, for any temperature value above alert_temp
the module generated an "IndexError: string index out of range" error.
2018-12-03 11:35:31 +00:00
Josip Janzic
625d6a0b9d Add options to skip certain events (#673) 2018-12-03 11:35:06 +00:00
Duncan Elliot
e42efd8be7 Glyph based representation of numeric values (#674)
* Add make_glyph function to core utils

A new function (in line with similar functions such as make_bar),
make_glyph allows generating a glyph based representation of a numeric
value.

An example use case would be to use a set of battery level glyphs from
FontAwesome to represent battery charge percentage.

* Update battery module to use make_glyph function

Minor update to battery module to allow use of make_glyph function.
Default glyphs do not provide anything fancy, but allow a hook point for
using more interesting glyphs from fonts with battery icons.
2018-12-03 11:34:45 +00:00
Егор
7999358986 Add album_artist field to mpd format (#675)
Issue #646
2018-12-03 11:33:46 +00:00
chestm007
261667e5e8 fix typo, fix issue #622 (#680) 2018-12-03 11:30:40 +00:00
Jörg Thalheim
a586a50cd8 i3pystatus.network: prefer non link-locale v4 addresses (#656)
Addresses in 169.254.0.0/16 are auto-assigned as of RFC 3927.
These can be negotiated via the zeroconf protocol (avahi-autoip or systemd-networkd).
Usually those addresses are not so interesting and the addresses given by dhcp should be shown instead.
2018-08-25 16:36:03 +00:00
Erik Johnson
bfdff2edbf
Fix weather.com weather provider after upstream change (#665)
The format for the JSON data we scrape from the webpage has changed,
this updates the module to handle the new format.
2018-08-21 10:22:32 -05:00
Erik Månsson
f6e3b40b24 Add Sonos module (#655) 2018-08-13 17:04:53 +00:00
Егор
0d7156b5b1 WIP: Fix pycodestyle errors (#653)
* Fix pycodestyle errors

W503 is condracting PEP-8 and was added to the default ignore list by
pycodestyle developers

* Use setup.cfg for pycodestyle ignore parameters

Addresses #651 (kind of). Appending ignores to the default list prevents
us from getting warnings that we don't care about.

* W503 is not in the default ignore list in 2.4.0
2018-08-06 13:29:19 +00:00
enkore
0dad095c07
Python 3.7 compatibility fix (format_string is now positional only) 2018-08-06 15:27:25 +02:00
chestm007
35537e95eb fix vdsl2 usage, also add "used" formatter (#659)
* fix vdsl2 usage, also add "used" formatter

* PEP fix
2018-08-01 10:17:28 +10:00
Mario Baranzini
a252beb1db Change DesktopNotification arguments (#657)
Change `DesktopNotification` arguments to named arguments because `DesktopNotification` constructor uses `**kwarg` and requires named arguments.
2018-07-17 08:58:03 -05:00
Raphael Scholer
0f4480e991 updates.Pacman depends on pacman-contrib since pacman 5.1.0 (#650) 2018-05-31 11:36:25 +02:00
Егор
3efbd56bb7 Add a color map for mpd states (#640) 2018-03-31 14:35:15 +02:00
Stefan Devai
c37dd115e5 Module for generating a random password (#637)
Module for generating a random password and copying it to the clipboard with a double left click. It uses xsel or xclip.
2018-03-24 11:58:45 +01:00
forscher21
56c6e04f84 Add mail backend for Exchange account (#636)
* Add mail backend for Exchange account

* Rename backend class, clean code
2018-03-01 15:45:57 +11:00
Gareth Dunstone
d053216ea8 gpu_usage module (#635)
* created gpu_usage module

* naming and docstrings
2018-02-27 19:12:02 +11:00
enkore
3eb12a361f
Update changelog.rst 2018-01-11 11:37:37 +01:00
enkore
73762bf21e
Update README.rst 2018-01-11 11:37:06 +01:00
enkore
396e2fec7d
Update README.rst 2018-01-11 11:35:28 +01:00
Sven Gebauer
20fa8fbeb5 network: Fix missing wifi info when using format_active_up (#630) 2017-12-20 20:44:24 +11:00
Facetoe
48e5074412
temp.py: Raise an Exception if no sensors detected. (#627)
Provides a better error message for cases such as #626.
2017-11-22 19:21:48 +08:00
Johannes Löthberg
8682fa232a temp: Honor color setting when pango is enabled and dynamic color is False (#625)
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2017-11-21 08:09:50 +08:00
Johannes Löthberg
9818e8d750 temp: Ignore pysensors exceptions on unavailable subfeature (#624)
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2017-11-20 15:08:21 +08:00
1m0d
17ffa35435 Feature/coin (#623)
* add coin.py

* add example settings

* refactor whitespaces for merge requirements

* update class docstring
2017-11-20 07:52:45 +08:00
Enrique A
e99882fea5 New source of cpu information (#617)
* Added new source of cpu information

Starting with kernel 4.13 /proc/cpuinfo only show the basic clock of the
processor not the current frequency. Change adds information from
/sys/devices/system/cpu , considering online and offline cpu's.

* PEP8 fixes

* Fix cpus_online_range
2017-11-06 11:01:23 +08:00
Erik Johnson
86343d04ca Wunderground: retry getting nearest station ID if not set (#619) 2017-11-06 10:13:16 +08:00
Facetoe
86e05c0f9e
network.py: Update default format. (#616) 2017-10-29 11:02:16 +08:00