Skip to content

Commit 3be32e5

Browse files
Update Readme
1 parent 902a32a commit 3be32e5

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

README.md

+41-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,42 @@
11
# rackpi
2-
Monitor/Reset GPU Mining Rig
2+
Monitor/Reset GPU Mining Rig via a Raspberry Pi Zero (or other iterations of RPi)
3+
4+
## Create your secrets.py
5+
Create a "secrets.py" under pimon an include app's secret key, allowed_hosts, and email settings...
6+
7+
```
8+
# SECURITY WARNING: keep the secret key used in production secret!
9+
SECRET_KEY = '<SECRET_KEY_GENERATED_BY_DJANGO>'
10+
11+
# IP addresses that will listen for requests
12+
ALLOWED_HOSTS = ['localhost','127.0.0.1']
13+
14+
# Email Settings
15+
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
16+
EMAIL_USE_TLS = True
17+
EMAIL_HOST = 'smtp.gmail.com'
18+
EMAIL_HOST_USER = 'yourgmailaddress@gmail.com'
19+
EMAIL_HOST_PASSWORD = 'silly four letr pass'
20+
EMAIL_PORT = 587
21+
```
22+
23+
## Startup
24+
Illicit the migrate manage.py to create your database.
25+
26+
Make sure you have created a superuser as well, you will use that to login to the application.
27+
28+
## GPIO Layout
29+
You will need a multi-channel DC 5V relay module. I used an 'ELEGOO 8 Channel DC 5V Relay Module with Optocoupler'
30+
31+
Below is the layout that I used in my personal application so that it can be reference in the add/edit rig modules.
32+
33+
GPIO # | Relay #
34+
------------ | -------------
35+
26 | 01
36+
19 | 02
37+
13 | 03
38+
06 | 04
39+
05 | 05
40+
21 | 06
41+
20 | 07
42+
16 | 08

0 commit comments

Comments
 (0)