Commit Graph
11 Commits
Author SHA1 Message Date
Malte Deiseroth f261aac9cb repaired dependency of the acer projector switch 2016-07-17 16:45:58 +02:00
Malte Deiseroth b096004449 New deutsche_bahn component
Uses the (schiene)[https://pypi.python.org/pypi/schiene/0.14] API to communicate with the webserver of bahn.de
and pulls iformation about a specific connection from the (bahn.de)[http://www.bahn.de/p/view/index.shtml]
webpage. The departure time of the next train for the given connection is shown.
In case of delay, the delay is also shown. Additional `ATTRIBUTES` are used to
inform about e.g. the type of the train, price and if it is ontime.

Usage:

    sensor:
      platform: deutsche_bahn
        from: name_of_start_station
	  to: name_of_final_station

Problems:
I'm testing it for quite some time, but I have never seen the `ATTRIBUTES` in case
of a delayed train. The `ATTRIBUTES` are directly passed from the `schiene` API. So this
usecase has not been tested yet.

deutsche_bahn ist not supporting the `schiene` api unlike in the swiss_public_transport case.
It's not guaranteed that `schiene` will work forever, infact it can happen that Bahn AG will
intentionally brake the API at some point. In the past Bahn AG has not allways been very supportive
to the opensource community.
2016-02-24 17:35:00 +01:00
Malte Deiseroth cb2e75befd removed trailing whitespace 2016-02-01 19:24:08 +01:00
Malte Deiseroth d6b19aae48 - check for reasonable temperature values
- round temperature to one digit
2016-01-31 22:56:48 +01:00
Malte Deiseroth ef76047ba2 new try to add everythin from the stylecheckers 2015-09-22 13:27:08 +02:00
Malte Deiseroth d475e5362b respect flake8 errors 2015-09-22 12:53:44 +02:00
Malte Deiseroth 3027b4a5a8 respect pylint suggestions 2015-09-22 12:32:45 +02:00
Malte Deiseroth 3829abbd2d updated with remote 2015-09-22 12:18:00 +02:00
Malte Deiseroth e6e3b37a62 merged with current dev 2015-09-22 12:11:57 +02:00
Malte Deiseroth ce501ae627 Improved onewire configuration 2015-09-16 14:17:41 +02:00
Malte Deiseroth 8842e4e94f gitignore ready for emacs 2015-09-16 08:34:08 +02:00