firmware
firmware copied to clipboard
Majestic's default openipc.local should just point to /etc/hostname
That way folks can easily change the default mDNS/Zeroconf advertised domain name without having to edit the majestic
binary...
We need a second opinion from other project developers about changing behavior for this feature. From my point of view, end-user doesn't care about specific name of hardware platform, e.g. it better to ping/ssh to openipc.local
than openipc-t10-cam.lan
, but for experienced users for sure it's better to have everything they want.
BTW, some good routers have same feature with autodiscovery option and as for me, it's better to implement this as well.
Fair enough ;)
Well, one big problem with the hardcoded openipc.local in majestic is when there's more that one OpenIPC camera on the same LAN.
Another less disruptive way to implement this would be to add a section on majestic.yaml that allows to specify a camera name or switch to /etc/hostname explicitly from that yaml.
Sigh, it's such a pity that Majestic is closed source, IMHO it's perhaps the only downside of OpenIPC at this point in time ;)
Here's its small brother mini, but there are no PRs since 2019
We're still looking for more developers to our small team
My 1.17 ruble: if hostname is the default one then advertise as openipc.local, otherwise use $(hostname).local
It's hard to determine, is it "default" because for each platform currently we have different name
check /etc/hostname against /rom/etc/hostname.
cmp -s /etc/hostname /rom/etc/hostname && echo "same"
Check /etc/hostname in overlay is better. What if i want to use the same name?
Just add the last 3 bytes of the mac address to the name from /etc/hostname: openipc-t31-xxxxxx
First step I'd take with this issue is to remove this particular functionality from Majestic and put it on a separate service, i.e:
https://github.com/sudomesh/mdnssd-min/
Or instead of removing, at least make it on/off switchable via majestic.yaml
so that future mDNS solutions do not clash with Majestic.
Has there been any more thoughts on this as I've got three cameras on the same LAN and would ideally like to use their .local names to address them. I'm not sure many people would mind where it is implemented but I would prefer the hostname is used as set in /etc/hostname?