I'm trying to use a script that has sliders to control some homeseer devices.
How can I insert a DeviceString into a javascript and how do I run a Homeseer function from a javascript?
To give you an example of what I'm trying to do, I have a Denon amp that reports it's volume setting in a virtual device. When I run an asp page that controls this I use hs.DeviceString("v8") which returns the present value of the volume control. To change the volume I use the command
s = hs.RunEx("denon.vbs","send","MVUP") and then recall the page with a response.redirect statement, and the page comes up with the new value. This works but is akward, so I wanted to use a slider, but that is in javascript.
Any suggestions?
Thanks;
How can I insert a DeviceString into a javascript and how do I run a Homeseer function from a javascript?
To give you an example of what I'm trying to do, I have a Denon amp that reports it's volume setting in a virtual device. When I run an asp page that controls this I use hs.DeviceString("v8") which returns the present value of the volume control. To change the volume I use the command
s = hs.RunEx("denon.vbs","send","MVUP") and then recall the page with a response.redirect statement, and the page comes up with the new value. This works but is akward, so I wanted to use a slider, but that is in javascript.
Any suggestions?
Thanks;
Comment