-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please add the possibility to specify a Site ID #4
Comments
Good one. I'll have a look at this. |
@scheelings, I don't have a second site to test this against. If I just create a new site in UniFi, it seems to randomly generate a combination of letters and digits as the site ID. Is that correct? In that case it would suffice to accept a string somewhere to provide the correct site identifier. Do you agree? |
I've pushed version 1.0.2.0 in which you can provide the site ID through the constructor. Can you test if this works well on your multi site setup? |
Yes, I agree to use some kind of SiteID. I downloaded your code and implemented this in my downloaded code, so I could continue my development. I’ll check your code tomorrow and will leave a comment here! |
Perfect, thanks! |
I just checked your code and it looks the same as my code, so this should work fine! |
Thanks for confirming and addressing! Will close this issue. |
I just tested this API and the device list and client list were empty. I noticed that the URL's are hard coded and all point to the Default Site in the Unifi controller. Because I am using another Site than the Default Site, the list with devices/clients is empty.
Can you add a Site parameter in the constructor of the API (with perhaps a default value of "default") and use this parameter in the URL's (by replacing /default/ with /{SiteId}/) or some other kind of solution?
Thanks,
Danny
The text was updated successfully, but these errors were encountered: