Once you've powered up your groov RIO for the  first time and logged in with your new admin  
account there are a couple of additional tasks  you'll want to take care of to get the most out  
of your device one of those is installing and  configuring the groov i o nodes and starting  
to use node-red so we'll start by going to our  node-red menu and enabling the node-red runtime  
and then i'll go ahead and use this video to  show you how to install the groov RIO nodes  
how to configure them and how  to do some of the very basics
now here we can see i've enabled the node red  runtime and we can see that the cpu usage has  
calmed down you don't want to launch it right away  since node-red won't be ready but now that we can  
see that it's just running in the background  i can go ahead and open the node red editor  
right away we can see it opens a new  tab and i have this flow workspace here  
my node palette on the left hand side and my  info and debug panes here on the right hand side  
the next thing i wanted to do is add  the groove i o nodes to this palette  
so to do that i'll come up to the main menu in  the top right here and select manage palette  
here we can see all the nodes that are already  installed including the pre-installed core nodes  
that come with node-red right out of the box to  add a new node i will need an internet connection  
and once i have that i can just come over to this  install tab and search for anything i want to add  
so here i'll just type in groov io and  we can see the node right here so to  
add it i just click install confirm the  installation and wait for it to come down  
i shouldn't take on any extra tasks while it's  doing this since it's busy in the background but  
i can keep up with its progress by just selecting  view log right here and we'll see that it's coming  
down now we might see some warnings here pop up as  the node is installing but many of these are just  
precautionary and as long as the node comes down  they're not a problem so we'll just sit wait for  
the process to complete and we'll be able to use  our nodes without any problems so there we go we  
can see that the packages have been added and we  have a return code of zero meaning there were no  
errors we can also see this green pop-up saying  all the nodes that are added to our palette and  
if we close the node palette manager we can just  scroll down right here on the node palette and see  
that all the nodes were in fact successfully  added without needing to restart node red  
so let's drag one in starting at the top and begin  to configure it you can see as soon as you drag  
one in there's this red triangle at the top there  that means that there is no configuration yet so  
we'll go ahead and double click it and we can  see that we need to add a new groov i o device  
so i'll just select this pencil icon here and  we can see that we are brought to the default  
of localhost since node-red is running on the  rio that i want to read and write from right now  
i can't leave that as localhost but i could  communicate with other groov io devices as well  
now i just need to put in my api key this  application programming interface key essentially  
gives node-red permission to access the i o even  though they're running on the same device it's  
still a secure application and our io is actually  secure so we need to go ahead and put this api  
key in to find that i'll just go back to groov  manage go to the home screen and select accounts  
i could add an extra account here for node-red  specifically that way i could manage things  
separately but i'll just go ahead and use the  system-wide administrator key so now i just come  
down here highlight the entire api key and copy  it to my clipboard if this key ever does become  
insecure or leaked or anything like that i can go  ahead and generate a new key and any application  
that's using this will need to have that key  put in again so this is a good security option  
but keep in mind where you put the key before  you generate a new one since it will need to  
be replaced so now that i have that key copied  to my clipboard i'll just go back to node-red  
paste that into my api key and click add now we  can see i have my localhost device configured and  
i just need to figure out the data type module  index and channel index now if you know exactly  
what you want to read in you can probably end the  video here but i'm going to go ahead and check  
what options i have available and we'll see how  to configure this so i'll go back to groov manage  
leave the account selection screen and go into i  o channels here we can see i already have some i  
o channels configured and i'm going to go ahead  and select this top button digital input you can  
see that it's on channel 0 and we are on module  0 since it's a groov rio with only one module  
so this button is going to be what i want  to read in so i'll go back to node red i'll  
leave it as digital state change since  i'm reading in a digital button press  
i'll put in the module 0 the channel number of  zero and i'll give this a name like read button  
so now i can just click done and we'll see that  red triangle disappeared we just have the blue  
circle meaning we haven't deployed yet now i want  to be able to see this output so i'll go ahead and  
push and hold left ctrl left click on my workspace  and that'll show this quick add menu where i can  
just drop in a debug node and wire that in right  away now i just click deploy and we'll see right  
away in our debug we have a notification that the  button is off if i go ahead and press the button  
we'll get the value true and if i disable it again  we get the value false so it's working right away  
now there are more options besides just this input  node that scans the value and lets us know when it  
is updated i can also read the value whenever i  want and you'll notice as soon as i drag this in  
i again do get that red triangle but if i double  click this node and drop down the device groov io  
device we can see that the local host is saved  this configuration will work between all groov  
i o nodes i bring in we only have to do the api  key that one time if you want to see where that  
configuration is saved or make any changes to  it go ahead and come up to the top right menu  
and select configuration nodes you can see here  is my groov RIO device it is used on two nodes  
denoted by the number two there and if i select  it we can go ahead and see all of the nodes that  
are using it if i want to make any changes to it  i just double click it and we'll see this is the  
standard pop-up here where i could replace the  api key or make any other changes i need to do  
so i'll just go ahead and close  this and we'll see how to use this  
groov io read node this one rather than regularly  scanning the output requires input in order to  
read what value we're looking for so i'll go  back to my i o channels and we'll read in this  
analog input on channel 3. we can see this  is a temperature reading and that's what i  
want to pull in but only when i specifically  inject into the flow that i want to read it  
so i'll go back to node-red select my  digital channel and i'll change that  
to analog channel since i want to read in that  analog temperature value i'll put in my module  
number of zero my channel number of three and  we'll make this something like read temperature
so now when i click done we'll also have to add  an input node on this so this time i'll scroll  
up to the top drag in an injector node wire that  in drag in a debug node and wire that in as well  
so now when i click deploy and switch back to my  debug pane i'll just clear that up so i can see  
this clearly we'll see that i'm not seeing the  temperature at all but when i inject there we  
go that's the current temperature and now that  it's in node red i can use it however i want  
now as well as reading data in and  just showing it in the debug pane  
or moving around between different nodes  i can also write to different outputs so  
i'll also bring in a groove io write node and  let's select a channel that we can write to  
now we'll just go back and we'll use this blue  ring led digital output on channel 4 in order  
to demonstrate this writing so i'll drag that  off to the side we'll double click my groov i  
o write node and we'll select our localhost  configuration and we do want to leave it as  
the digital output channel state since that's what  we want to write at this point i'll go ahead and  
put in my module index of 0 my channel index of  4 and we'll make this something like toggle light  
so now that that's all filled in i'll just click  done and we'll need to inject something here as  
well so i'll make a copy of this inject node and  of this debug node but this time we don't want  
to inject something random like a timestamp  we want to inject the value we want to write  
in this case we can just go ahead and click done  select the groov write node we can come over  
to the info tab and here we can see the values  that it's expecting here we can see to turn on  
the channel we need to send either true or on and  to turn it off we need to send false or off so oh  
that's exactly what i'll do i'll make a copy of  this node here and we'll switch that from instead  
of sending the timestamp we'll switch it to the  boolean value true and we'll switch the other one  
to the boolean value of false so we'll just use  this drop down here select false and wire these in  
so now our toggle light will be controlled by  these true and false injector nodes and we'll  
be able to confirm it with this message payload  output here in this debug node so now i can  
go ahead and click deploy and when i bring in my  value here we can see that it's turned off right  
now we'll toggle it true and we can see that  the state has turned to true and we'll toggle  
up false and we can see our state has changed to  false so now i can bring in any other groov i o  
nodes use that same configuration i don't have  to put my api key in again and i'm easily able  
to read and write different i o points on the  groov RIO from node red right out of the box