I want to get the temperature of the cpu but each time it thorws a error I also used different libraries but it still it shows some error.
from gpiozero.pins.pigpio import PiGPIOFactory
factory = PiGPIOFactory(host='192.168.1.3')
cpu = CPUTemperature()
print(cpu.temperature)```
Here are the errors I am getting.
```%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Can't connect to pigpio at 192.168.1.3(8888)
Did you start the pigpio daemon? E.g. sudo pigpiod
Did you specify the correct Pi host/port in the environment
variables PIGPIO_ADDR/PIGPIO_PORT?
E.g. export PIGPIO_ADDR=soft, export PIGPIO_PORT=8888
Did you specify the correct Pi host/port in the
pigpio.pi() function? E.g. pigpio.pi('soft', 8888)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Traceback (most recent call last):
File "c:\Users\Coder praveen\Desktop\ViratKohliData analysis\cpu.py", line 3, in <module>
factory = PiGPIOFactory(host='192.168.1.3')
File "C:\Python310\lib\site-packages\gpiozero\pins\pigpio.py", line 101, in __init__
raise IOError('failed to connect to %s:%s' % (host, port))
OSError: failed to connect to 192.168.1.3:8888``