This is rad -thanks Russ. I'm not sure what I did but it wouldn't let me auto-start in the foreground, but could have been a simple hiccup I made along the way, when installing it. I have my pi waking up both my laptop and desktop now and trigger can do a bunch of things with both computers from sleeping/locking/restarting them. Really cool. I'll make a better video now that I got it dialed in as it seems to be incredibly seamless with alexa and setting up a simple command in alexa UI for the virtual smartthings switches. I think stringify or smartthings or harmony needs to buy trigger off you IMO!
Posts made by Kalen Daniel
-
RE: Raspberry Pi setup
-
RE: Raspberry Pi setup
Hold up. I figured it out. So, what I ended up doing was I created my own script to run triggercmd and then I actually added a small line of code to my desktop autostart file shown below (which was kind of janky and more than likely I'd guess was he wrong way since I'm fairly new'ish with creating my own bash scripts):
Step 1: (to create my script to run triggercmd)
nano touch path/to/myscript.shStep 2: (put inside this file then ctrl+x and "y" to exit and write to file before exiting)
#! /bin/bash
/usr/bin/triggercmdagentStep 3: (then edited my desktop autostart file)
nano ~/.config/lxsession/LXDE-pi/autostartStep 4: (added this line of code in it to direct it to my file with a leading @ symbol before the path I added to the file)
"@/path/to/myscript.sh" < - Without quotes at the bottom of the text file edited aboveNote: Figured I'd share because it likely would take somebody only a minute to do this. I don't know if maybe it was something to do with any of the dependencies or the sequence in which I had installed triggercmd with on my Pi, but I tried quite a few ways. Because I noticed when using the installdaemon.sh script- that it wasn't putting/adding a service in systemd but it was odd because it looked like the server was running when I used systemctl start/enable etc... But figured I'd share my experience and how I'd fixed it tonight. Although maybe not the best method, I wanted to share
-
RE: Raspberry Pi setup
@Russ - how did you get triggercmd to autostart with the raspberry pi? Is it possible at this time? I'm playing around with systemd and was curious if you knew off the top of your head if maybe it is an indicator that I didn't set it up correctly or if there was instructions or another post that showed how to autostart it bc I noticed on a few reboots the commands for waking my desktop didn't work and it was bc I had to launch triggercmd manually on my pi. Thanks man!