Flic for Mac?


  • FlicTeam

    @markinnewy said in Flic for Mac?:

    Hello,

    I have the app installed and working fine with some applescripts. However, for some reason, the app won't run a simple shell script. I have a script (Toggle.sh) that uses the 'lightsd' deamon to toggle my lifx lights. This is the script's contents:

    #!/bin/bash
    . lightsd --prefix/share/lightsd/lightsc.sh
    lightsc power_toggle ${*:-'"d073d503a71f"'}

    I've made sure this file is executable. From the terminal, I can type either sh Toggle.sh, or, ./Toggle.sh and it works perfectly. However, when I assign this script to a flic action, and click the button, nothing happens. The logs show "HaxWithFlic: Script return value:" and then nothing further.

    Can anyone help?

    I am not really familiar with lightsd, so I don't know how you have configured it. But you should keep in mind that nested scripts within your script will be run relative to the root path and not the path where your script lies. Perhaps that is something to take a look at? Otherwise I don't know. Maybe try and implement something easier (such as this one) and see if that works first.



  • Hello,

    I have the app installed and working fine with some applescripts. However, for some reason, the app won't run a simple shell script. I have a script (Toggle.sh) that uses the 'lightsd' deamon to toggle my lifx lights. This is the script's contents:

    #!/bin/bash
    . lightsd --prefix/share/lightsd/lightsc.sh
    lightsc power_toggle ${*:-'"d073d503a71f"'}

    I've made sure this file is executable. From the terminal, I can type either sh Toggle.sh, or, ./Toggle.sh and it works perfectly. However, when I assign this script to a flic action, and click the button, nothing happens. The logs show "HaxWithFlic: Script return value:" and then nothing further.

    Can anyone help?


  • FlicTeam

    @frank said in Flic for Mac?:

    said in Flic for Mac?:

    press scan if you want to add a new Flic

    Hi, I just downloaded and installed the app. I have a flic-icon in my menubar but when I scan for my Flic I get the error message that no Flic was found in the proximity. Even when pressing the Flic button really close to my laptop, it doesn't find it. The button works well with the iPhone app. How do I move forward?

    Thanks
    Frank

    I have noticed once before, on one mac, that the Bluetooth stack in the computer, for some reason, stopped delivering advertisement packets to the application layer. This may be what has happened to you as well. I have no idea why it happened, but when it happened to me I actually had to restart the computer for it to be solved. If you can try doing that then it would be great. If you are still having issues after that, then I will have to take a closer look.



  • said in Flic for Mac?:

    press scan if you want to add a new Flic

    Hi, I just downloaded and installed the app. I have a flic-icon in my menubar but when I scan for my Flic I get the error message that no Flic was found in the proximity. Even when pressing the Flic button really close to my laptop, it doesn't find it. The button works well with the iPhone app. How do I move forward?

    Thanks
    Frank


  • FlicTeam

    @sandra.kaercher said in Flic for Mac?:

    I'm using the lockscreen.applescript that came with the file but I'm getting a "File not executable. File path is not executable. /User/MYNAME/Documents/lockscreen.applescript" error. The sleep.sh script seems to work fine.

    Anyone experienced this?

    Hello, I don't exactly know which script you are referring to since the repository does not contain a script named 'lockscreen.applescript'. The error , however, suggests that you are trying to execute a file that you do not have permission to execute. You can look up the file permissions by going to the correct path in the terminal and then run ls -l. Here is an article that explains file permissions in more details if you are curious. But in short, you should see at lest one 'x' in the file permission list for that file. If not, then simply run chmod +x your_script_file to add the execute permission.

    Did any of this help? :P



  • I'm using the lockscreen.applescript that came with the file but I'm getting a "File not executable. File path is not executable. /User/MYNAME/Documents/lockscreen.applescript" error. The sleep.sh script seems to work fine.

    Anyone experienced this?



  • Thank you for this! I'm using my Flic as a doorbell for my recording studio (the Hue lights blink when it is pressed) and while using my phone worked, I would sometimes wander out of range with it. Having the Flic on my desktop computer allows the whole system to be much more reliable!



  • @anton LOL, I didn't see that there is a Hue script. I am using a self written ruby script to control my Hue's. I solved the "toggle"-Feature script-based with a status check on the Hue bridge.


  • FlicTeam

    @marco.roth said in Flic for Mac?:

    This is awesome 😊

    I controll Hue's with my flic. The only thing, which would be nice if you can "toggle" for example the click event.

    The first click will turn on the lights and the second click will turn them off.
    So that every 2nd click an other script will be executed. So it would work like a normal light switch :)

    Thanks!

    Are you using the Philips Hue script that is in the repository? The reason why I am asking is since it should toggle between on/off. Although it would be a nice feature to have the toggle ability directly in the app. Although when we release our official Flic app for Mac it will have native Philips hue support of course.

    /A



  • This is awesome 😊

    I controll Hue's with my flic. The only thing, which would be nice if you can "toggle" for example the click event.

    The first click will turn on the lights and the second click will turn them off.
    So that every 2nd click an other script will be executed. So it would work like a normal light switch :)



  • works great - 10.11.4 on MacBook Pro (Retina, 15-inch, Mid 2015)


  • FlicTeam

    @krishnavamsi said in Flic for Mac?:

    Today installed the same on MAC and integrated lifx bulb through flic button.

    Cool! I think other people might want to know how you did the LIFX integration :)


  • FlicTeam

    @jonmichaels said in Flic for Mac?:

    @anton I'm not sure how you're judging interest in the the Mac app, but I'd just like to add my name to the list of people saying "This is great!" Also, I would love to be able to add more than one button. What's the best way to find out when there's been an update to the app?

    Thanks, I appreciate the comment :) Well I think by now we are very convinced that we will move ahead and create a complete app for mac. We have many great ideas, such as adding the option for it to support our fliclib client/server TCP protocol (as used in our Linux SDK). That way we could easily send and receive events between different devices on the network, but also between different apps on the computer, which I think would be cool. Also, porting over much of the cloud/LAN actions from our mobile apps is a no-brainer as well.

    The only thing that we are not sure about at this moment is if we should do a quick fix to the current mac app to add multiple button support before we move over and start working on the big update.

    Regarding updates to the app, there are currently no good way to to know for sure when there's been an update to the app. Minor updates will be pushed to GitHub without notice, but with larger updates we will most certainly post here on the forum as well, perhaps even send an email update about it. In the future we will of course have a version check in the app so that it can send a notification when there is an update available.



  • Today installed the same on MAC and integrated lifx bulb through flic button.



  • @anton I'm not sure how you're judging interest in the the Mac app, but I'd just like to add my name to the list of people saying "This is great!" Also, I would love to be able to add more than one button. What's the best way to find out when there's been an update to the app?


  • FlicTeam

    @alundqu said in Flic for Mac?:

    Is it possible to connect several Flic buttons to one Mac?

    Currently not, but we will add that in a later version as soon as possible.



  • Is it possible to connect several Flic buttons to one Mac?


  • FlicTeam

    @flic146 said in Flic for Mac?:

    Works great for me, even committed code to github, which sends the mac to sleep.

    Have you thought about open-sourcing the tool, and not just the scripts?

    Yes I have thought about that, but we have not made any decisions yet. We will think about it.



  • Works great for me, even committed code to github, which sends the mac to sleep.

    Have you thought about open-sourcing the tool, and not just the scripts?



  • This is FANTASTIC!!!!


Log in to reply