MeteOnline : Construire Configurer un serveur Météo ...

Script Wview

 

install_wview_1.sh

 

!/bin/bash

if ! grep -Fxq "deb http://www.wviewweather.com/apt/wheezy wheezy main" /etc/apt/sources.list; then
     echo "deb http://www.wviewweather.com/apt/wheezy wheezy main" >> /etc/apt/sources.list
     echo "deb-src http://www.wviewweather.com/apt/wheezy wheezy main" >> /etc/apt/sources.list
     echo "deb http://archive.raspbian.org/raspbian wheezy main contrib non-free" >> /etc/apt/sources.list
     echo "deb-src http://archive.raspbian.org/raspbian wheezy main contrib non-free" >> /etc/apt/sources.list
     echo "deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi" >> /etc/apt/sources.list
     echo "deb-src http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi" >> /etc/apt/sources.list
     echo "deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi" >> /etc/apt/sources.list
     echo "deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi" >> /etc/apt/sources.list
fi

apt-get update
apt-get upgrade
apt-get install apache2
apt-get install php5 php5-sqlite libapache2-mod-php5

wget http://meteonline.djetdail.net/fichiers/install_wview_2.sh
chmod +x install_wview_2.sh

echo "---------------------------------------------------"
echo ""
echo ""
echo ""
echo "Saisir sudo reboot pour relancer votre Raspberry"
echo ""
echo ""
echo ""
echo "---------------------------------------------------"


install_wview_2.sh

 

#!/bin/bash
echo ""
echo "--------------------------------------------------------------"
echo ""
echo ""
echo ""
echo "Ce srcipt installe Wview Weathet"
echo ""
echo ""
echo "Repondre Yes aux questions."
echo ""
echo ""
echo ""
echo "--------------------------------------------------------------"
echo ""
echo ""
apt-get install wview

cd  /var/www/
mv w*  /var/www/html/

adduser www-data sudo

echo "Cmnd_Alias WVIEW = /etc/init.d/wview" >> /etc/sudoers
echo "www-data ALL= NOPASSWD: WVIEW" >> /etc/sudoers
echo ""
echo ""
echo ""
echo ""
echo "Vous pouvez acceder aux pages de configuration par cette adresse   ip_du_raspberry/wviewmgmt/login.php"
echo ""
echo "Le mot de passe pae defaut est : wview"
echo ""
echo "Bonne meteo"
echo ""
echo ""
echo "---------------------------------------------------------------------------------------------------------"



Dépots nécessaires :

deb http://archive.raspbian.org/raspbian wheezy main contrib non-free
deb-src http://archive.raspbian.org/raspbian wheezy main contrib non-free
wget https://archive.raspbian.org/raspbian.public.key -O - | sudo apt-key add -

 

.

Infos

Scripts utilisés pour installer Wview
Vous pouvez télécharger les scripts en cliquant sur le nom des fichiers