# Preview ![Preview](https://i.ibb.co/QK11v13/RATP4.png) # Installation `smashing install bc4014fa61f08b31f3d42a5e78c49d9b` # Configuration - `ratp.scss`: adjust background-color and font-size to your preference. - `ratp.rb`: configure with the desired stops and directions. Pro-tip: while you can still set the desired transports in `ratp.rb`, it is a better idea to separate the code from the data by placing the data in the `config/settings.rb` file instead. This will make the upgrades easier. To do so, the `config` directory should be created at the root level of the dashboard (at the same level of the `jobs` folder), and inside it, you should create a file called `settings.rb`. The `settings.rb` file is automatically picked up before the widget. In that file, you would define your transports: ``` require_relative '../jobs/ratp_utils.rb' TRANSPORTS = [ Transport.new(Type::BUS, '22', 'Ranelagh', 'Gare Saint-Lazare'), Transport.new(Type::METRO, '9', 'Ranelagh', 'Mairie de Montreuil'), Transport.new(Type::TRAM, '2', 'Porte de Versailles', 'Pont de Bezons'), ] ``` Some destinations are incorrect in the IDFM database. You can use 'A' or 'R' as destinations. `Transport.new(Type::BUS, '42', 'Versailles - Chardon Lagache', 'R')` # Usage ```
  • ``` You can omit `data-title` to free up space for more destinations.