TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Moacir Vilela Sêga
    • Profile
    • Following 1
    • Followers 0
    • Topics 3
    • Posts 9
    • Best 2
    • Controversial 0
    • Groups 0

    Moacir Vilela Sêga

    @Moacir Vilela Sêga

    2
    Reputation
    8
    Profile views
    9
    Posts
    0
    Followers
    1
    Following
    Joined Last Online

    Moacir Vilela Sêga Unfollow Follow

    Best posts made by Moacir Vilela Sêga

    • RE: Unable to log into dashboard

      @barry-hamilton Same problem here

      posted in General Discussion
      Moacir Vilela SêgaM
      Moacir Vilela Sêga
    • RE: Javascript error occurred in the main process

      Got the same problem as you. Something broke

      posted in General Discussion
      Moacir Vilela SêgaM
      Moacir Vilela Sêga

    Latest posts made by Moacir Vilela Sêga

    • Triggercmd failing to install the background agent

      As the title says, when I click to install the background agent, nothing happens.
      I can see in the task manager that it was trying to do something, but as its configuring in a silent mode, I cannot see what is holding up:
      7f6ed7c5-277e-49ad-89f4-14202f5862d7-image.png

      posted in Windows
      Moacir Vilela SêgaM
      Moacir Vilela Sêga
    • [FIXED]

      Re: Did the alexa skill got deleted?

      Just so you know, it was a problem on Alexa's end. Its fixed

      posted in Alexa
      Moacir Vilela SêgaM
      Moacir Vilela Sêga
    • Did the alexa skill got deleted?

      It was working earlier. Somehow alexa started saying it couldn't find my devices, so I went to readd the skill and it says 'This skill does not exist anymore'

      posted in Alexa
      Moacir Vilela SêgaM
      Moacir Vilela Sêga
    • RE: Javascript error occurred in the main process

      @Russ I suppose you are already working on it?

      posted in General Discussion
      Moacir Vilela SêgaM
      Moacir Vilela Sêga
    • RE: Javascript error occurred in the main process

      Got the same problem as you. Something broke

      posted in General Discussion
      Moacir Vilela SêgaM
      Moacir Vilela Sêga
    • RE: Unable to log into dashboard

      @barry-hamilton Same problem here

      posted in General Discussion
      Moacir Vilela SêgaM
      Moacir Vilela Sêga
    • RE: Pass color and brightness parameters using TRIGGERcmd Smart Home Alexa skill

      @russ I dont know what to tell you now. It is just working normally now. I didn't change neither my script nor tried to re-add the device.
      I decided to test it before changing to your script and it worked.

      posted in Announcements
      Moacir Vilela SêgaM
      Moacir Vilela Sêga
    • RE: Pass color and brightness parameters using TRIGGERcmd Smart Home Alexa skill

      @russ I am using Alexa. I did a simple python script

      import pyttsx3
      import threading
      import sys
      from pycaw.pycaw import AudioUtilities, IAudioEndpointVolume, IAudioEndpointVolumeCallback
      from comtypes import CLSCTX_ALL, COMObject
      
      from ctypes import POINTER, cast
      
      class fala:
          def __init__(self,msg,voice=0):
              threading.Thread(target=self.thread,args=(msg,voice,)).start()
          def thread(self,msg,voice):
              tts = _TTS(voice)
              tts.start(msg)
              del(tts)
          
      class _TTS:
          engine = None
          rate = None
          def __init__(self,voice):
              self.engine = pyttsx3.init()
              self.engine.setProperty('volume',1.0)
              voices = self.engine.getProperty('voices')
              self.engine.setProperty('voice', voices[voice].id)
          def start(self,text_):
              self.engine.say(text_)
              try:
                  self.engine.runAndWait()
              except:
                  fala(text_)
      
      
      class AudioEndpointVolumeCallback(COMObject):
          _com_interfaces_ = [IAudioEndpointVolumeCallback]
      
          def OnNotify(self, pNotify):
              print('OnNotify callback')
      
      list2 = sys.argv[1:]
      devices = AudioUtilities.GetSpeakers()
      interface = devices.Activate(IAudioEndpointVolume._iid_, CLSCTX_ALL, None)
      volume = cast(interface, POINTER(IAudioEndpointVolume))
      callback = AudioEndpointVolumeCallback()
      volume.RegisterControlChangeNotify(callback)
      
      
      
      try:
          if isinstance(int(sys.argv[1]),int):
              fala('volume definido para ' + str(int(sys.argv[1])))
              volume.SetMasterVolumeLevelScalar(int(sys.argv[1])/100,None)
      except:
          fala(' '.join(list2))
      
      
      

      So if I say a number it changes the volume, but if I say a color or "Turn on/off" it says On, Off or the Color. (Basically it tries to say it out loud if the parameter is not a number)

      Now, it only works during On and Off. All the colors or the numbers are not working as valid parameters.

      This is how it is coded in TriggerCMD currently:

       {
        "trigger": "Protocolo",
        "command": "python \"D:\\Programming\\Python\\teste vozes.py\"",
        "offCommand": "",
        "ground": "foreground",
        "voice": "Protocolo",
        "voiceReply": "",
        "allowParams": "true"
       }
      
      posted in Announcements
      Moacir Vilela SêgaM
      Moacir Vilela Sêga
    • RE: Pass color and brightness parameters using TRIGGERcmd Smart Home Alexa skill

      Did it stop working? I used this to control my computer volume, and I think since yesterday it isnt working anymore, even after deleting the devices

      posted in Announcements
      Moacir Vilela SêgaM
      Moacir Vilela Sêga