-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Matrix view #9
base: develop
Are you sure you want to change the base?
Matrix view #9
Conversation
add linters
* Added WienerLinien disruption info (lines and elevators) (fewieden#3) * Added functions to display interuptions to lines and elevators * Added .gitignore from MM * Fixed typos in README.md * Changed line disruptions text to full description * removed unused property * Fixed lint errors * Fixed README for config parameter name change * removed project unrelated gitignores * github templates * translations, changelog and cleanup of pr fewieden#3
I really like the looks of it! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall I really like the matrix view.
It would also give us the possabillity to aggregate all stations into one view without rotating between them later (I'm only using three stations).
/* eslint-disable func-names */ | ||
/* eslint-disable prefer-arrow-callback */ | ||
/* eslint-disable no-var */ | ||
/* eslint-disable vars-on-top */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what impact does this have?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This just disables some linting warnings, you can get rid of it, then you will see a few warnings
for (let i = 0; i < this[type].length; i += 1) { | ||
for (var i = 0; i < this[type].length; i += 1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we move to var
from let
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am using an old ipad as magic mirror device. And the old safari version does not work with let
, this is why I use var
s. (on newer browsers it also works with let
)
let temp = text; | ||
var temp = text; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here (var)?
newline not necessary. Style thing thou.
![](.github/example.jpg) ![](.github/example2.jpg) ![](.github/example3.PNG) | ||
![](.github/example.jpg) ![](.github/example2.jpg) ![](.github/example3.PNG) ![](.github/example4.png) | ||
|
||
|
||
Matrix view | ||
![](.github/example-matrix.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added images are to big.
I'd also reduce the amount of images. Maby swap example-matrix with example2. Should be enoth.
@@ -37,7 +41,8 @@ Public Transport of Vienna/Austria Module for MagicMirror<sup>2</sup> | |||
| --- | --- | --- | | |||
| `api_key` | REQUIRED | Get an API key for free access to the data of www.wienerlinien.at [here](https://www.wien.gv.at/formularserver2/user/formular.aspx?pid=3b49a23de1ff43efbc45ae85faee31db&pn=B0718725a79fb40f4bb4b7e0d2d49f1d1). | | |||
| `stations` | REQUIRED | Insert here the station ids you want to display data from [How to find an ID?](https://till.mabe.at/rbl/). | | |||
| `max` | `5` | How many departures should be displayed. | | |||
| `display` | `list` | Show departures as list or as `matrix` (see screenshots). | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both options - matrix
and list
-should be highlighted.
Added a new matrix view (i.e. one line per destination with several departure times)
Screenshot: