If on Windows, you will needs a specific version of the Windows SDK:
- Install Windows SDK 10.0.18362.1 (Must have
Irprops.lib
meaning pre-19023)
This project requires Python to run.
Steps:
- Install Python
- Install virtualenv
- If on Windows, install
virtualenvwrapper-win
withpython -m pip install virtualenvwrapper-win
- If on Linux / OSX install
virtualenv
withpython -m pip install virtualenv
- If on Windows, install
- Create virtual env
mkvirtualenv env
- Activate virtual env
workon env
- Run
python -m pip install -r requirements.txt
If there are issues, try following installation instructions for the problematic packages. e.g. PyBluez
This project was set up to use free InfluxDB Cloud 2.0, but could be adapted to work with other versions.
- Sign up for an InfluxDB account
- Enter the organisation name in
Settings.InfluxDB.org
in settings.py- This can also be found under your email when pressing the profile button on the sidebar.
- Under the Data tab on the sidebar, select Buckets and
+ Create Bucket
- Select the bucket settings to meet your needs
- Enter the name of the bucket into
Settings.InfluxDB.bucket
in settings.py - Now select Tokens and press
+ Generate
- Name the token
- Select only the bucket you just created under Write and then press Save
- Press the newly created token
- Copy to Clipboard and paste into
Settings.InfluxDB.token
in settings.py - Change the region/start of
Settings.InfluxDB.url
in settings.py to match the URL in your web browser
If running for the first time on Windows, you will need to allow the Bitalino bluetooth connection by clicking the Set up device
notification.
- Activate virtual env
workon env
- Ensure the InfluxDB details are set up correctly in
settings.py
- Ensure the desired sensors are plugged into the ports defined in
settings.py
- Run main script
python main.py
- Input your unique data tokens from the Health Monitoring dashboard. Data will not be logged for sensors you do not enter a token for.
- Data will then start being logged.