nyu-mlab / iot-inspector-client

IoT Inspector: capturing and analyzing your smart home network traffic
https://inspector.engineering.nyu.edu/
MIT License
416 stars 64 forks source link

sqlite db files need to be located where both UI and Driver can find #162

Closed crazyideas21 closed 1 year ago

crazyideas21 commented 1 year ago

Right now the sqlite db files are located in relative directories in the source code, but in deployment these relative directory structure will not exist. The db files should be referenced with absolute directories, as least for the initial macOS build.

crazyideas21 commented 1 year ago

Committed a fix that would work for macOS for now.

crazyideas21 commented 1 year ago

cc: @cdnicoll The sqlite db files are located at /Applications/inspector/ for now. Assumes macOS build. See the diff

cdnicoll commented 1 year ago

@crazyideas21 Im getting errors around this. Looking in your repo I don't see the /Applications directory

crazyideas21 commented 1 year ago

I've updated the README (https://github.com/nyu-mlab/iot-inspector-client/commit/0d138022d510392b05d000cfad51a80d658931a4) with new instructions. The main gist is that all the database files are located in /Applications/inspector now. Make sure to run Inspector and yarn dev with sudo. Let me know if this works, @cdnicoll

crazyideas21 commented 1 year ago

Just to add, the main Inspector Python driver creates and references db files in /Applications/inspector. Same as the generate_mock_data.py script.

I've updated the prisma schema files to reference the new directory as well. See commit.

crazyideas21 commented 1 year ago

@cdnicoll Are you able to get this resolved?