eculocate

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

README.md (995B)


      1 # Client
      2 
      3 ## Wifi configuration
      4 
      5 To choose a wifi network and send the password, run
      6 
      7 ```sh
      8 $ PASSWORD="my wifi passphrase" python client/ble.py my_network_name
      9 ```
     10 
     11 The device will reboot once the wifi details have been saved
     12 
     13 
     14 ## Data logging
     15 
     16 Once the wifi is operational, you can run
     17 
     18 ```sh
     19 $ python client/eculocate.py Bike 120
     20 ```
     21 
     22 to collect data for 120 seconds.
     23 
     24 ## Android
     25 
     26 If you want to log data while actually, y'know, *riding the bike*, you
     27 might wish to do that without balancing a laptop on the pillion.
     28 There isn't an actual proper Android app (yet, anyway) but we do have
     29 a Python script that runs in Termux.
     30 
     31 ### Setup
     32 
     33 * You will need to (manually, because this is Android) install Termux
     34 and Termux:Gui from the F-Droid repository,
     35 
     36 * You also need to copy `privkey.bin` from wherever you built the Rust app onto the phone
     37 
     38 * in a Termux shell, run
     39 
     40 ```sh
     41 
     42 $ termux-setup-storage
     43 $ pkg install binutils make libsodium
     44 $ SODIUM_INSTALL=system pip install pynacl zeroconf
     45 ```