<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Rpi VLC]]></title><description><![CDATA[<p dir="auto">Hi All,</p>
<p dir="auto">I'm attempting to push a Raspberry Pi VLC video stream to my google home hub.<br />
<a href="http://test.sh" rel="nofollow ugc">test.sh</a><br />
<em>#!/bin/bash<br />
a="$(date)"<br />
p="/home/pi/tmp/Script_ran_$(date +%F_%R).txt"<br />
echo $a &gt;&gt; $p<br />
timeout 60 cvlc /home/pi/Desktop/test.mp4 --sout '#chromecast' --sout-chromecast-ip=192.168.0.10 --demux-filter=demux_chromecast</em></p>
<p dir="auto">Commands.json<br />
<em>{"trigger":"Video background","command":"/home/pi/tmp/test.sh","ground":"background","voice":"video background",allowParams":"false"},</em></p>
<p dir="auto">Running <a href="http://test.sh" rel="nofollow ugc">test.sh</a> writes the file and pushes the video to the google home hub.<br />
TRIGGERcmd writes the text file but does not start the video <img src="https://www.triggercmd.com/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=6sa9akdcpc2" class="not-responsive emoji emoji-android emoji--disappointed" style="height:23px;width:auto;vertical-align:middle" title=":(" alt="😞" /></p>
<p dir="auto">Any help would be greatly appreicated.</p>
<p dir="auto"><em>Raspberry Pi 3, Raspbian Stretch with desktop (Nov 2018)</em></p>
]]></description><link>https://www.triggercmd.com/forum/topic/348/rpi-vlc</link><generator>RSS for Node</generator><lastBuildDate>Sun, 10 May 2026 18:14:32 GMT</lastBuildDate><atom:link href="https://www.triggercmd.com/forum/topic/348.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 31 Dec 2018 05:53:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Rpi VLC on Wed, 02 Jan 2019 06:05:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@russ</a> Thanks I'm away for a week or more, I'll have a crack when I get back.</p>
]]></description><link>https://www.triggercmd.com/forum/post/1128</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/1128</guid><dc:creator><![CDATA[Belleye]]></dc:creator><pubDate>Wed, 02 Jan 2019 06:05:50 GMT</pubDate></item><item><title><![CDATA[Reply to Rpi VLC on Tue, 01 Jan 2019 19:53:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1767">@belleye</a>, you're probably using Voice Match, so Google Home uses a different Google account depending on who's talking.  The issue is you can only have one Google account linked to a TRIGGERcmd account.  If you link a second account, it invalidates the previous account's link.</p>
<p dir="auto">This issue <a href="https://www.triggercmd.com/forum/topic/132/multiple-accounts-on-google-home/8">came up before</a> and the best solution seemed to be to use IFTTT like this:</p>
<p dir="auto">Her Google account triggers an IFTTT recipe with <a href="https://ifttt.com/google_assistant" rel="nofollow ugc">Google Assistant</a> on THIS side, and a <a href="https://ifttt.com/services/maker_webhooks" rel="nofollow ugc">Webhook</a> on THAT side, which <a href="https://www.triggercmd.com/forum/topic/31/how-to-use-ifttt-with-triggercmd">triggers the command</a> with your TRIGGERcmd token.</p>
]]></description><link>https://www.triggercmd.com/forum/post/1127</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/1127</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Tue, 01 Jan 2019 19:53:48 GMT</pubDate></item><item><title><![CDATA[Reply to Rpi VLC on Tue, 01 Jan 2019 10:14:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@russ</a>, Thanks that sorted it. The MP4 was only to simplify things, the real power comes from linking to a IP camera.</p>
<p dir="auto"><a href="http://driveway.sh" rel="nofollow ugc">driveway.sh</a><br />
<em>sudo -u pi timeout 60 cvlc rtsp://192.168.0.11:554/user=xxxxx_password=xxxxx_channel=1_stream=0.sdp?real_stream --sout '#chromecast' --sout-chromecast-ip=192.168.0.10 --demux-filter=demux_chromecast</em></p>
<p dir="auto">Now I don't need a nest camera <img src="https://www.triggercmd.com/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=6sa9akdcpc2" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">One last piece in the puzzle, can I share my triggercmd account with my wife's google account? Or do I need 2 RPIs?</p>
<p dir="auto">I can execute the script from google home, but my wife can't use the service due to not having a triggercmd account.</p>
]]></description><link>https://www.triggercmd.com/forum/post/1126</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/1126</guid><dc:creator><![CDATA[Belleye]]></dc:creator><pubDate>Tue, 01 Jan 2019 10:14:00 GMT</pubDate></item><item><title><![CDATA[Reply to Rpi VLC on Tue, 01 Jan 2019 00:20:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1767">@belleye</a>, that's pretty cool.  I didn't know you could do that.</p>
<p dir="auto">I think you're probably trying to run cvlc as root because when you run background commands on a Pi, they run as root.</p>
<pre><code>root@pi:~# cvlc
VLC is not supposed to be run as root. Sorry.
If you need to use real-time priorities and/or privileged TCP ports
you can use /usr/bin/vlc-wrapper (make sure it is Set-UID root and
cannot be run by non-trusted users first).
</code></pre>
<p dir="auto">You can be root and run something as the pi user like this:</p>
<pre><code>root@pi:~# sudo -u pi cvlc
VLC media player 3.0.3 Vetinari (revision 3.0.3-1-0-gc2bb759264)
[00d0b048] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
[00d247e8] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[00d247e8] main interface error: no suitable interface module
[00cb2938] main libvlc error: interface "dbus,none" initialization failed
[00d2fd80] main interface error: no suitable interface module
[00cb2938] main libvlc error: interface "globalhotkeys,none" initialization failed
[00d2fde8] dummy interface: using the dummy interface module...
[00d196e8] main playlist: playlist is empty
</code></pre>
<p dir="auto">Also, I like the tags.  I think you're the first person who's used them.</p>
]]></description><link>https://www.triggercmd.com/forum/post/1123</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/1123</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Tue, 01 Jan 2019 00:20:03 GMT</pubDate></item></channel></rss>