I can get the temperatue of Raspberry pi using the python command:
os.popen("vcgencmd measure_temp").readline()
But when I am running this command inside a lambda function (python 2.7) on deployed greengrass on the device, it gives me error:
VCHI initialization failed
I believe this is because lambda function is running in a container is not cognizant about the raspberry pi it is running on.
How can I get the temperature of raspberry pi from lambda function running on greengrass?