abrenoch / hyperion-android-grabber

Screen grabber for hyperion
MIT License
193 stars 31 forks source link

Intent to toggle screengrabber #129

Closed whatdaybob closed 5 years ago

whatdaybob commented 5 years ago

Hi, I am having trouble using the new toggleactivity on Nvidia Shield, I have tried every possible combination of adb command to try and turn on and off the screengrabber except the correct way, I was hoping to integrate this into homeassistant. Can you please point me in the right direction to control the app via ADB commands as I cant read code well enough to figure this out.

abrenoch commented 5 years ago

Hey there @whatdaybob

I believe the adb command would be: adb shell am start com.abrenoch.hyperiongrabber.tv/com.abrenoch.hyperiongrabber.common.ToggleActivity

Just let me know if that doesn't work and we'll figure it out!

Edit (just because you mentioned you are trying to interface with smart house controls): What I did to control my LEDs with my google home was to just buy one of those little smart outlets from amazon and wire just the LED PSU to it. This lets my hyperion instance run on a rpi0 (powered separately) while I just let the screen grabber always run on my shield, then I can just turn the power to the LEDs on/off via my google home. Just a tip if you are looking to achieve that!

ninovanhooff commented 5 years ago

Note that the Toggle Activity is only available in the TV build

On Tue, 23 Oct 2018, 15:19 Dave Anderson, notifications@github.com wrote:

Hey there @whatdaybob https://github.com/whatdaybob

I believe the adb command would be: adb shell am start com.abrenoch.hyperiongrabber.tv/com.abrenoch.hyperiongrabber.common.ToggleActivity

Just let me know if that doesn't work and we'll figure it out!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/abrenoch/hyperion-android-grabber/issues/129#issuecomment-432242087, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ3xn540UQlHsdoI3Du8sfEo4Cwjp6zsks5unxdTgaJpZM4Xysmq .

whatdaybob commented 5 years ago

Thanks, I will give it a go this weekend. Good suggestion on the remote power, I will consider that as an alternative, ideally I would like the ambilight to be on all times but to change to grabber mode when I have my android tv as the active input. This should hopefully accomplish that.

abrenoch commented 5 years ago

Closing out this issue, if there is still a problem just re-open