wicol / unifi-dns Goto Github PK
View Code? Open in Web Editor NEWA dnsmasq being populated by aliases/name overrides made in a UniFi controller
License: MIT License
A dnsmasq being populated by aliases/name overrides made in a UniFi controller
License: MIT License
The NAME only seems to appear with an Alias defined. Would be helpful to enable the "Hostname" entry as an option. At least in the initial runs it can be used to help identify unknown items. Not all my bulbs and other devices are reporting correctly.
Nice work. I'm modifying the script to add a log.warn which provides details on each device to help me figure out what some of them are.
Cloudkeys (inc Gen 2 that I have) were recenly updated to Unifi OS. The script does not appear to work with these?
https://community.ui.com/questions/CloudKey-Gen2-updated-8443-not-working-anymore-reset-still-same-issue/c384eca4-d754-4cec-9518-161ca2552fd6
UNIFI_BASEURL
includes port 8443 whereas the new OS no longer has that open; all services are consolidated on port 443/
on the URL confuses the path handling sending it to a 404 page, it'd be nice to handle that case)/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host 'cloudkey'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings,
warnings.warn(,
/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host 'cloudkey'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings,
warnings.warn(,
Traceback (most recent call last):,
File "/app/./get_unifi_reservations.py", line 80, in <module>,
for c in get_clients():,
File "/app/./get_unifi_reservations.py", line 45, in get_clients,
clients = get_configured_clients(s),
File "/app/./get_unifi_reservations.py", line 24, in get_configured_clients,
return r.json()["data"],
File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 900, in json,
return complexjson.loads(self.text, **kwargs),
File "/usr/local/lib/python3.9/json/__init__.py", line 346, in loads,
return _default_decoder.decode(s),
File "/usr/local/lib/python3.9/json/decoder.py", line 337, in decode,
obj, end = self.raw_decode(s, idx=_w(s, 0).end()),
File "/usr/local/lib/python3.9/json/decoder.py", line 355, in raw_decode,
raise JSONDecodeError("Expecting value", s, err.value) from None,
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1),
LMK if I can collect some more logs to debug further
Docker can't stop the container gracefully and will use SIGKILL (exit code 137).
I believe this is due to not handling the signal SIGTERM in the shell script.
Per here: https://github.com/boostchicken/udm-utilities/tree/master/on-boot-script
Would it be possible to just change this to an onboot script and store the files on the device so that it doesn't have to run as a docker image? My understanding is that this persists until firmeware update and the on boot script stuff runs automatically on every restart.
Would be an awesome and simple way to make this work...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.