paul- wrote: > Or better yet, don't even use the dependency of rpi-vc. > > > Code: -------------------- > > > file = open('/sys/class/thermal/thermal_zone0/temp', 'r') > temp = file.readline() > file.close() > val = float(temp) / 1000 > -------------------- > >
Ah, that looks like a better idea indeed. Made the change and removed rpi-vc extension. All still works (on pCP 8.1.0) . Not sure if relevant but checked with a pCP 4.12 on a rpi3b+ and that sys class is there as well ofcourse, so I think all versions should benefit. ------------------------------------------------------------------------ Huey11's Profile: http://forums.slimdevices.com/member.php?userid=67632 View this thread: http://forums.slimdevices.com/showthread.php?t=112996 _______________________________________________ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix