00:04
Hi In this groov workshop I’m going to show you all the different button gadgets in groov.
00:10
For this demonstration, I’m going to show you how to use these different buttons to
00:14
control the volcano in the fish tank here at Opto 22. You can play with a live working
00:19
demo of the fishtank yourself by going to demo.groov.com. [on screen graphic: demo.groov.com
00:23
username, password. We can test these buttons in groov view. To modify them, just go back
00:29
to groov Build, by clicking on this gear icon up here.  Also be sure you have updated to
00:35
the latest version of groov to take advantage of all the latest gadgets and features. This
00:41
icon indicates there’s a newer version waiting for me on manage.groov.com. I’m just going
00:47
to move these existing buttons off the side, so I can show you how I made them. Notice
00:52
if I hold down the control key I can select more than one gadget at a time. This first
00:58
button lets you choose the true and false colors, and gives you an option to confirm
01:03
when you press it. This confirm helps you prevent an accidental click. I’ll hook it
01:05
to my volcano fire digital output point. I don’t want to accidentally trigger a volcano!
01:14
Next, this command button lets you choose the color of the whole button, and has a confirm
01:20
option as well. This COULD be used to turn on or off a digital output, where you’d
01:26
set the value to 0 or 1, if you  wanted 2 separate buttons for that particular function.
01:32
In most cases, you’d use this command button to send some other value to say, an Int 32
01:37
or analog output, like a particular setting for my heater, but here I’m going to tie
01:44
it to my volcano fire again. I’ll give it a better name and change the label to ‘fire
01:50
on’. And notice here, I can right-click to duplicate a gadget, which saves a little
01:55
time. I’ll just change the label to ‘fire off’, adjust the value to off, and go down
02:04
here make the color blue. This last one is called the Momentary Button, which will hold
02:11
the value while you’re pressing it. The values you’re allowed to choose will depend
02:15
on the data type you select. For my digital output here, the default is automatically
02:21
set up for true when pressed and false when released. I can also change the overall color.
02:30
Strictly speaking, the checkbox isn’t a button, however, notice it’s almost exactly
02:36
like the button gadget, minus the color options. Let’s check this out. I’ll switch to groov
02:44
View.  The live web cam Video Gadget of the fish tank shows us what’s happening in real
02:51
time.  Here my toggle button prompts me to confirm.  And, my separate on/ off command
02:59
buttons work great too. The checkbox works just like the button, and might be more clear,
03:05
especially for color-blind users. For this momentary button, notice when I’m pressing
03:11
and holding it, the value stays true. If I let go, or even if I slide off the button,
03:18
it goes back to false. So that’s pretty handy, especially if you’re trying to avoid,
03:24
say, leaving this pump on for too long, or maybe if you need to lower an anchor. There
03:29
you go.  In just a few minutes I’ve shown you how you can quickly add a variety of buttons
03:34
to your project without having to do any coding - pretty cool! For more videos, how to guides,
03:40
and demos visit groov.com. Thanks for watching!
Up next
Autoplay