Processing Raw Data for Visualization with a Database - Samuel-Buteau/universal-battery-database GitHub Wiki

This is a setup procedure to make sure that you have a working database and repository of files provides the data. This tutorial shows the process of taking raw Neware data to visualization.

Prerequisite:

  • Have postgreSQL installed and set up with a valid username and password.

1. Put your data in a single folder.

You can use subfolders, cloud synchronization, and any other tools to organize your data.

2. Run reload.bat.

>reload.bat uni-database owner-name "C:\path\to\data\folder"

Enter the password for the database when prompted. It is crucial that the correct user and database is in config.ini.

See the Wiki entry for reload.bat for more information.

3. Start a server.

To start a server:

>python manage.py runserver 0.0.0.0:8000

To view the webpage with your web browser, visit localhost:8000.

4. Add a process for background tasks.

To process background tasks:

>python manage.py process_tasks

You should now have two cmd windows running as you work in the localhost:8000 browser.