aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-05-31 07:27:49 +0300
committerValentin Popov <info@valentineus.link>2018-05-31 07:27:49 +0300
commite245824b589ebfc7fa95b875f9e99d71240422d9 (patch)
treee6bbec57a411f915a1193d776d9b8681aa523e44
parent87a1642232676a74d34556e73f812e648ab067aa (diff)
downloadobs-somafm_current_track-e245824b589ebfc7fa95b875f9e99d71240422d9.tar.xz
obs-somafm_current_track-e245824b589ebfc7fa95b875f9e99d71240422d9.zip
Some details are worked out in description
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--README.md18
1 files changed, 13 insertions, 5 deletions
diff --git a/README.md b/README.md
index b63c911..da7c79a 100644
--- a/README.md
+++ b/README.md
@@ -6,20 +6,28 @@ Uses playlists of a non-commercial radio station
Created specially for
[Open Broadcaster Software](https://obsproject.com/).
+* [Demo](https://valentineus.link/obs-somafm-current-track/?duration=7000&interval=15000&channel=defcon);
* [Support SomaFM](https://somafm.com/support/);
-* [Demo](https://valentineus.link/obs-somafm-current-track/?radio=defcon);
## Using
+Example:
```url
-https://valentineus.link/obs-somafm-current-track/?radio=defcon
+https://valentineus.link/obs-somafm-current-track/?duration=7000&interval=15000&channel=defcon
```
-Open the page by specifying the GET parameter `radio`.
-This is necessary to the script receives the data of the desired radio.
-A list of available radio stations can be found
+Open the view page.
+Be sure to set parameter `channel`.
+Parameter `channel` configures an alert for a specific channel.
+You can see the list of all channels
[here](https://somafm.com/listen/).
+Additional, optional parameters:
+* `duration` - Duration of the notification.
+Default 10 seconds, the value is in milliseconds.
+* `interval` - Refresh interval for the playlist.
+Default 10 seconds, the value is in milliseconds.
+
## Development
To start a local server for development, you need: