Tested on Postgres v15
Get inside the postgres prompt, create database and restore the sql file
CREATE DATABASE IF NOT EXISTS phyinfo;
psql prompt
\i <path to sql>
or use TablePlus or another other postgres Interface to import data in the sql file - data/data.sql after creating the database
compile and upload to Arduino 33 Nano BLE
Libraries to include
ArduinoBLE
ArduinoJson
U8g2lib
Adafruit_NeoPixel
avr/power
- Central Code - arduino/central.ino
- Peripheral - arduino/peripheral.ino
Tested on Python 3.11.5
- create a virtual environment and install python dependencies
python -m venv .gptenv
source .gptenv/bin/activate
pip install -r python/requirements.txt
- export env variables
export OPENAI_GPT_KEY="<your key>"
export POSTGRES_DB="phyinfo"
- Start the gradio server ( from the python dir)
python main.py