Commit Graph

19 Commits

Author SHA1 Message Date
Sasha MOREL f07dac7b44 Deleted python2 support
I don't want to support Python2 anymore.
Sorry for Python2 users…
2021-08-14 08:30:47 +02:00
Sasha MOREL 4359974efa Check the cookies type
Python2:
- Added type check for cookies param in HomeSFR class

Python3:
- Added type check for cookies param in HomeSFR class
2021-08-14 08:30:47 +02:00
Sasha MOREL 11f59e21ef Updated TODOS
Python2:
- Updated TODO
- Updated version

Python3:
- Updated TODO
2021-08-14 08:30:47 +02:00
Sasha MOREL bf95364048 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
2021-08-14 08:30:47 +02:00
Sasha MOREL 70b99252b2 Solved encoding error in Python2 library
Python2:
-Solved encoding error, there were not actually, that were the terminal which caused strange encodings
2021-08-14 08:30:46 +02:00
Sasha MOREL fd4a5b3868 Updated version numbers 2021-08-14 08:30:46 +02:00
Sasha MOREL e2aa508d50 Updated TODOS 2021-08-14 08:30:46 +02:00
Sasha MOREL c5d531eb10 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
2021-08-14 08:30:46 +02:00
Sasha MOREL 4c6063cd8c 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
2021-08-14 08:30:46 +02:00
Sasha MOREL d90da89b47 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')
2021-08-14 08:30:46 +02:00
Sasha MOREL 7745571fcd Cookies Import and Export
Python3:
- Added cookies import and export
- Changed HomeSFR.login () behavior if there's no username and password
- Changed HomeSFR.__str__ () if there's no username
- Added HomeSFR.get_cookies ()
- Set autologin always to False is there no credential to use
2021-08-14 08:30:46 +02:00
Sasha MOREL 9ef7b163a1 Documentation changes
Python3:
- Changed description of HomeSFR.get_sensors ()
- Changed description of HomeSFR.get_all_sensors ()
- Changed type of return of HomeSFR.get_all_sensors (), it was a list and the doc said it was a tuple
2021-08-14 08:30:46 +02:00
Sasha MOREL a340d1d228 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
2021-08-14 08:30:46 +02:00
Sasha MOREL a511314e9a Adding TODOS 2021-08-14 08:30:45 +02:00
Sasha MOREL 3c1d817c62 No need of so much complicated gitignore file, for the moment. 2021-08-14 08:30:45 +02:00
Sasha MOREL 9478244188 More details… 2021-08-14 08:30:45 +02:00
Sasha MOREL 006bf5195e Adding the current version of the library 2021-08-14 08:30:45 +02:00
Sasha MOREL eaa971087e Update README.md
More informations…
2021-08-14 08:30:45 +02:00
Sasha MOREL 24596a386e Initial commit 2021-08-14 08:30:45 +02:00