VLC Thing. A Poor Man's Sonos. Version 2.0 Released 12/22/2016

I follow the instruction to install, but do not work when I click test or play on VLC.

So on browser I entered my ip 192.168.1.168.:8080 Skip the user id and enter your password, works I can control the VLC.

EDIT: I just reboot all device so works.:grinning:

I get a “No Connection” message in my log files.

VLCThing connection is disconnected
Name Value
archivable true
data
{
“microDeviceTile”: {
“type”: “standard”,
“icon”: “st.secondary.refresh”,
“backgroundColor”: “#ea5462
}
}
date 2017-12-20 9:02:39.101 PM CST (2017-12-21T03:02:39.101Z)
description VLCThing connection is disconnected
deviceId 54ac874b-7792-45ea-9086-a776f2624575
deviceTypeId ea9a1352-116f-451c-ac11-56a06a4970e6
displayed true
eventSource DEVICE
hubId 27b598fd-da2c-4e59-a66f-bd6f574597db
id 679a0ab0-e5fb-11e7-9a13-02277982aa9e
isStateChange true
isVirtualHub false
linkText VLCThing
locationId 1c3ceee8-e540-48e7-b2bb-d415717d22e8
name connection
rawDescription
translatable false
unixTime 1513825359101
value disconnected
viewed false

I really wish it would just work with my Echo … i don’t need anymore speakers around the house. What about an old iPhone? Any way that can work? Cause i can pair that with the Echo.

This seems like a great app to play media but unfortunately i keep getting the message ‘VLC thing connection is disconnected’.

Ive read all instructions carefully and did all steps twice. All seems to be pretty clear and well explained so i dont understaand where im going wrong.

I have VLC on a computer on the same network as my ST hub. Installed the Device and DTH like any other. Used the standard password, filled in port and ip address. Checked firewall, theres 2 VLC set to allow (just as on the example image). Since i pretty much know nothing about tcp ports and ip addresses i feel that here might lay the problem.

Any suggestions on what i could do to fix this are very welcome. Thanks!

EDIT: Earlier in this topic someone wrote if you type this into a browser you should be able to control VLC that way: (my ip):8080
If i type this line and press enter the browser just keeps on loading for a while untill i get a connection timed out error message

Can you describe how you’ve set this up? I get stuttering Bluetooth audio on my Pi Zero W running headless (no GUI) on the latest Raspbian image using vlc, even just playing a local file. Tried a Pi 3 B on Ethernet instead of WiFi with the same results – tho on that one I seem to get good audio from Chromium streaming YouTube vids, it’s only vlc that’s giving me headache.

1 Like

I use Jessy with GUI on my Pi Zero W. I installed the VLC on the Pi and have it auto load when the Pi is booted. It does not stutter. But place an extra letter prior to the start of the report text in order to eliminate the dropped letters or word issue that some people on the forums reported. Also, please find my project post here on ST about C.H.I.P/Pi Sonos killer with VLC. The worst I have seen is that presence reports don’t arrive when I am home. That is due in Big part to how ST handles these events.

I’ll have to see about digging up a Jessie image. My problem is that the middle of messages drops out almost all the time, the beginning is almost always ok and the end usually comes through if the message isn’t very short. Running cvlc --server http -v I see a bunch of messages about pipes and timing during playback.

Maybe an older version of VLC would solve my problem since it seems to be specific to VLC.

Hopefully have more time to play with this tomorrow.

There is another option. I don’t have a link to another users post, but he created code to run on a Pi to make announcments over Google Home. It uses Python code, but I havn’t gotten it to work yet. If you look it up, you can try that. Tell me if ad how you get it to work.

Scatch that. Here is the link to his post:
His name is @GhostBassist

The last Jessie image got me going alright on the Pi Zero W. I did an apt-get update && apt-get upgrade and installed the following packages:

blueman bluez bluez-firmware pulseaudio-module-bluetooth vlc vlc-nox

Once I got it functioning via the GUI, I disabled the GUI in raspi-config, ssh in, and use the following commands to get things going:

 echo connect _speaker_mac_address_ | sudo bluetoothctl
 pulseaudio -D
 pacmd set-card-profile 0 a2dp
 cvlc --server http -v

That got me clean audio but it was still sometimes getting clipped off at the end. I ended up commenting out one line in playTrackAndRestore:

actions << playTrack(uri)
actions << delayHubAction(delay)
//actions << apiCommand("command=pl_stop")
actions << delayHubAction(500)

I’m guessing the real problem here is that the delay duration is miscalculated a few lines above but this works for my use case.

1 Like

I updated this code to handle capability “Audio Notification”. This allows the use of the MarketPlace>Music&Sounds>Speaker Companion for making dogs bark when the doorbell rings. It was a quick hack with just the bare minimum required to do this.

Relevant changes are declartion of “Audio Notification” on Line 52, Addition of “playTrack” command on line 61, and “playTrack” method on lines 405-436.

Please don’t ask me for support. Ask the OP to update this properly.

1 Like

If I have a dozen raspberry pi’s running VLC, can I broadcast to all of them simultaneously?

I have tried 3 :slight_smile:

How do you broadcast? Care to share? I am going to make one soon.

Oops, sorry, I forgot the one important detail. I use webCoRE to speak text to the available vlc thing players.

I call this piston from other pistons with the textMessage payload.
image

1 Like

Can you use alexa to play a message to them?

I do not believe that’s possible at this time.

Is anyone else having issues with vlc thing currently? I cannot get it to speak. Seems to be sending files that are empty to my vlc player. Local files play fine.

I wish that VLC Thing can play a tone before speaking. It can be really spooky when it speaks out of the blue.

This turns out to be possible w/VLC Thing. I have it speaking the door name and then playing a track (The Star Trek doorbell of course, because that’s appropriate for a home automation geek). I’m doing this on the Hubitat adaptation, but it should be possible with SmartThings too.

Plays the track after, instead of before, like I’d prefer. Was working the other way round, but it switched and I don’t know why. Maybe it will behave better for you? Still, it works, and that’s good enough for me. I do wish there was a way the tracks would auto purge in VLC Player. As it is now, they’re just building in the playlist each time a door is opened.

Can you elaborate how to do that?