Code Monkey home page Code Monkey logo

syncthing-bar's Introduction

syncthing-bar Build Status

THIS PROJECT IS OBSOLETE NOW AS THERE IS AN OFFICIAL CLIENT: https://github.com/syncthing/syncthing-macos

A little statusbar for http://syncthing.net/ on OSX

Be aware that i am NOT a swift developer. I am not even a cocoa developer. This is more or less a weekend experiment. It should be useable but the code is a mess :O (so much i can tell :D)

What will it do?

Syncthing bar has syncthing bundled. Once started it will try to upgrade and then keep the bundled syncthing running. It will automatically select a port. When clicking on the statusbar icon it will offer quick access to the UI and will allow you to open any shared folder in finder. Syncthing log may be examined as well. That's it

Requirements

OS X 10.10 is required

To build/run

  1. Clone the repository in X-Code
  2. Download syncthing from http://syncthing.net/
  3. Extract the archive
  4. Locate the "syncthing" binary
  5. Copy the binary to your syncthing-bar source repository in the folder "syncthing"
  6. Open X-Code (binary/syncthing should NOT be marked RED anymore)
  7. Hit the fancy play button :S
  8. it SHOULD run :S

Demo :O

alt tag

Caveats

Syncthingbar is intended for local usage only. It will hardcode host and port and apikey. If you want to access the UI from within your network use a standalone syncthing.

Installation Package

The latest release can be found on the releases tab

Installation using homebrew

After you have installed homebrew you can install syncthing-bar with the brew command:

brew tap caskroom/cask
brew cask install syncthing-bar

syncthing-bar's People

Contributors

chrisidefix avatar crahan avatar m0ppers avatar saesh avatar shish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

syncthing-bar's Issues

Feature Request: Ability to turn off auto-updates

I'd love to use syncthing-bar but unfortunately it auto-updates itself on startup. I have Syncthing installed on multiple computers so this causes my setup to be running multiple versions of Syncthing.

A preference that allowed me to turn off auto-updating would solve this problem.

Only start syncthing-bar for currently logged in user

I have a multi-user macOS installation with syncthing-bar installed via homebrew. syncthing-bar also starts for other users which are not using the service and are confused why it is starts. The service is not visible in the Login Items of the users so they cannot remove it manually.

I would suggest to only start the daemon for the user who installed it, and via the Login Items of the user.

Caveats - There is one missing on the list

It will Install a System Launch Agent causing syncthing to run as root and thereby making root the owner of newly downloaded files.

Well I could have checked the code and see what it does first, I guess.

Enhancement: Indicate activity in the menu-bar icon

A menu-bar icon is nice and I am very happily using it already.

It would generally be great, if the menu-bar icon would gain more functionality - generally when thinking about syncthing, indicating the sync-status would obviously be what you want from a menu-bar icon.

Of course this depends on knowing if syncthing is currently syncing or scanning and I am not sure if you can get that information?

Displaying if syncthing is busy would be great, however - it's probably not necessary to know what exactly it is doing (uploading/downloading/scanning/updating), but it would be cool, if the icon would start rotating (for example) whenever some activity was detected or become greyed out when there is no connectivity, etc.

Feature Request: Add the possibility to Pause while on Battery/Wifi

Il would be great to add the possibility to Pause/Stop Syncthing while the computer is on Battery and/or connected through Wifi (like the android App).

Syncthing drains battery a lot and I close it when my MacBook is on Battery. It would be great if it could be automated.

show app title (UX improvement)

I have lots of icons in my top menu and need some reminder which was for what. Dropbox has this shiny little title bar as shown in the next screenshot. Idea?
screenshot_06

Fails to compile on OS X 10.9.5

Following the instructions on the README, click on the "play" button on OS X 10.9.5 I get the following error"

/Users/priyadarshan/src/syncthing-bar/syncthing-bar/Base.lproj/Main.storyboard: The document "Main.storyboard" could not be opened. OS X 10.10 or higher is required.

screen shot 2014-12-19 at 16 16 18

'Open UI' and 'Stop Syncthing' menu items grayed out

Hi, in the latest update (0.0.8) the 'Open UI' and 'Stop Syncthing' menu items are grayed out for me. Is there anything in particular that needs to be done to get those menu items working? Thanks!

Connecting to http://localhost:8084 brings up the Syncthing web interface, so the application is running in the background as it should.

screen shot 2015-10-24 at 23 15 46

syncthing-bar exists with fatal error

The app always exits with a fatal error, see error log below. Maybe cause by the fact that I had a separate synching installation before, which was the latest version? not sure. I've removed the standalone version of syncthing (didn't realize at first that it was bundled), but still the same. Rebooted, and did a clean reinstall of syncthing-bar, neither of which helped solve it.

