Changes

Jump to navigation Jump to search
Line 42: Line 42:     
An SQL database stores the snack credits. They are differentiated into two segments: free credits and earned credits. Free credits are used before earned credits, as free credits do not roll over. This is abstracted to the user with a single credit number. When a user invokes any command for the first time, they are added to the database with the free snacks.  
 
An SQL database stores the snack credits. They are differentiated into two segments: free credits and earned credits. Free credits are used before earned credits, as free credits do not roll over. This is abstracted to the user with a single credit number. When a user invokes any command for the first time, they are added to the database with the free snacks.  
 +
 +
Because of confusion with the package manager, there are two virtual environments. Venv was used on my mac for testing, snackbotvenv is used on the Raspberry Pi. The latter is excluded from github. 
 +
 +
Snack-bot is located in the home directory of the Pi. Do not move, as the directory is hard coded in the startup execution. 
    
The Raspberry Pi is set up to run the script upon booting, so it is resilient against power outages.
 
The Raspberry Pi is set up to run the script upon booting, so it is resilient against power outages.
    
The password to SSH into the raspberry pi is stored in Dashlane.
 
The password to SSH into the raspberry pi is stored in Dashlane.
22

edits

Navigation menu