parent
2eb0a05b48
commit
bf64fcf447
13
README.md
13
README.md
|
@ -90,7 +90,6 @@ pip3 install adafruit-circuitpython-neopixel
|
|||
pip3 install wifi
|
||||
```
|
||||
|
||||
|
||||
### Setup the wifi access point:
|
||||
|
||||
This is required for the tubes to connect to the master server. The tubes will connect over wifi to the master server to receive their configurations and their ArtNET.
|
||||
|
@ -122,10 +121,8 @@ This ^ gives the Raspberry Pi on the Wifi interface the IP 192.168.0.1
|
|||
|
||||
Tip: If you can't connect over ethernet to the Pi or you want to give it a static ip on the ethernet interface later, just connect to the wifi and you can acccess it via this ip on ssh and all the webinterfaces.
|
||||
|
||||
|
||||
Exit and save nano by pressing [Cntrl]+[O] then [Enter] and then [Cntrl]+[x]. Keep this in mind for later.
|
||||
|
||||
|
||||
Configure DHCP:
|
||||
|
||||
Edit the DHCP config:
|
||||
|
@ -141,11 +138,11 @@ Again, past this into nano:
|
|||
interface=wlan0
|
||||
dhcp-range=192.168.0.2,192.168.0.254,255.255.255.0,24h
|
||||
```
|
||||
|
||||
Now exit nano again. Do you remember how? If not here is how you do it ;)
|
||||
|
||||
Exit and save nano by pressing [Cntrl]+[O] then [Enter] and then [Cntrl]+[x].
|
||||
|
||||
|
||||
Now start the DHCP service:
|
||||
|
||||
```
|
||||
|
@ -159,6 +156,7 @@ Edit the config:
|
|||
```
|
||||
sudo nano /etc/hostapd/hostapd.conf
|
||||
```
|
||||
|
||||
Past this:
|
||||
|
||||
```
|
||||
|
@ -176,7 +174,6 @@ rsn_pairwise=CCMP
|
|||
|
||||
ATTENTION: for the country_code set your own and also change the wpa_passphrase to a password you remember or wrote down. This password is important for later. With this every tube can connect to the AP.
|
||||
|
||||
|
||||
Exit and save.
|
||||
|
||||
Now edit the hostapd file:
|
||||
|
@ -184,11 +181,13 @@ Now edit the hostapd file:
|
|||
```
|
||||
sudo nano /etc/default/hostapd
|
||||
```
|
||||
And past this:
|
||||
|
||||
Find the line with `#DAEMON_CONF` and replace it with this:
|
||||
|
||||
```
|
||||
DAEMON_CONF="/etc/hostapd/hostapd.conf"
|
||||
```
|
||||
|
||||
Exit and save.
|
||||
|
||||
Now enable and start all required services and restart:
|
||||
|
@ -199,6 +198,7 @@ sudo systemctl enable hostapd
|
|||
sudo systemctl start hostapd
|
||||
sudo reboot
|
||||
```
|
||||
|
||||
### Setup the MySQL database:
|
||||
|
||||
```
|
||||
|
@ -221,6 +221,7 @@ flush privileges;
|
|||
|
||||
sudo systemctl restart apache2
|
||||
```
|
||||
|
||||
<style>#mermaid-1707698043143{font-family:"trebuchet ms",verdana,arial;font-size:16px;fill:#ccc;}#mermaid-1707698043143 .error-icon{fill:#a44141;}#mermaid-1707698043143 .error-text{fill:#ddd;stroke:#ddd;}#mermaid-1707698043143 .edge-thickness-normal{stroke-width:2px;}#mermaid-1707698043143 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-1707698043143 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-1707698043143 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-1707698043143 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-1707698043143 .marker{fill:lightgrey;}#mermaid-1707698043143 .marker.cross{stroke:lightgrey;}#mermaid-1707698043143 svg{font-family:"trebuchet ms",verdana,arial;font-size:16px;}#mermaid-1707698043143 .label{font-family:"trebuchet ms",verdana,arial;color:#ccc;}#mermaid-1707698043143 .label text{fill:#ccc;}#mermaid-1707698043143 .node rect,#mermaid-1707698043143 .node circle,#mermaid-1707698043143 .node ellipse,#mermaid-1707698043143 .node polygon,#mermaid-1707698043143 .node path{fill:#1f2020;stroke:#81B1DB;stroke-width:1px;}#mermaid-1707698043143 .node .label{text-align:center;}#mermaid-1707698043143 .node.clickable{cursor:pointer;}#mermaid-1707698043143 .arrowheadPath{fill:lightgrey;}#mermaid-1707698043143 .edgePath .path{stroke:lightgrey;stroke-width:1.5px;}#mermaid-1707698043143 .flowchart-link{stroke:lightgrey;fill:none;}#mermaid-1707698043143 .edgeLabel{background-color:hsl(0,0%,34.4117647059%);text-align:center;}#mermaid-1707698043143 .edgeLabel rect{opacity:0.5;background-color:hsl(0,0%,34.4117647059%);fill:hsl(0,0%,34.4117647059%);}#mermaid-1707698043143 .cluster rect{fill:hsl(180,1.5873015873%,28.3529411765%);stroke:rgba(255,255,255,0.25);stroke-width:1px;}#mermaid-1707698043143 .cluster text{fill:#F9FFFE;}#mermaid-1707698043143 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial;font-size:12px;background:hsl(20,1.5873015873%,12.3529411765%);border:1px solid rgba(255,255,255,0.25);border-radius:2px;pointer-events:none;z-index:100;}#mermaid-1707698043143:root{--mermaid-font-family:sans-serif;}#mermaid-1707698043143:root{--mermaid-alt-font-family:sans-serif;}#mermaid-1707698043143 flowchart{fill:apa;}</style>
|
||||
|
||||
### Setup Open Lighting Archetecture as the ArtNET sACN middle man:
|
||||
|
|
Loading…
Reference in New Issue