added installation instructions
36
README.md
Normal file → Executable file
|
@ -7,6 +7,42 @@ A (hopefully soon) fully featured selft-hosted web interface and server-backend
|
|||
- interface and backend planned
|
||||
- readonly dashboard is working
|
||||
|
||||
# Installation
|
||||
1. Install the required packages
|
||||
```
|
||||
sudo apt install git apache2 mysql-server mysql-client php libapache2-mod-php php-mysql php-cli php-common -y
|
||||
```
|
||||
2. Prepare the working directory and download SafeMail
|
||||
```
|
||||
cd /var/www/html/
|
||||
|
||||
git clone https://git.itsblue.de/dorian/blueweather.git
|
||||
```
|
||||
3. Create the database
|
||||
```
|
||||
sudo mysql -u root
|
||||
|
||||
CREATE DATABASE blueweather;
|
||||
```
|
||||
4. now create the database user, if you change the username, password or database name, don't forget to change that data in the config.php file!
|
||||
|
||||
```
|
||||
GRANT ALL ON blueweather.* TO 'blueweather'@'localhost' IDENTIFIED BY 'root';
|
||||
|
||||
FLUSH PRIVILEGES;
|
||||
|
||||
exit;
|
||||
```
|
||||
```
|
||||
5. Prepare database for usage (create Tables and Keys)
|
||||
```
|
||||
cd /var/www/html/blueweather/api
|
||||
|
||||
sudo mysql -u root blueweather < blueweather.sql
|
||||
```
|
||||
Your BlueWeather instance can now be reached under: <your_ip>/blueweather
|
||||
|
||||
|
||||
# API docs
|
||||
|
||||
## get locations
|
||||
|
|
0
api/.gitignore
vendored
Normal file → Executable file
0
api/blueweather.php
Normal file → Executable file
84513
api/blueweather.sql
Executable file
0
api/example.config.php
Normal file → Executable file
0
api/json.php
Normal file → Executable file
0
blueweather.code-workspace
Normal file → Executable file
0
css/bootstrap.min.css
vendored
Normal file → Executable file
0
css/bootstrapDark.min.css
vendored
Normal file → Executable file
0
css/dashboard.css
Normal file → Executable file
0
css/index.css
Normal file → Executable file
0
css/offcanvas.css
Normal file → Executable file
0
css/signin.css
Normal file → Executable file
0
dashboard.html
Normal file → Executable file
0
img/favicon.ico
Normal file → Executable file
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
0
img/icon.png
Normal file → Executable file
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
0
img/icon.xcf
Normal file → Executable file
0
img/icon.xcf.old
Normal file → Executable file
0
img/icons/1.png
Normal file → Executable file
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
0
img/icons/10.png
Normal file → Executable file
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
0
img/icons/11.png
Normal file → Executable file
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 9.9 KiB |
0
img/icons/12.png
Normal file → Executable file
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.5 KiB |
0
img/icons/13.png
Normal file → Executable file
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
0
img/icons/14.png
Normal file → Executable file
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
0
img/icons/15.png
Normal file → Executable file
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
0
img/icons/16.png
Normal file → Executable file
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
0
img/icons/17.png
Normal file → Executable file
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
0
img/icons/18.png
Normal file → Executable file
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 9.7 KiB |
0
img/icons/19.png
Normal file → Executable file
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 77 KiB |
0
img/icons/2.png
Normal file → Executable file
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
0
img/icons/3.png
Normal file → Executable file
Before Width: | Height: | Size: 236 KiB After Width: | Height: | Size: 236 KiB |
0
img/icons/4.png
Normal file → Executable file
Before Width: | Height: | Size: 129 KiB After Width: | Height: | Size: 129 KiB |
0
img/icons/5.png
Normal file → Executable file
Before Width: | Height: | Size: 178 KiB After Width: | Height: | Size: 178 KiB |
0
img/icons/6.png
Normal file → Executable file
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 75 KiB |
0
img/icons/7.png
Normal file → Executable file
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
0
img/icons/8.png
Normal file → Executable file
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
0
img/icons/9.png
Normal file → Executable file
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |