Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/plan44/localSites
Simple Menu Bar (Status Bar) App for mac OS and simple table app for iOS listing local Bonjour websites (as Safari 11 no longer has Bonjour Bookmarks)
https://github.com/plan44/localSites
bonjour swift
Last synced: about 1 month ago
JSON representation
Simple Menu Bar (Status Bar) App for mac OS and simple table app for iOS listing local Bonjour websites (as Safari 11 no longer has Bonjour Bookmarks)
- Host: GitHub
- URL: https://github.com/plan44/localSites
- Owner: plan44
- Created: 2017-09-24T21:03:11.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-14T14:10:56.000Z (7 months ago)
- Last Synced: 2024-08-02T16:10:40.189Z (4 months ago)
- Topics: bonjour, swift
- Language: Swift
- Homepage:
- Size: 965 KB
- Stars: 73
- Watchers: 10
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- open-source-mac-os-apps - LocalSites - Simple Menu Bar (Status Bar) App for macOS listing local Bonjour websites (as Safari 11 no longer has Bonjour Bookmarks). ![swift_icon] (Applications / Development)
- open-source-mac-os-apps - LocalSites - Simple Menu Bar (Status Bar) App for macOS listing local Bonjour websites (as Safari 11 no longer has Bonjour Bookmarks). ![swift_icon] (Applications / Development)
- awesome-swift-macos-apps - LocalSites - Simple Menu Bar (Status Bar) App for macOS listing local Bonjour websites (as Safari 11 no longer has Bonjour Bookmarks). (Development / Web Development)
- awesome-swift-macos-apps - LocalSites - Simple Menu Bar (Status Bar) App for macOS listing local Bonjour websites (as Safari 11 no longer has Bonjour Bookmarks). (Development / Web Development)
README
# LocalSites - local bonjour websites menu
## About
With Safari 11, Apple removed Bonjour bookmarks without warning
(at least without warning in a way I heard, no idea if they announced it somewhere).As I am developing networked devices that all announce their Web-UI via Bonjour
(in fact, avahi, those devices are LEDE based Linux thingies), Bonjour bookmarks were an essential part of my workflow,
to quickly access units by name in my ever changing zoo of devices.So I took the opportunity to create my very first app in Swift. Fortunately, I could follow a [really very great tutorial for writing a status bar app in Swift](http://footle.org/WeatherBar/) that explained all the non-obvious details precisely. Of course, I had to add my own bonjour code instead of the weather service code, but that was all.
The result is LocalSites, a small status bar app which simply lists all `_http._tcp` type services in the `local` domain, and opens them in ~~the default~~ a browser of you choice (modifier keys, see *About...* box) when selected.
In 2019, I also added an iOS target to the project, providing the same functionality (only Safari..) on iPhones and iPads
## History
- **1.0** first version
- **1.1** added options to choose different browsers by holding down modifier keys (option, ctrl, shift) before opening the menu. With no modifier keys, sites still open in the system's default browser.
- **1.2** made run on 10.11 El Capitan (just set 10.11 as deployment target in XCode project), added preference to show a monochrome menu icon instead of the blue one.
- **1.0 for iOS** provides the same functionality on iOS - just lists all local bonjour websites and allows opening them with iOS Safari
- **1.3 for macOS and 1.2 for iOS** converted to Swift 5
- **1.4 for macOS** group menu entries by domain (contribution by @gmw, thanks!)## License
The LocalSites app source code is MIT licensed.