How To
Home > Learn > YKHaT - How to get temperatue and humidity level values in a computer (PC)
YKHaT How to get temperature and humidity level values in a computer (PC)
1
What you need
2
Set it up
3
Get the readings
WHAT YOU NEED

You will need to get hold of some hardware pieces and download a small software. The hardware:

For the software you will need to download the ykam24cmd software which provides the commands to interact with YKAMELEAN24 boards and the devices connected to it. This software can be downloaded from the product page or from the GitHub repository.

SET IT UP

Let's take care of the software first. Download ykam24cmd from YKAMELEAN24 product page or the GitHub repository. If you intend to use a PC with Windows operating system consider the executable file available for download at the YKAMELEAN24 product page.

If using a PC with Linux run the build.sh and install.sh bash scripts on a terminal. Check the software documentation or the README file in the source code package for additional details on building and installing. Once this has been taken care you can start setting up the hardware. Connect the following:

And you are done setting things up. Now the fun part.

GET THE READINGS

Open a terminal in Linux, or the command line (cmd) in Windows, type the following command and press Enter.

Windows:
> ykam24cmd.exe ykhat -tc 0
Linux:
$ ykam24cmd ykhat -tc 0

This command will print the temperature in Celsius degrees.

If you want it in Fahrenheit use the following command.

Windows:
> ykam24cmd.exe ykhat -tf 0
Linux:
$ ykam24cmd ykhat -tf 0

For humidity level use the following command.

Windows:
> ykam24cmd.exe ykhat -h 0
Linux:
$ ykam24cmd ykhat -h 0
This site uses cookies to enhance your experience. By continuing to browse the site you accept their use. To find out more read our cookies policy.
Not logged @YEPKIT
Need an account? Register here!
Forgot Password? Recover here!
€ Euro
$ US Dollar
£ British Pound
$ Australian Dollar
$ Canadian Dollar