MathisAlepis / lovelace-tam-card

Montpellier Lovelace TAM card displays next two crossing times of the tramway or bus in Montpellier, France.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hacs_badge License: MIT GitHub release (latest by date) Maintenance

TAM Card

Montpellier Lovelace TAM card displays next two crossing times of the tramway or bus in Montpellier, France.

The APP get's GTFS-RT data from official TAM services of city of Montpellier and "lovelace tam card" display's this data.

Screenshot

Options

Name Type Requirement Description Default
type string Required custom:tam-card custom:tam-card
stop string Required Arrêt Pablo Picasso
direction string Required Direction LATTES CENTRE
textColor string NO Text Color auto or
backgroundColor string NO Background Color auto or

Leave the 'textColor' and 'BackgroundColor' fields empty (or enter 'auto') so that the color is automatically assigned according to the line.

Developing

  1. Fork and clone the repository.
  2. Open the folder and run npm run-script build when it's ready.
  3. The compiled .js file will be accessible at dist folder
  4. On a running Home Assistant installation copy the compiled file to /www/community/XXXXX/
  5. Add the ressouces to Home Assistant Lovelace

About

Montpellier Lovelace TAM card displays next two crossing times of the tramway or bus in Montpellier, France.

License:MIT License


Languages

Language:TypeScript 92.2%Language:JavaScript 7.8%