ScratchX extension for WebAPI and Web Sensor API
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
script.js

README.md

scratchx-websensor

Usage

Extension script URL is http://pastak.github.io/scratchx-websensor/script.js

Here is link for ScratchX with this extension.

Caution

Some blocks only run on Firefox with MacOSX or Android.

Google Chrome and Firefox for other OS don't support these API.

Blocks

Light sensor (Int) Only Firefox

This block return value get with front camera.( unit is lux )

Battery Level (Int) Only Firefox

This block return battery level with percentage.

Acceleration (Float)

This block return acceleration includes the effect of gravity.

Geolocation (Float)

This block return geolocation of place which in you are.