OUT: [QEUDG] 17:00:32 INFO: synching v0.11.6 (go1.4.2 darwin-amd64 default) unknown-user@syncthing-builder 2015-05-23 23:58:46 UTC
OUT: [QEUDG] 17:00:32 INFO: My ID: XXX
OUT: [QEUDG] 17:00:32 INFO: Archiving a copy of old config file format
OUT: [QEUDG] 17:00:32 INFO: Database block cache capacity 65536 KiB
OUT: [QEUDG] 17:00:32 INFO: Starting web GUI on http://127.0.0.1:8084/
OUT: [QEUDG] 17:00:33 FATAL: Bad listen address: too many colons in address tcp://0.0.0.0:22000
OUT: [QEUDG] 17:00:33 INFO: synching v0.11.6 (go1.4.2 darwin-amd64 default) unknown-user@syncthing-builder 2015-05-23 23:58:46 UTC

Enhancement: Use existing / running syncthing and avoid bundle.

I haven't looked at how syncthing-bar works exactly, but it looks like it is starting / running syncthing from an internal folder. I would like to improve this and instead make the location configurable or - even better - not start syncthing at all and make syncthing-bar independent.

When starting syncthing-bar it should first check if an instance of syncthing is already running - most likely at 127.0.0.1:8080. This way I could for example use this handy .app wrapper to run syncthing, but also use your menubar.

Let me know if you think this doesn't really make sense to you.

Add a possibility to pause/stop sync

Hello,

I'm migrating from btync to syncthing to synching my photos collection and lightroom catalog between my computer!

This works very well so far.

I'd like to have an easy way to pause syncing before opening lightroom and un pause it after lightroom closed

A UI menu in the action would be a perfect place !

Inconsistent port config display

I am not sure if this is a real problem with the current syncthing config, but the web GUI settings internally still shows port 8080 inside the GUI listen address instead of port 8084. Probably won't cause any problems, but I noticed it showing up, when looking through the REST api output.

Add some settings to configure syncthing-bar.

It could be useful to have a settings dialogue for syncthing-bar that allows a bit more personalization of the application (especially the menu-bar icon could be made configurable). I committed a pull-request #15 for your review and pleasure. It's nothing special, but if there are any configuration defaults you would like to add in a more configurable way - you could probably use this to start from. (I already included the port number for example, but it needs a little more work to have any influence on starting the actual syncthing.

0.0.11 crashes on 10.10.5

Process:               syncthing-bar [593]
Path:                  /Applications/syncthing-bar.app/Contents/MacOS/syncthing-bar
Identifier:            koeln.mop.syncthing-bar
Version:               1.0 (1)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           syncthing-bar [593]
User ID:               501

Date/Time:             2016-06-08 10:12:05.570 +0400
OS Version:            Mac OS X 10.10.5 (14F1808)
Report Version:        11
Anonymous UUID:        DBDFEC62-9B8C-C4A2-CD59-C548687D374F


Time Awake Since Boot: 1000 seconds

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x00000000f4ac4bb7

VM Regions Near 0xf4ac4bb7:
--> 
    __TEXT                 0000000106548000-000000010656a000 [  136K] r-x/rwx SM=COW  /Applications/syncthing-bar.app/Contents/MacOS/syncthing-bar

Tray icon should become white when the menu drops down

Minor detail, but possibly worth fixing.

This is what f.lux (and all the default OS X tray icons) do.
screenshot 2015-05-13 18 19 07

Here is what syncthing-bar does.
screenshot 2015-05-13 18 19 18

Syncthing's icon does change when selected, but it gets darker not lighter. Also, the entire icon is changed, even the transparent part.

In dark menubar mode, it is appropriate to not change the icon when selected. Again, the default menu bar widgets behave the same way.
screenshot 2015-05-13 18 23 37

Self-updates

Thank you so much for syncthing-bar!

How does it manage syncthing updates? Does one have to redo the whole install procedure all the times?

Included syncthing binary seems to be unable to update

This causes cross-platform cross-version compatibility issues. Terminal log:

My-MacBook:syncthing user$ ./syncthing -version
syncthing v0.14.6 "Dysprosium Dragonfly" (go1.7 darwin-amd64) [email protected] 2016-09-04 21:06:30 UTC
My-MacBook:syncthing user$ ./syncthing -upgrade-check
15:55:21 FATAL: Upgrade: couldn't find a release to download

It shows a 2016 version, while the current version is that of June 2019. I have the latest version of syncthing-bar installed with Homebrew.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.