Files
Eric Tuvesson 53f0d6320e Initial commit
Co-Authored-By: kotte <14197736+mrtamagotchi@users.noreply.github.com>
Co-Authored-By: mikaeltellhed <2311083+mikaeltellhed@users.noreply.github.com>
Co-Authored-By: Tore Knudsen <18231882+torekndsn@users.noreply.github.com>
Co-Authored-By: Michael Cartner <32543275+michaelcartner@users.noreply.github.com>
2023-09-05 12:08:55 +02:00

2.4 KiB

title, hide_title
title hide_title
Shake Detector true

Shake Detector

This is an example of how to use the Script node to implement a "Shake detector".

Inputs

Data Description
Timeout The minimum time between two shakes
Threshold How much the phone has to be moved until a shake is detected
Signal Description
Request Permission Some systems, mainly iOS, requires the user to give the web app permission to use the sensors. This signal will open a popup that allows the users to grant permission.

Outputs

Data Description
Needs Permission True if permission is required for accessing the device sensors. Usually true on iOS, and false on other systems. Will also be false on iOS after permission has been granted
Signal Description
Shake Detected A shake has been detected!