Conversation
be34c69 to
e349d54
Compare
Co-authored-by: Xiaonan Shen <s@sxn.dev>
Co-authored-by: Xiaonan Shen <s@sxn.dev>
|
Since now we have several API version issues, I'm thinking if we should fix our integration to use some specific versions of API instead of the maximum supported one to avoid new API releases break the integration. Edit: Note that some people want to integrate with older devices (home-assistant/core#35475). Maybe it is better to build this based on API version 1 and use higher versions for some methods only. |
Co-authored-by: Xiaonan Shen <s@sxn.dev>
|
Hint for test: Surveillance Station supports adding camera from |
The previous library uses fixed API version, here it used automatic from API info. I think we should keep it auto/higher so we can use newer functions, then handle For home-assistant/core#35475:
We are having no risk to make this guy working even less 😂 |
|
Can you check also snjoetw/py-synology#12 (comment) ? The documentation is telling boolean, but was int in the lib. |
|
@Quentame For home-assistant/core#35475, I can see |
|
Oh yep! I did not see the I agree. |
|
@Quentame Tested the |
|
Hi again @shenxn ! Can you provide me a data for After that, one last test so I can merge soon. |
|
@Quentame |
|
Ok will do that, add a max to 7. Let’s see us tomorrow or the day after 😉 |
|
Updated to use the list with v7 at max API version |
|
@Quentame I've updated the API data of the list method (https://github.com/shenxn/python-synology/blob/surveillance_station/add/tests/api_data/dsm_6/surveillance_station/const_6_surveillance_station_camera.py). I'll do more tests on other methods. |
|
@shenxn don’t hesitate to ping me if you need something. |
|
@Quentame I added a little more API data (https://github.com/shenxn/python-synology/blob/surveillance_station/add/tests/api_data/dsm_6/surveillance_station). Everything seems working well as long as the |
Co-authored-by: Xiaonan Shen <s@sxn.dev>
Co-authored-by: Joe Lu <snjoetw@gmail.com> Co-authored-by: David <dconnor@gmail.com> Co-authored-by: Aleksander Lyse <aleksander.lyse@gmail.com> Co-authored-by: Loïc Gerbaud <info@loicg.net>
|
Will release the lib this week-end or during the week, get ready 😉 |
|
I installed Surveillance Station and try to add a camera from a mp4 file (brand: [user defined], type: file). When it tests the cam, I got the message "Failed to test the camera", tried with multiple files, I don't know why it's not working. |
* Add SurveillanceStation * Fix error in error handling * Fix Python 2.7 pylint * Capitalize Camera_API.List Co-authored-by: Xiaonan Shen <s@sxn.dev> * Capitalize Camera_API.GetSnapshot + id instead of cameraId Co-authored-by: Xiaonan Shen <s@sxn.dev> * Join idList Co-authored-by: Xiaonan Shen <s@sxn.dev> * black * pylint * methods are case sensitive * Backward compat with Camera.GetSnapshot cameraId * raw live view data * Add Info.GetInfo * Use Camera.GetInfo * Fix TakeSnapshot blSave * Fix content type * Add SurveillanceStation api data * Add unit test, miss SYNO.SurveillanceStation.Camera GetInfo * Do not use Camera.LetInfo but .List with max_version 7 * Fix Switch on param Co-authored-by: Xiaonan Shen <s@sxn.dev> * Update camera list api data * Add more API data * Take care of new test data * Add RTSP test + previous library code owners Co-authored-by: Joe Lu <snjoetw@gmail.com> Co-authored-by: David <dconnor@gmail.com> Co-authored-by: Aleksander Lyse <aleksander.lyse@gmail.com> Co-authored-by: Loïc Gerbaud <info@loicg.net> * Fix Py27 pipe * Fix : get_all_cameras() test * Update README for SurveillanceStation * Fix README
TODO: