Skip to content

Commit e0691f1

Browse files
...
1 parent a1f30e3 commit e0691f1

1 file changed

Lines changed: 64 additions & 45 deletions

File tree

README.md

Lines changed: 64 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -75,22 +75,68 @@ This document describes the GPIO pin assignments for the KIDA robot.
7575
```python
7676
def __init__(self, left_pins=(24, 23), right_pins=(5, 6)):
7777

78+
## How to Run:
79+
80+
```bash
81+
python3 -m venv venv
82+
source venv/bin/activate
83+
pip install -r requirements.txt
84+
```
85+
86+
### Install Requirements
87+
88+
Using Python directly:
89+
90+
```bash
91+
pip install -r requirements.txt
92+
```
93+
Or run:
94+
- `install_requirements.bat`
95+
96+
<br>
97+
98+
### Run main.py
99+
100+
Using Python directly:
101+
102+
```bash
103+
source venv/bin/activate
104+
python main.py
105+
```
106+
107+
Using provided scripts:
108+
109+
Windows:
110+
- `.\run.bat`
111+
or
112+
- `.\run.ps1`
113+
114+
Unix-like systems (Linux/macOS):
115+
- `.\run.sh`
116+
<br>
117+
78118
📡 SSID: KIDAv00
79119
🔒 Password: 12345678
80120
🌐 Access your site at: http://192.168.4.1:5000
81121

122+
```bash
82123
sudo apt update
83124
sudo apt install hostapd dnsmasq -y
125+
```
84126

127+
```bash
85128
sudo systemctl stop hostapd
86129
sudo systemctl stop dnsmasq
130+
```
87131

132+
```bash
88133
sudo nano /etc/dhcpcd.conf
89-
90-
sudo nano /etc/dhcpcd.conf
91-
134+
```
135+
```bash
92136
sudo nano /etc/hostapd/hostapd.conf
137+
```
93138

139+
```bash
94140
interface=wlan0
95141
driver=nl80211
96142
ssid=KIDAv00
@@ -100,69 +146,44 @@ wmm_enabled=0
100146
macaddr_acl=0
101147
auth_algs=1
102148
ignore_broadcast_ssid=0
149+
```
103150

151+
```bash
104152
wpa=2
105153
wpa_passphrase=12345678
106154
wpa_key_mgmt=WPA-PSK
107155
rsn_pairwise=CCMP
108-
156+
```
157+
```bash
109158
sudo nano /etc/default/hostapd
159+
```
160+
110161

111162
#DAEMON_CONF=""
112163

164+
```bash
113165
DAEMON_CONF="/etc/hostapd/hostapd.conf"
166+
```
114167

168+
```bash
115169
sudo mv /etc/dnsmasq.conf /etc/dnsmasq.conf.bak
170+
```
116171

172+
```bash
117173
sudo nano /etc/dnsmasq.conf
174+
```
118175

176+
```bash
119177
interface=wlan0
120178
dhcp-range=192.168.4.2,192.168.4.50,255.255.255.0,24h
179+
```
121180

181+
```bash
122182
sudo systemctl unmask hostapd
123183
sudo systemctl enable hostapd
124184
sudo systemctl enable dnsmasq
125-
126-
127-
## How to Run:
128-
129-
```bash
130-
python3 -m venv venv
131-
source venv/bin/activate
132-
```
133-
134-
### Install Requirements
135-
136-
Using Python directly:
137-
138-
```bash
139-
pip install -r requirements.txt
140-
```
141-
Or run:
142-
- `install_requirements.bat`
143-
144-
145-
<br>
146-
147-
### Run main.py
148-
149-
Using Python directly:
150-
151-
```bash
152-
python main.py
153185
```
154186

155-
Using provided scripts:
156-
157-
Windows:
158-
- `.\run.bat`
159-
or
160-
- `.\run.ps1`
161-
162-
Unix-like systems (Linux/macOS):
163-
- `.\run.sh`
164-
<br>
165-
166187
## Requirements:
167188

168189
```bash
@@ -478,8 +499,6 @@ webencodings 0.5.1
478499
Werkzeug 3.1.3
479500
wheel 0.46.1
480501
zipp 3.21.0
481-
482-
483502
```
484503

485504
<br>

0 commit comments

Comments
 (0)