added installation instructions

This commit is contained in:
dorian 2019-07-27 13:41:48 +02:00
parent 83c80486ec
commit f94a2d0585
46 changed files with 84549 additions and 0 deletions

36
README.md Normal file → Executable file
View 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
View file

0
api/blueweather.php Normal file → Executable file
View file

84513
api/blueweather.sql Executable file

File diff suppressed because it is too large Load diff

0
api/example.config.php Normal file → Executable file
View file

0
api/json.php Normal file → Executable file
View file

0
blueweather.code-workspace Normal file → Executable file
View file

0
css/bootstrap.min.css vendored Normal file → Executable file
View file

0
css/bootstrapDark.min.css vendored Normal file → Executable file
View file

0
css/dashboard.css Normal file → Executable file
View file

0
css/index.css Normal file → Executable file
View file

0
css/offcanvas.css Normal file → Executable file
View file

0
css/signin.css Normal file → Executable file
View file

0
dashboard.html Normal file → Executable file
View file

0
img/favicon.ico Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

0
img/icon.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

0
img/icon.xcf Normal file → Executable file
View file

0
img/icon.xcf.old Normal file → Executable file
View file

0
img/icons/1.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

0
img/icons/10.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

0
img/icons/11.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

0
img/icons/12.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

0
img/icons/13.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

0
img/icons/14.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

0
img/icons/15.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

0
img/icons/16.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

0
img/icons/17.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

0
img/icons/18.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 9.7 KiB

After

Width:  |  Height:  |  Size: 9.7 KiB

0
img/icons/19.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 77 KiB

0
img/icons/2.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

0
img/icons/3.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 236 KiB

After

Width:  |  Height:  |  Size: 236 KiB

0
img/icons/4.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 129 KiB

After

Width:  |  Height:  |  Size: 129 KiB

0
img/icons/5.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 178 KiB

After

Width:  |  Height:  |  Size: 178 KiB

0
img/icons/6.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 75 KiB

0
img/icons/7.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

0
img/icons/8.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

0
img/icons/9.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

0
index.html Normal file → Executable file
View file

0
js/Chart.min.js vendored Normal file → Executable file
View file

0
js/blueweather.js Normal file → Executable file
View file

0
js/dashboard.js Normal file → Executable file
View file

0
js/feather.js Normal file → Executable file
View file

0
js/index.js Normal file → Executable file
View file

0
js/jquery.min.js vendored Normal file → Executable file
View file

0
login.html Normal file → Executable file
View file

0
loginmodal.html Normal file → Executable file
View file