#Javascript Workout
Interactive presentation built with electron & nodejs. (Using electron 2.0.5 on node 8.5.0)
CXXFLAGS="-mmacosx-version-min=10.9" LDFLAGS="-mmacosx-version-min=10.9" yarn
npm run develop
Presentation:
npm run presentation
Server (optional):
npm run server
People can surf to http://REPLACE_WITH_YOUR_IP:5000 and follow the slides on their screen.
##spark core (heartrate)
To link a spark-core to your local cloud, do the following after installing the particle-cli:
- Identify the spark core: press mode until blue > run particle identify
- Put the spark core into DFU by pressing mode + reset, release reset while holding mode for about 3 seconds (until led flashes yellow)
- Handle the server key: particle keys server default_key.pub.pem 192.168.2.1
- cd into core_keys
- Place core into DFU
- particle keys save INPUT_CORE_ID_HERE
- reset the core
You will need to flash the firmware (spark/pulsesensor-udp) to the spark-core:
particle compile core src/spark-pulse-udp --saveTo dist/spark-pulse-udp.bin
particle flash --usb dist/spark-pulse-udp.bin