Yes, see this.
Write the java script in the html to send the value to a string item that triggers a rule that sends the state of the item as a command to console with the executeCommandLine action!
Yes, see this.
Write the java script in the html to send the value to a string item that triggers a rule that sends the state of the item as a command to console with the executeCommandLine action!