@@ -75,22 +75,68 @@ This document describes the GPIO pin assignments for the KIDA robot.
7575``` python
7676def __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
82123sudo apt update
83124sudo apt install hostapd dnsmasq -y
125+ ```
84126
127+ ``` bash
85128sudo systemctl stop hostapd
86129sudo systemctl stop dnsmasq
130+ ```
87131
132+ ``` bash
88133sudo nano /etc/dhcpcd.conf
89-
90- sudo nano / etc/ dhcpcd.conf
91-
134+ ```
135+ ``` bash
92136sudo nano /etc/hostapd/hostapd.conf
137+ ```
93138
139+ ``` bash
94140interface=wlan0
95141driver=nl80211
96142ssid=KIDAv00
@@ -100,69 +146,44 @@ wmm_enabled=0
100146macaddr_acl=0
101147auth_algs=1
102148ignore_broadcast_ssid=0
149+ ```
103150
151+ ``` bash
104152wpa=2
105153wpa_passphrase=12345678
106154wpa_key_mgmt=WPA-PSK
107155rsn_pairwise=CCMP
108-
156+ ```
157+ ``` bash
109158sudo nano /etc/default/hostapd
159+ ```
160+
110161
111162#DAEMON_CONF=""
112163
164+ ``` bash
113165DAEMON_CONF=" /etc/hostapd/hostapd.conf"
166+ ```
114167
168+ ``` bash
115169sudo mv /etc/dnsmasq.conf /etc/dnsmasq.conf.bak
170+ ```
116171
172+ ``` bash
117173sudo nano /etc/dnsmasq.conf
174+ ```
118175
176+ ``` bash
119177interface=wlan0
120178dhcp-range=192.168.4.2,192.168.4.50,255.255.255.0,24h
179+ ```
121180
181+ ``` bash
122182sudo systemctl unmask hostapd
123183sudo systemctl enable hostapd
124184sudo 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
478499Werkzeug 3.1.3
479500wheel 0.46.1
480501zipp 3.21.0
481-
482-
483502```
484503
485504<br >
0 commit comments