This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script a faire tourner avec bash de cette maniere : /bin/bash /script/a/executer/weewx_restart.sh >/dev/null 2>&1 | |
# Exemple en crontab : */5 * * * * /bin/bash /script/a/executer/weewx_restart.sh >/dev/null 2>&1 | |
# Nom du service à surveiller : | |
service=weewx | |
if (( $(ps -ef | grep -v grep | grep $service | wc -l) > 0 )) | |
then | |
echo "$service is running !!!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Script permettant de générer un fichier texte selon les recommandations de l'association ROMMA | |
* (Réseau d'Observation Météo du Massif Alpin) pour une intégration à leur réseau d'une station | |
* météo (Davis VP2) fonctionnant sous le logiciel WEEWX sur une base de données MySQL. | |
* | |
* Dérivé d'un script issu du travail de XavierJ du forum d'Infoclimat et | |
* disponible ici : https://github.com/xavfmp/meteo | |
* Fonction pour la moyenne d'angles : https://gist.github.com/carloscabo/96e70853f1bb6b6a4d33e4c5c90c6cbb |