TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    No tray icon on Ubuntu 18.04, can't add triggers

    General Discussion
    3
    12
    2.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RussR
      Russ @Tuxer
      last edited by Russ

      @tuxer, I think the reason it's removing your changes from commands.json is there's some invalid json in the change you made. A common problem is forgetting that the last entry should not have a comma after it.

      A good way to check your json syntax is to test it with an online checker like this one: https://jsonlint.com

      I want to fix the missing icon problem. I'll have to install an Ubuntu 18 VM first. I don't think I've tested v18 yet.
      Thanks for reporting the problem. I'll have some time tomorrow to hopefully fix it.

      Russell VanderMey

      1 Reply Last reply Reply Quote 0
      • T
        Tuxer
        last edited by

        Thank you for the reply! Indeed the commands.json "issue" was due to my own stupidity. Not about commas per se, but in general not properly checking the syntax before saving. I've now added some commands that have yet to appear on the website login side (and do not yet work with Alexa), but I suppose they'll eventually pop up there when TRIGGERcmd synchronizes the settings between client and server.

        To clarify the issue with tray icon on Ubuntu: the icon actually initially shows up, as well as the initial setup window. I can enter token via the GUI. It is after this when the problem appears: whenever I run TRIGGERcmd from the menu or command-line, the icon only shows up for a second or so, then disappears. It cannot be right-clicked, thus no settings can be edited.

        RussR 1 Reply Last reply Reply Quote 0
        • RussR
          Russ @Tuxer
          last edited by Russ

          @tuxer, when it's working properly, your commands.json edits show up on the website immediately, so something's wrong.

          I installed Ubuntu 18 last night. I'm having issues with the GUI too and I'm working on it now.

          In the meantime, you could get it working without the GUI with this command:

          node /usr/share/triggercmdagent/resources/app/src/agent.js --console
          

          Or with the GUI with these commands:

          sudo npm install -g electron
          electron /usr/share/triggercmdagent/resources/app/src/main.js
          

          Ubuntu 18 Workaround

          Russell VanderMey

          1 Reply Last reply Reply Quote 0
          • RussR
            Russ
            last edited by

            @Tuxer, I published a new version of the .deb that fixes that problem. Please try it when you get a chance.

            Russell VanderMey

            1 Reply Last reply Reply Quote 0
            • T
              Tuxer
              last edited by

              That was fast! And yes, everything works beautifully with the new version! Previously I couldn't get the foreground commands to run and thought it was due to Wayland, but they run now (mostly I need background commands, though). Thank you so much, now I can continue tweaking my Raspberry Pi w/ Arduino for some additional home automation. 😀

              RussR 1 Reply Last reply Reply Quote 0
              • RussR
                Russ @Tuxer
                last edited by

                @tuxer, Awesome. Thanks for testing, and for reporting the problem.

                Russell VanderMey

                1 Reply Last reply Reply Quote 0
                • T
                  Tuxer
                  last edited by

                  Two more questions:

                  1. How do I change the default computer, so I don't have to tell its name to Alexa everytime?

                  2. IFTTT doesn't list TRIGGERcmd as an available service, I can't create applets/commands. Could it be listed under some other name, perhaps?

                  RussR 1 Reply Last reply Reply Quote 0
                  • RussR
                    Russ @Tuxer
                    last edited by Russ

                    @tuxer, for IFTTT, you'll need to use the Webhooks service to use TRIGGERcmd with IFTTT. This article explains the process: https://www.triggercmd.com/forum/topic/31/how-to-use-ifttt-with-triggercmd

                    Your default computer setting is in your profile. You can click your name in the upper-right, then click Profile to get there:

                    0_1535579327975_74e53fb7-b0cb-466b-89eb-7949f0c7db26-image.png

                    Then you'll see the default computer setting:

                    0_1535579368883_e6e10caa-bc67-4781-98ab-9cb4333268fb-image.png

                    Russell VanderMey

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      Tuxer @Russ
                      last edited by

                      @russ Thank you! For some reason I completely missed that "Profile" button there.

                      1 Reply Last reply Reply Quote 0
                      • Caue SantosC
                        Caue Santos
                        last edited by

                        I have the same problem in linux mint 20, I tried the alternatives proposed in the post without success, any ideas?

                        Caue SantosC 1 Reply Last reply Reply Quote 0
                        • Caue SantosC
                          Caue Santos @Caue Santos
                          last edited by

                          i changed the interface from GTK 3 to cinnamon and solve the problem

                          1 Reply Last reply Reply Quote 1
                          • First post
                            Last post