added php mysql to readme and added db connection to webinterface
Signed-off-by: Ebbe Baß <ebbe.bass>main
parent
aa9f978a3a
commit
993da418d8
|
@ -83,7 +83,7 @@ For the professionals out there, most of you will already know how to pixel cont
|
|||
### Commands to install all the required packages:
|
||||
|
||||
```
|
||||
sudo apt update -y && sudo apt upgrade -y && sudo apt install python3 python3-pip git python3-flask apache2 php mariadb-server mariadb-client ola ola-python dnsmasq hostapd rfkill mosquitto mosquitto-clients python3-mysqldb netfilter-persistent -y &&
|
||||
sudo apt update -y && sudo apt upgrade -y && sudo apt install python3 python3-pip git python3-flask apache2 php mariadb-server mariadb-client ola ola-python dnsmasq hostapd rfkill mosquitto mosquitto-clients python3-mysqldb netfilter-persistent php-mysql -y &&
|
||||
pip3 install Flask &&
|
||||
pip3 install Requests &&
|
||||
pip3 install python-artnet &&
|
||||
|
|
|
@ -21,34 +21,21 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody id="tubeList">
|
||||
<?php
|
||||
$server = "localhost";
|
||||
$username = "pxm";
|
||||
$password = "pixel";
|
||||
|
||||
$conn = new mysqli($server, $username, $password)
|
||||
|
||||
if ($conn->connect_error) {
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
}
|
||||
echo "Connected successfully";
|
||||
?>
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="modal fade" id="tubeSettingsModal" tabindex="-1" role="dialog" aria-labelledby="tubeSettingsModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="tubeSettingsModalLabel">Tube Settings</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form id="tubeSettingsForm">
|
||||
<div class="form-group">
|
||||
<label for="universeInput">Universe:</label>
|
||||
<input type="number" class="form-control" id="universeInput" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="dmxAddressInput">DMX Address:</label>
|
||||
<input type="number" class="form-control" id="dmxAddressInput" required>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Save Changes</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue