Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing mac's sensor data

Tags:

c++

python

macos

Is there a way to get ambient light sensors data on mac using Python and/or C++? Googled it but didn't find much information.Most of the info there is related to Objective-C

like image 672
tez Avatar asked Mar 27 '26 19:03

tez


1 Answers

this looks to be non-trivial ... you will probably need to use C/C++ to make a swig component

Here is a project that reads the sudden movement sensor data .... take a look at it

http://code.google.com/p/pyapplesms/source/browse/trunk/applesms.c

like image 113
Joran Beasley Avatar answered Mar 30 '26 10:03

Joran Beasley



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!