Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Sophisticated Power On\Off button using JavaScript
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nahshon Williams  
View profile  
 More options Feb 6, 5:14 pm
From: Nahshon Williams <spc...@gmail.com>
Date: Mon, 06 Feb 2012 22:14:50 +0000
Local: Mon, Feb 6 2012 5:14 pm
Subject: Sophisticated Power On\Off button using JavaScript
Ok I now would like to try some Javascript (been avoiding her like the
plague)
Toddler steps would be great:

So:
Need a power on button that queries the unit for the current power state:

Objective:
If unit is on: change button state to "Unit ON".  Set next button press
command to: Power Off
If unit is off: change button state to "Unit OFF".  Set next button
press command to: Power On

Commands and Feedback:

Query Power state of Arcam: \x21\x01\x00\x01\xF0\x0D

Arcam On: \x21\x01\x00\x00\x01\x01\x0D
Arcam Off:\x21\x01\x00\x00\x01\x00\x0D

Regex: .*\x21\x01\x00\x00\x01(\x00)?(\x01)?\x0D.*

Power On Command: \x21\x01\x08\x02\x10\x7B\x0D
Power Off command: \x21\x01\x08\x02\x10\x7C\x0D

Where do I start?
Any thoughts welcome
Nahshon


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jarrod Bell  
View profile  
 More options Feb 10, 7:57 am
From: Jarrod Bell <jar...@guilink.com>
Date: Fri, 10 Feb 2012 23:57:28 +1100
Local: Fri, Feb 10 2012 7:57 am
Subject: Re: Sophisticated Power On\Off button using JavaScript
Try this (untested):

https://gist.github.com/1789532

Jarrod

On 7/02/12 9:14 AM, Nahshon Williams wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nahshon  
View profile  
 More options Feb 12, 6:08 am
From: Nahshon <spc...@gmail.com>
Date: Sun, 12 Feb 2012 03:08:01 -0800 (PST)
Local: Sun, Feb 12 2012 6:08 am
Subject: Re: Sophisticated Power On\Off button using JavaScript
Thank you Jarrod,
I will try this today and let you know.
This will be my temple (meant template) for building future code as it
is basic decision and action.
Nahshon

On Feb 10, 12:57 pm, Jarrod Bell <jar...@guilink.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »