Sun 2018.08.05
Hello @Terrence7
Does this excellent video tutorial provide the insight you seek?
Door Controlled Light with Puck.js http://www.espruino.com/Puck.js+Door+Light
See 'Tutorials' (sixth heading down page) listed on Puck page documentation http://www.espruino.com/Puck.js
other forum posts that might provide some insight
Just search 'magnetometer' forum page upper right
How can I get the rotation change by Magnet xyz value ?
Using a 3-Axis Magnetometer as a compass
Is the Magnetometer a MAX3110 or a MAG3110?
Datasheet MAG3110
EDIT
Is it possible with the graphical designer?
Puck.js Bluetooth with the Graphical Editor
Where I am having trouble is the BLE part of the equation
About Bluetooth LE (BLE)
@Robin started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Sun 2018.08.05
Hello @Terrence7
Does this excellent video tutorial provide the insight you seek?
Door Controlled Light with Puck.js
http://www.espruino.com/Puck.js+Door+Light
See 'Tutorials' (sixth heading down page) listed on Puck page documentation
http://www.espruino.com/Puck.js
other forum posts that might provide some insight
How can I get the rotation change by Magnet xyz value ?
Using a 3-Axis Magnetometer as a compass
Is the Magnetometer a MAX3110 or a MAG3110?
Datasheet MAG3110
EDIT
Puck.js Bluetooth with the Graphical Editor
About Bluetooth LE (BLE)