Commit Graph

8 Commits

Author SHA1 Message Date
Gilles MOREL 9f2f4a06d1 Added log retrievment
Python2:
- Added the Common.get_xml_elements () for multiple usage of this routine
- Added HomeSFR.do_autologin () to trigger the autologin
- Removed autologin code in methods which have it
- Added HomeSFR.get_logs () method

Python3:
- Added the Common.get_xml_elements () for multiple usage of this routine
- Added HomeSFR.do_autologin () to trigger the autologin
- Removed autologin code in methods which have it
- Added HomeSFR.get_logs () method
2016-05-26 16:57:48 +02:00
Gilles MOREL 6facbe84f8 Solved encoding error in Python2 library
Python2:
-Solved encoding error, there were not actually, that were the terminal which caused strange encodings
2016-05-25 17:43:00 +02:00
Gilles MOREL d68e3ceb3c Updated version numbers 2016-05-25 17:22:44 +02:00
Gilles MOREL f60d528ed0 Updated TODOS 2016-05-25 17:22:03 +02:00
Gilles MOREL 9dd904b4ea Addind Common class for common ressources
Python2:
- Adding Common class for common ressources
- Inheritance from Common to HomeSFR and Sensors (and it's inherited class Camera)
- Adding the Sensors.get_mac () method
- Adding the Camera.get_snapshot () method
- Addind str2bytes () function for Python3 code compatibility (this library and the Python3 ones are quite identical)

Python3:
- Adding Common class for common ressources
- Inheritance from Common to HomeSFR and Sensors (and it's inherited class Camera)
- Adding the Sensors.get_mac () method
- Adding the Camera.get_snapshot () method
- Addind str2bytes () function for Python2 code compatibility (this library and the Python2 ones are quite identical)
- Changing all "readall" to "read", the method "readall" does not seem to exist in Python2, from what I tested, there's no problem with it
2016-05-25 17:19:16 +02:00
Gilles MOREL beae1f2b97 Logout method
Python2:
- Added HomeSFR.logout () method to logout from service
- moved HomeSFR.get_cookies () method in the HomeSFR class

Python3:
- Added HomeSFR.logout () method to logout from service
- moved HomeSFR.get_cookies () method in the HomeSFR class
2016-05-23 15:11:43 +02:00
Gilles MOREL 15bc8e86bd Copy Python3 code to Python2 lib
Python2:
- Added author
- Added Sensor class
- Added HomeSFR class
- Corrected date error for cameras (datetime.datetime.strptime does not understand '0000-00-00 00:00:00')
- Added encoding error TODO

Python3:
- Changed __name__
- Remove import of datetime.timezone
- Corrected date error for cameras (datetime.datetime.strptime does not understand '0000-00-00 00:00:00')
2016-05-23 12:03:27 +02:00
Gilles MOREL 11050152c3 Gerenal:
- Changed structure to allow other languages
- Added Python2's file to ignore in .gitignore
- Changed README with a language-free text

Python2:
- Added initial file with top

Python3:
- Added Sensor class for better reading of values
- Changed return of HomeSFR.get_sensor () method
2016-05-22 22:57:39 +02:00