First try at posting a script.. so go easy
It users the BrowserAmp plugin for Winamp (link for DL included). Pretty straight-forward scripts - would appreciate suggestions on how to condense / make the script more efficient.
Any questions can be e-mailed to boomhaeur_hswa@hotmail.com
Discussion Thread creted HERE
Boomhauer...
************************************************************ *****
* HS-WA Controls V 1.0 *
*---------------------------------------------------------------*
* *
* Read Me *
* *
************************************************************ *****
-----------------------------------------------------------------
REQUIREMENTS
-----------------------------------------------------------------
For these scripts to function properly you'll need to install the
BrowserAmp plug-in developed by Henry Thasler.
You can download this plugin at http://www.browseamp.com
Even without these scripts this is a worthy plugin to download and
make use of. It's essentially a web-based front-end for WinAmp 2.9
-----------------------------------------------------------------
|!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!NOTE!!!!!!!!!!!!!!!!!!!!!!!!! !!!!|
| |
| BROWSERAMP WILL NOT FUNCTION WITH WINAMP 3 - YOU MUST USE THE |
| "LATEST" VERSION OF THE WINAMP 2.x SOFTWARE. |
| |
| It can be downloaded at: |
| http://classic.winamp.com/download/index.jhtml |
| |
-----------------------------------------------------------------
-----------------------------------------------------------------
BACKGROUND
-----------------------------------------------------------------
I worte these as a straightforward workaround to avoid either
having to buuy a plug-in or learn how to work the WinAmpCOM. The
BrowserAmp plugin was something I was running anyways for it's
web capabilities I figured these scripts were a logical (and easy
extension).
If you like these scripts (and/or the BrowserAmp Plug-in) please
donate to Henry's PayPal account (link available through his
site), after all he really did the hard work here.
-----------------------------------------------------------------
HOW IT WORKS / WHAT IT DOES
-----------------------------------------------------------------
The BrowserAmp plug-in uses HTML calls to trigger WinAmp. The
variable that it passes to the server tells it which action to
perform.
Example: "http://localhost:9090/index.html?next" would trigger
WinAmp to skip to the next song.
The included scripts simply call the URL depending on the
selected function.
The scripts provided allow for two types of configuration:
1. One Button per function
- Each command takes up a seperate button/X10 Command
channel. For example A1 On would be Pause, A1 Off would
be play, etc.
2. Multi-function buttons.
- Two scripts are also provided to allow the dimmers to
serve multiple functions depending on the status of the
X10 Devive Channel. For example an A1 "Off" status would
make the dim buttons operate as controls (bright=pause,
dim=play) and an A1 "On" Status would make the dim
buttons operate as volume controls (bright=vol up,
dim=vol_down).
Scripts/Functions provided:
- Play
- Stop
- Pause
- Skip Next
- Skip Previous
- Current Song (Speaks current song)
* - Scan Forward and Backward were attempted but their effect
in browser amp doesn't seem to work properly as the response
time for homeseer/Browser chews up most of the 5 second skip
which means the sound only blips momentarily and the song
stays in pretty much the same spot.
-----------------------------------------------------------------
FILES
-----------------------------------------------------------------
The following files need to be placed in your Homeseer "Scripts"
Folder:
- HSWA-next.txt
- HSWA-pause.txt
- HSWA-prev.txt
- HSWA-stop.txt
- HSWA-vol_down.txt
- HSWA-vol_up.txt
- HSWA-multi_bright.txt
- HSWA-multi_dim.txt
- HSWA-song.txt
The following File needs to be placed in your BrowserAmp "Base"
folder (Found in ../Winamp/Plugins/BrowserAmp/):
- HSWA-whatvolume.html
- HSWA-whatsong.html
-----------------------------------------------------------------
SETUP
-----------------------------------------------------------------
In the scripts:
You will need to change the port/URL in each of the scripts if
you use a port other than "9090" for your BroserAmp server (port
is configured in the BrowserAmp config screen). The BrowserAmp
server can be run on any box just ensure that "only allow local
host access" isn't checked. If you do use another server for
BrowserAmp you'll need to also change "localhost" to the IP
address of the box BrowserAmp is running on.
The two volume scripts have multiple links mentioned so be
sure you adjust each of them. The volume scripts also have
optional lines that speak the volume. I included it as I found
it helpful to hear what volume you were at, especially if your
sound runs out to another unit that has volume control - it gave
me an idea of what the server was at without having to run into the
computer room to check and prevents having one system cranked too
loud because your winamp volume is turned down.
In Homeseer:
You will need to create an event for each control you wish to use
on your X-10 remote. Attach each Event to an X-10 Command and
associate it with the appropriate script.
Suggested 6 Button Configuration:
A1 On = Stop
A1 Off = Play
A2 On = Pause
A2 Dim = Volume Down
A2 Bright = Volume Up
(Dim and bright accessed w/out effect thrugh A2 Off)
A3 On = Previous
A3 Off = Next
Optional Button:
To work the "What Song" Button into the configuration consider
Replacing the "Pause" button on A2 On. If desired you could
then operate w/out a stop button and just use the "Pause"
button on A1 On.
Suggested 4 Button Multi-function Configuration:
To handle the multi-function configuration you will need to
create one virtual device to work as a toggle for which function
the user is attempting to operate. It's On or Off status will tell
the scripts which action to perform upon receiving a Dim or Bright
command. This device must have the same X10 Device Code as the
buttons you wish to attach the dim/bright scripts to (ie. in the
example below "A1") Please ensure that "Device can be dimmed" is
It users the BrowserAmp plugin for Winamp (link for DL included). Pretty straight-forward scripts - would appreciate suggestions on how to condense / make the script more efficient.
Any questions can be e-mailed to boomhaeur_hswa@hotmail.com
Discussion Thread creted HERE
Boomhauer...
************************************************************ *****
* HS-WA Controls V 1.0 *
*---------------------------------------------------------------*
* *
* Read Me *
* *
************************************************************ *****
-----------------------------------------------------------------
REQUIREMENTS
-----------------------------------------------------------------
For these scripts to function properly you'll need to install the
BrowserAmp plug-in developed by Henry Thasler.
You can download this plugin at http://www.browseamp.com
Even without these scripts this is a worthy plugin to download and
make use of. It's essentially a web-based front-end for WinAmp 2.9
-----------------------------------------------------------------
|!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!NOTE!!!!!!!!!!!!!!!!!!!!!!!!! !!!!|
| |
| BROWSERAMP WILL NOT FUNCTION WITH WINAMP 3 - YOU MUST USE THE |
| "LATEST" VERSION OF THE WINAMP 2.x SOFTWARE. |
| |
| It can be downloaded at: |
| http://classic.winamp.com/download/index.jhtml |
| |
-----------------------------------------------------------------
-----------------------------------------------------------------
BACKGROUND
-----------------------------------------------------------------
I worte these as a straightforward workaround to avoid either
having to buuy a plug-in or learn how to work the WinAmpCOM. The
BrowserAmp plugin was something I was running anyways for it's
web capabilities I figured these scripts were a logical (and easy
extension).
If you like these scripts (and/or the BrowserAmp Plug-in) please
donate to Henry's PayPal account (link available through his
site), after all he really did the hard work here.
-----------------------------------------------------------------
HOW IT WORKS / WHAT IT DOES
-----------------------------------------------------------------
The BrowserAmp plug-in uses HTML calls to trigger WinAmp. The
variable that it passes to the server tells it which action to
perform.
Example: "http://localhost:9090/index.html?next" would trigger
WinAmp to skip to the next song.
The included scripts simply call the URL depending on the
selected function.
The scripts provided allow for two types of configuration:
1. One Button per function
- Each command takes up a seperate button/X10 Command
channel. For example A1 On would be Pause, A1 Off would
be play, etc.
2. Multi-function buttons.
- Two scripts are also provided to allow the dimmers to
serve multiple functions depending on the status of the
X10 Devive Channel. For example an A1 "Off" status would
make the dim buttons operate as controls (bright=pause,
dim=play) and an A1 "On" Status would make the dim
buttons operate as volume controls (bright=vol up,
dim=vol_down).
Scripts/Functions provided:
- Play
- Stop
- Pause
- Skip Next
- Skip Previous
- Current Song (Speaks current song)
* - Scan Forward and Backward were attempted but their effect
in browser amp doesn't seem to work properly as the response
time for homeseer/Browser chews up most of the 5 second skip
which means the sound only blips momentarily and the song
stays in pretty much the same spot.
-----------------------------------------------------------------
FILES
-----------------------------------------------------------------
The following files need to be placed in your Homeseer "Scripts"
Folder:
- HSWA-next.txt
- HSWA-pause.txt
- HSWA-prev.txt
- HSWA-stop.txt
- HSWA-vol_down.txt
- HSWA-vol_up.txt
- HSWA-multi_bright.txt
- HSWA-multi_dim.txt
- HSWA-song.txt
The following File needs to be placed in your BrowserAmp "Base"
folder (Found in ../Winamp/Plugins/BrowserAmp/):
- HSWA-whatvolume.html
- HSWA-whatsong.html
-----------------------------------------------------------------
SETUP
-----------------------------------------------------------------
In the scripts:
You will need to change the port/URL in each of the scripts if
you use a port other than "9090" for your BroserAmp server (port
is configured in the BrowserAmp config screen). The BrowserAmp
server can be run on any box just ensure that "only allow local
host access" isn't checked. If you do use another server for
BrowserAmp you'll need to also change "localhost" to the IP
address of the box BrowserAmp is running on.
The two volume scripts have multiple links mentioned so be
sure you adjust each of them. The volume scripts also have
optional lines that speak the volume. I included it as I found
it helpful to hear what volume you were at, especially if your
sound runs out to another unit that has volume control - it gave
me an idea of what the server was at without having to run into the
computer room to check and prevents having one system cranked too
loud because your winamp volume is turned down.
In Homeseer:
You will need to create an event for each control you wish to use
on your X-10 remote. Attach each Event to an X-10 Command and
associate it with the appropriate script.
Suggested 6 Button Configuration:
A1 On = Stop
A1 Off = Play
A2 On = Pause
A2 Dim = Volume Down
A2 Bright = Volume Up
(Dim and bright accessed w/out effect thrugh A2 Off)
A3 On = Previous
A3 Off = Next
Optional Button:
To work the "What Song" Button into the configuration consider
Replacing the "Pause" button on A2 On. If desired you could
then operate w/out a stop button and just use the "Pause"
button on A1 On.
Suggested 4 Button Multi-function Configuration:
To handle the multi-function configuration you will need to
create one virtual device to work as a toggle for which function
the user is attempting to operate. It's On or Off status will tell
the scripts which action to perform upon receiving a Dim or Bright
command. This device must have the same X10 Device Code as the
buttons you wish to attach the dim/bright scripts to (ie. in the
example below "A1") Please ensure that "Device can be dimmed" is