This commit is contained in:
enkore 2014-04-14 15:34:32 +02:00
parent a729f338a9
commit 496d8ffa35
3 changed files with 17 additions and 10 deletions

View File

@ -29,8 +29,8 @@ Packages for your OS
Release Notes Release Notes
------------- -------------
3.28 (not released yet) 3.28
+++++++++++++++++++++++ ++++
* **If you're currently using the ``i3pystatus`` command to run your i3bar**: * **If you're currently using the ``i3pystatus`` command to run your i3bar**:
Replace ``i3pystatus`` command in your i3 configuration with ``python ~/path/to/your/config.py`` Replace ``i3pystatus`` command in your i3 configuration with ``python ~/path/to/your/config.py``
@ -41,6 +41,7 @@ Release Notes
* pulseaudio: changed context name to "i3pystatus_pulseaudio" * pulseaudio: changed context name to "i3pystatus_pulseaudio"
* Code changes * Code changes
* Do not name your script i3pystatus.py or it will break imports. * Do not name your script i3pystatus.py or it will break imports.
* Removed DHL tracker of parcel module, because it doesn't work anymore.
3.27 3.27
++++ ++++
@ -337,7 +338,7 @@ Settings:
:alert_format_title: The title of the notification, all formatters can be used (default: ``Low battery``) :alert_format_title: The title of the notification, all formatters can be used (default: ``Low battery``)
:alert_format_body: The body text of the notification, all formatters can be used (default: ``Battery {battery_ident} has only {percentage:.2f}% ({remaining:%E%hh:%Mm}) remaining!``) :alert_format_body: The body text of the notification, all formatters can be used (default: ``Battery {battery_ident} has only {percentage:.2f}% ({remaining:%E%hh:%Mm}) remaining!``)
:path: Override the default-generated path (default: ``None``) :path: Override the default-generated path (default: ``None``)
:status: A dictionary mapping ('DIS', 'CHR', 'FULL') to alternative names (default: ``{'CHR': 'CHR', 'FULL': 'FULL', 'DIS': 'DIS'}``) :status: A dictionary mapping ('DIS', 'CHR', 'FULL') to alternative names (default: ``{'FULL': 'FULL', 'CHR': 'CHR', 'DIS': 'DIS'}``)
:interval: (default: ``5``) :interval: (default: ``5``)
@ -615,7 +616,7 @@ Settings:
:host: (default: ``localhost``) :host: (default: ``localhost``)
:port: MPD port (default: ``6600``) :port: MPD port (default: ``6600``)
:format: formatp string (default: ``{title} {status}``) :format: formatp string (default: ``{title} {status}``)
:status: Dictionary mapping pause, play and stop to output (default: ``{'pause': '▷', 'stop': '◾', 'play': '▶'}``) :status: Dictionary mapping pause, play and stop to output (default: ``{'play': '▶', 'stop': '◾', 'pause': '▷'}``)
:interval: (default: ``1``) :interval: (default: ``1``)
@ -660,10 +661,12 @@ parcel
++++++ ++++++
Used to track parcel/shipments.
Settings: Settings:
:instance: Tracker instance :instance: Tracker instance, for example ``parcel.UPS('your_id_code')``
:format: (default: ``{name}:{progress}``) :format: (default: ``{name}:{progress}``)
:name: :name:
:interval: (default: ``20``) :interval: (default: ``20``)

View File

@ -29,8 +29,8 @@ Packages for your OS
Release Notes Release Notes
------------- -------------
3.28 (not released yet) 3.28
+++++++++++++++++++++++ ++++
* **If you're currently using the ``i3pystatus`` command to run your i3bar**: * **If you're currently using the ``i3pystatus`` command to run your i3bar**:
Replace ``i3pystatus`` command in your i3 configuration with ``python ~/path/to/your/config.py`` Replace ``i3pystatus`` command in your i3 configuration with ``python ~/path/to/your/config.py``
@ -41,6 +41,7 @@ Release Notes
* pulseaudio: changed context name to "i3pystatus_pulseaudio" * pulseaudio: changed context name to "i3pystatus_pulseaudio"
* Code changes * Code changes
* Do not name your script i3pystatus.py or it will break imports. * Do not name your script i3pystatus.py or it will break imports.
* Removed DHL tracker of parcel module, because it doesn't work anymore.
3.27 3.27
++++ ++++

View File

@ -18,7 +18,7 @@ class TrackerAPI:
return {} return {}
class DHL(TrackerAPI): """class DHL(TrackerAPI):
URL = "http://nolp.dhl.de/nextt-online-public/set_identcodes.do?lang=en&idc={idcode}" URL = "http://nolp.dhl.de/nextt-online-public/set_identcodes.do?lang=en&idc={idcode}"
def __init__(self, idcode): def __init__(self, idcode):
@ -47,7 +47,7 @@ class DHL(TrackerAPI):
def get_url(self): def get_url(self):
return self.url return self.url
"""
class UPS(TrackerAPI): class UPS(TrackerAPI):
URL = "http://wwwapps.ups.com/WebTracking/processRequest?HTMLVersion=5.0&Requester=NES&AgreeToTermsAndConditions=yes&loc=en_US&tracknum={idcode}" URL = "http://wwwapps.ups.com/WebTracking/processRequest?HTMLVersion=5.0&Requester=NES&AgreeToTermsAndConditions=yes&loc=en_US&tracknum={idcode}"
@ -79,10 +79,13 @@ class UPS(TrackerAPI):
class ParcelTracker(IntervalModule): class ParcelTracker(IntervalModule):
"""
Used to track parcel/shipments.
"""
interval = 20 interval = 20
settings = ( settings = (
("instance", "Tracker instance"), ("instance", "Tracker instance, for example ``parcel.UPS('your_id_code')``"),
"format", "format",
"name", "name",
) )