Hi - assuming you have actual hardware, you should be able to test it fine locally...
So obviously the easy one is to just use GitHub pages, but if you can't do that you'll need to set up an HTTP server on your computer. Depends on your Operating System how hard that is, but usually it's pretty straightforward. Once hosted locally, go to http://localhost and you should be fine.
Web Bluetooth isn't allowed by the we browser for HTTP pages (as opposed to HTTPS), but they make an exception for locally hosted pages to make it easier to develop.
However...
allow files to be downloaded in a similar way to gpsrec
Are you looking at downloading GPS track data in particular? Because I've been working on a replacement for gpsrec (and the functionality in BangleRun) called recorder. The idea is this'll be able to handle logging GPS/HRM/Steps and custom data and export for any apps that need it - without having too much duplication
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.
Hi - assuming you have actual hardware, you should be able to test it fine locally...
So obviously the easy one is to just use GitHub pages, but if you can't do that you'll need to set up an HTTP server on your computer. Depends on your Operating System how hard that is, but usually it's pretty straightforward. Once hosted locally, go to
http://localhost
and you should be fine.Web Bluetooth isn't allowed by the we browser for HTTP pages (as opposed to HTTPS), but they make an exception for locally hosted pages to make it easier to develop.
However...
Are you looking at downloading GPS track data in particular? Because I've been working on a replacement for
gpsrec
(and the functionality in BangleRun) calledrecorder
. The idea is this'll be able to handle logging GPS/HRM/Steps and custom data and export for any apps that need it - without having too much duplication