Installation plugin vigimeteo

#!/usr/bin/env python
# -*- coding: utf-8 -*-
 
import os
import time
 
from skplugins import addValuePlugin, addEventPlugin, addValue, addEvent
from skplugins.weather.vigimeteo import vigimeteo
 
server = '192.168.1.1'
while True:
 
    # Check vigilance meteofrance
    result = vigimeteo(cachefile='/tmp/vigimeteo_34.cache', dep=34)
    addValue(server, 'city:weather:vigilance', 'byte', result.results['result'])
    addValue(server, 'city:weather:vigicrue', 'byte', result.results['crue'])
 
    #Sleep
    time.sleep(5)