Skip to content

YKilian/openFM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

openFM Logo

openFM

HTML5 CSS3 JavaScript Bootstrap iTunes API

openFM is a modern web application that allows users to stream radio stations via the laut.fm API. The application displays current track information, station details, and a history of recently played tracks. The design is responsive and utilizes modern web technologies for an optimal user experience.


Features

  • Live streaming of radio stations via the laut.fm API
  • Display of current track information (artist, title, album cover)
  • Station details (name, slogan, description, location, social media links)
  • Broadcast schedule (current and next show)
  • History of recently played tracks
  • Responsive design for all devices
  • Dynamic background images based on the current album cover

Technologies

  • Frontend: HTML5, CSS3, JavaScript (ES6+)
  • Framework: Bootstrap 5
  • APIs: laut.fm API, iTunes API
  • Design: Modern, customizable UI with dynamic colors

Installation

Prerequisites

  • A modern web browser (Chrome, Firefox, Edge, Safari)
  • Internet connection (for API requests and streaming)

Steps

Clone the repository:

  git clone https://github.com/ykilian/openFM.git
  cd openFM

Then open the index.html file in your preferred web browser.


Configuration

Station selection

Change the STATION variable in assets/js/main.js to stream a different station:

const STATION = 'mangoradio'; // Replace 'mangoradio' with the desired station name

Broadcast schedule

The broadcast schedule will show your station logo by default. If you want to have custom images, find out the id of your playlist under https://api.laut.fm/station/YOUR_STATION_NAME/playlists (replace YOUR_STATION_NAME with your station name) and place your image in the folder openFM/assets/img, named as the id you just found out.

E.g. The playlist has the id 12345, you name your file 12345.webp

You can use these file formats: webp, png, jpg, jpeg, svg

The days are getting displayed in german. If you want to change that to any other language, change the dayMap variable in assets/js/main.js

const dayMap = {
    mon: 'Montag',
    tue: 'Dienstag',
    wed: 'Mittwoch',
    thu: 'Donnerstag',
    fri: 'Freitag',
    sat: 'Samstag',
    sun: 'Sonntag'
};

Hide broadcast schedule

By default, your page will show your broadcast schedule. If you want to disable that feature, just change the SHOW_TIMETABLE variable in assets/js/main.js

const SHOW_TIMETABLE = true; // Replace true with false

Usage

  1. Open the application in your web browser.
  2. Click the Play button to start the stream.
  3. The application will automatically display the current track information, album cover, and station details.
  4. Use the links below the station logo to visit the station on other platforms.

API Reference

laut.fm API

iTunes API


LICENSE

This project is licensed under the MIT License.

About

openFM is a modern web application that allows users to stream radio stations via the laut.fm API. The application displays current track information, station details, and a history of recently played tracks. The design is responsive and utilizes modern web technologies for an optimal user experience.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors