diff --git a/pyhomesfr.py b/pyhomesfr.py index 5a277f9..f7b3132 100644 --- a/pyhomesfr.py +++ b/pyhomesfr.py @@ -14,11 +14,19 @@ So, if a program using a major does not work anymore with another version from t The major 0 is a testing one ''' +# TODO: +## Return sensors in a class +## Manage cameras +### Get image +### Get video +## Manage logs +## Import/Export cookies + authors = ( 'Gilles "Almtesh" Émilien MOREL', ) name = 'pyhomesfr' -version = '0.8-20160511' +version = '0.8-20160521' # Settable modes MODE_OFF = 0 @@ -41,6 +49,17 @@ def bytes2file (b): r.seek (0) return (r) +def bytes2image (b): + ''' + Gives a Image object from bytes + Uses the bytes2file function + ''' + from PIL import Image + f = bytes2file (b) + r = Image () + r.open (f) + return (r) + class HomeSFR (): def __init__ (self, username, password, debug = False, autologin = True): '''