Yes you can create a plugin to send TalkBack commands. The easiest way to do this would be to create a HTML button, add an "onclick" event handler, and then use jQuery.ajax() ( http://api.jquery.com/jQuery.ajax/ ) to send the command data to ThingSpeak ( https://thingspeak.com/docs/talkback#add_command ). Please let me know if you need further help!
Thanks for the reply. I tried the following which doesn't seem to be working:
Sorry you're right, the plugin is public, the link was just to the edit page which I couldn't access.
In your code, it may be helpful to update jQuery to a newer version. Also, your post function looks like it should be changed to:
The turnOff function should follow the same format. Also make sure to set MYAPIKEY correctly to your TalkBack API key.
I see there isn't a button example posted in the forums yet. I need help implementing a Talkback button.
This is that I have now that doesn't return anything using the "execute" API.
HTML Window between body: (arrows left out on purpose)
button onclick="myFunction()">Click me</button
Here it is. I don't know what I'm doing. As far as I'm concerned, I'd settle for the easiest means to send TalkBack commands from a weblink or button on webpage.
Here's a full example that I made: https://thingspeak.com/plugins/6664 .
Most Users Ever Online: 114
Currently Browsing this Page:
Guest Posters: 1
Administrators: Hans, lee