Skip to content

arnavxkohli/GRAM-ES-combined

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GRAM™ codebase

This repository holds the code for GRAM™'s proof of concept waste management marketing website and web-app. More information can be found in the video below.

Website code

  • Run make to build the webite and then navigate to the dev server (preferably from an incognito tab) to view the website. You need to have GNU make installed to do this. If not:
npm install
npm run dev

Server code

  • Run python3 -m venv venv

  • Then run source venv/bin/activate on Unix based systems. .\venv\Scripts\activate if on Windows.

  • Finally, run pip install -r requirements.txt

  • Server can then be run using python3 wsgi.py. It has been configured here.

Sensor code

  • Run python3 -m venv venv
  • Then run source venv/bin/activate on Unix based systems. .\venv\Scripts\activate if on Windows.
  • Finally, run pip install -r requirements.txt
  • Code for individual sensors can be found in sensor-code/sensor.py. There are unused sensors commented in the code.
  • The bin.service file was how we set up our daemon to auto run the code
  • sensor-code/data.py contains code for communication between sensor nodes and the database.