Skip to content

A simple demo of the SK8 Python code running in a Pyscript application

License

Notifications You must be signed in to change notification settings

idi-group/sk8-pyscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sk8-pyscript

A simple demo of the SK8 Python code running in a Pyscript application.

Decsription

This repo contains a Pyscript application which uses the WebBluetooth API to connect to an SK8 BLE sensor device. It currently supports connection/disconnection and streaming data from the IMU(s) connected to the SK8. As a simple visualization in the browser it will currently display a line graph of the values of the 3 accelerometer axes as seen in the screenshot below (red/green/blue = x/y/z).

Running the demo

On all platforms, Chrome is the browser which has best support for WebBluetooth.

On a desktop

To run locally:

git clone https://github.com/idi-group/sk8-pyscript.git
cd sk8-pyscript
python -m http.server

Then open a browser at http://localhost:8000

You can also try the copy hosted on pyscript.com version by browsing to https://andrewramsay.pyscriptapps.com/sk8-pyscript/latest/

On an Android phone

Using Chrome, browse to https://andrewramsay.pyscriptapps.com/sk8-pyscript/latest/

(note that iOS does not support WebBluetooth, although there are some third-party efforts to fix this)

About

A simple demo of the SK8 Python code running in a Pyscript application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published