Some details are worked out in description
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
		
							
								
								
									
										18
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								README.md
									
									
									
									
									
								
							@@ -6,20 +6,28 @@ Uses playlists of a non-commercial radio station
 | 
				
			|||||||
Created specially for
 | 
					Created specially for
 | 
				
			||||||
[Open Broadcaster Software](https://obsproject.com/).
 | 
					[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/);
 | 
					* [Support SomaFM](https://somafm.com/support/);
 | 
				
			||||||
* [Demo](https://valentineus.link/obs-somafm-current-track/?radio=defcon);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Using
 | 
					## Using
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Example:
 | 
				
			||||||
```url
 | 
					```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`.
 | 
					Open the view page.
 | 
				
			||||||
This is necessary to the script receives the data of the desired radio.
 | 
					Be sure to set parameter `channel`.
 | 
				
			||||||
A list of available radio stations can be found
 | 
					Parameter `channel` configures an alert for a specific channel.
 | 
				
			||||||
 | 
					You can see the list of all channels
 | 
				
			||||||
[here](https://somafm.com/listen/).
 | 
					[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
 | 
					## Development
 | 
				
			||||||
 | 
					
 | 
				
			||||||
To start a local server for development, you need:
 | 
					To start a local server for development, you need:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user