Commit graph

15 commits

Author SHA1 Message Date
Tobias Witek
621564d247 [core] Switch update interval parameter to seconds
As correctly pointed out by @rrhuffy, restricting update intervals to
minutes is pretty arbitrary. Therefore, change logic to specify updates
intervals in *seconds*.

Also, to maintain backwards compatibility for users that already have
custom intervals in their config, allow a module to specify their own
"factor" for intervals. So a module that expects the interval to be in
minutes can set the factor to 60.
2019-10-29 20:20:19 +01:00
Tobias Witek
3638aa2420 [modules/various] Use new interval mechanism
Use generic interval mechanism in most of the modules that use slow
updates.

Only exception: getcrypto, as the interval is specified in seconds there
and I want to retain backwards-compatibility.

fixes #220
2018-01-07 20:27:11 +01:00
Frederic Junod
a13e593012 Fix unused-import errors found by pylint 2017-10-18 08:38:26 +02:00
Frederic Junod
70a58715f3 Fix unused-variables errors found by pylint 2017-10-18 08:36:07 +02:00
tobi-wan-kenobi
851be18d72 Merge pull request #192 from fredj/currency_use_ft
[modules/current] Use markets.ft.com instead of fixer.io
2017-10-17 20:20:06 +02:00
Frederic Junod
d341c90c53 [modules/currency] Add symbol for JPY 2017-10-17 19:13:26 +02:00
Frederic Junod
1eb49ab53e [modules/currency] Use a list for the data to preserve the order 2017-10-17 19:03:08 +02:00
Frederic Junod
4b1ba93109 [modules/currency] Use markets.ft.com instead of fixer.io 2017-10-17 19:01:57 +02:00
Frederic Junod
6f28726758 Fix unused-import errors found by pylint 2017-10-17 18:59:28 +02:00
Tobias Witek
75140c77b4 [modules/currency] Make output format configurable
Add two format strings:
* sourceformat to specify the "base" format
* destinationdelimiter to format how multiple rates are delimited
2017-09-10 18:37:11 +02:00
Tobias Witek
bf53c5912c [modules/currency] Enable base and symbol configuration
The "base" currency can now be configured using the parameter "source",
and the "symbols" to be resolved can be configured using the parameter
"destination", which is a comma-separated list.

see #169
2017-09-10 09:34:02 +02:00
Tobias Witek
a08db28da0 [modules/currency] Fix runaway docstring 2017-09-07 16:22:30 +02:00
Tobias Witek
f7555f8d6b [modules/currency] Add documentation and screenshot
see #169
2017-09-07 16:19:37 +02:00
Tobias Witek
4ebce517cc [modules/currency] Use unicode strings
see #169
2017-09-07 16:16:35 +02:00
Tobias Witek
86de505cda [modules] rename fx to currency
see #169
2017-09-07 16:10:22 +02:00
Renamed from bumblebee/modules/fx.py (Browse further)