added installation instructions
|
@ -7,6 +7,42 @@ A (hopefully soon) fully featured selft-hosted web interface and server-backend
|
||||||
- interface and backend planned
|
- interface and backend planned
|
||||||
- readonly dashboard is working
|
- 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
|
# API docs
|
||||||
|
|
||||||
## get locations
|
## get locations
|
||||||
|
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 9.9 KiB |
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.5 KiB |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 9.7 KiB |
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 77 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 236 KiB After Width: | Height: | Size: 236 KiB |
Before Width: | Height: | Size: 129 KiB After Width: | Height: | Size: 129 KiB |
Before Width: | Height: | Size: 178 KiB After Width: | Height: | Size: 178 KiB |
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 75 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |