[scripts] Going to utf-8
This commit is contained in:
parent
c4a19a88ed
commit
a1bf0a4547
54 changed files with 676 additions and 573 deletions
|
@ -1,12 +1,12 @@
|
|||
#! /usr/bin/env python
|
||||
# -*- coding: iso-8859-15 -*-
|
||||
"""chambre_on_off.py: Affiche le statut, active ou désactive une prise
|
||||
# -*- coding: utf-8 -*-
|
||||
"""chambre_on_off.py: Affiche le statut, active ou désactive une prise
|
||||
|
||||
syntaxe : chambre-on-off.py chbre <cmd>
|
||||
chbre de la forme A101d
|
||||
<cmd> peut être :
|
||||
<cmd> peut être :
|
||||
- on : activer la prise
|
||||
- off : désactiver la prise
|
||||
- off : désactiver la prise
|
||||
- absent : affiche le statut de la prise
|
||||
|
||||
"""
|
||||
|
@ -17,10 +17,10 @@ sys.path.append("/usr/scripts/gestion/")
|
|||
import hptools
|
||||
|
||||
def chambre_on_off(chambre, cmd = None):
|
||||
"""Active ou désactive une prise
|
||||
"""Active ou désactive une prise
|
||||
|
||||
chambre: numéro de chambre
|
||||
cmd: si fourni, "on" ou "off" pour activer ou désactiver la prise
|
||||
chambre: numéro de chambre
|
||||
cmd: si fourni, "on" ou "off" pour activer ou désactiver la prise
|
||||
si cmd n'est pas fourni, ne fait qu'afficher le statut de la prise
|
||||
"""
|
||||
# connexion au switch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue