One of my recent weekend projects involved my Raspberry Pi in somewhat different manner than usual.
I’ve observed that my home automation setup contains more and more URLs that I need to visit.
Obviously, I’m using the bookmarks, but I sometimes I’d like to have them synchronized across my all devices and browsers in my home network.
I also wanted a way to add quick wildcards to the addresses - in similar fashion Chrome does it.
I spent a few hours and coded a tool that allows me to do this:
Meet Local alias.
It’s a simple tool that receives a
config.json with a list of aliases like this:
Then you can just type your hostname (host where local-alias is served, that is) and alias name.
As you can see, my RPi hostname is really short, and it’s the only scenario my solution makes sense.
You can change your RPi’s hostname to
go and now you have a great local URL shortener accessible from all your devices.
In the near future I plan to add some simple GUI to modify
config.json on the fly.
Feel free to contribute and report issues! :-)