AllStarLink / ASL3

AllStarLink Version 3
https://www.allstarlink.org
GNU Affero General Public License v3.0
18 stars 3 forks source link

Script to speak current IPv4 address #54

Closed jxmx closed 5 months ago

jxmx commented 6 months ago

ASL3 should provide a script to speak the IP address on startup which is most useful for a Pi hotpost

Allan-N commented 6 months ago

If avahi is installed we could also "speak" the local hostname.

tsawyer commented 6 months ago

The user should have a way to turn this off if desired, perhaps with a asl3-menu selection.

jxmx commented 6 months ago

We can implement it with a systemd timer that fires N seconds after asterisk starts. Trivially disable-able with a systemd service masking.

jxmx commented 6 months ago

If avahi is installed we could also "speak" the local hostname.

That'd be difficult because many words in the sound index probably wouldn't map to hostnames.

Allan-N commented 6 months ago

If avahi is installed we could also "speak" the local hostname.

That'd be difficult because many words in the sound index probably wouldn't map to hostnames.

We have options if the hostname is not a known word :

node 1 9 9 9 dot local
w b 6 n i l dot local

But, as Tim suggests, we can look at ways to control the behavior. We can also start off simple (and familiar) for now and look at other possibilities later.

Allan-N commented 6 months ago

Thinking about this a bit more, with Avahi installed it is much less important/useful to know the local hostname (we have "discovery" applications that can do that for us). So, maybe, "speaking" the name is not so important.

But, for the record, I have no issues with a device speaking (or flashing) it's IP on boot. To me, that's a quick way to know that the device has [re-]booted, that Asterisk/ASL is running, and that it's connected to the local network.

FYI, I'd give a few bonus points if we added a "connected to AllStarLink" announcement after the first registration :-)

jxmx commented 5 months ago

I've added asl-say to the bin target.