Difference between revisions of "Yocto Light"

From csn
Jump to navigation Jump to search
Line 18: Line 18:
 
  sudo apt-get update
 
  sudo apt-get update
 
  sudo apt-get install yoctolib-cmdlines
 
  sudo apt-get install yoctolib-cmdlines
 +
 +
Test
 +
 +
You can now test the module with:
 +
 +
sudo YLightSensor any get_currentValue

Revision as of 00:52, 18 May 2023

Install the GPG key of our server with the following command:

wget -q -O - https://www.yoctopuce.com/apt/KEY.gpg | gpg --dearmor  | sudo tee -a /usr/share/keyrings/yoctopuce.gpg > /dev/null

Add the repo:

echo "deb [signed-by=/usr/share/keyrings/yoctopuce.gpg] https://www.yoctopuce.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/yoctopuce.list

Install the VirtualHub

Thanks to this repository, it is possible to install the VirtualHub more easily. Indeed you just need execute the following commands:

sudo apt-get update
sudo apt-get install virtualhub

Install the command line library

sudo apt-get update
sudo apt-get install yoctolib-cmdlines

Test

You can now test the module with:

sudo YLightSensor any get_currentValue