VLC media player in command line URL HTTP ?

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
cyberbob69
Posts: 9
Joined: Monday 05 June 2017 15:08
Target OS: NAS (Synology & others)
Domoticz version:
Location: belgium
Contact:

VLC media player in command line URL HTTP ?

Post by cyberbob69 »

Hello,

I just tested this to change the volume:

Code: Select all

http://192.168.1.1:8080/requests/status.json?command=volume&val=200
with the ip where vlc is executed, and val of value 0 to 256 corresponds to the volume from 0 to 100%

On the other hand during the first connection, VLC requests a password (without user name), to define in advanced preference / main interface / Lua / Lua by HTTP
So there is a window that opens to authenticate and put the password in it, of course you would have to put this password in the URL link, I tried this syntax but it does not work:

Code: Select all

http://[email protected]:8080/requests/status.json?command=volume&val=200
Do you have any idea why ??
Domoticz Stable V4.9700 on Synology DSM 6.2 / 2xRFlink V48.4 - 433.92 & 433.42 MHz / Script in LUA & Blocky
User avatar
erem
Posts: 230
Joined: Tuesday 27 March 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Amsterdam/netherlands
Contact:

Re: VLC media player in command line URL HTTP ?

Post by erem »

just a guess, but the http syntax is

Code: Select all

http://username:[email protected]/
if you only need the password send, would it be

Code: Select all

http://:[email protected]:8080/requests/status.json?command=volume&val=200
-------^
just my $.02
Regards,

Rob
cyberbob69
Posts: 9
Joined: Monday 05 June 2017 15:08
Target OS: NAS (Synology & others)
Domoticz version:
Location: belgium
Contact:

Re: VLC media player in command line URL HTTP ?

Post by cyberbob69 »

correct syntax :

Code: Select all

os.execute('curl -u :password "http://192.168.1.5:8080/requests/status.xml?command=volume&val=256" ')
Request http for VLC :

https://wiki.videolan.org/VLC_HTTP_requests/
Domoticz Stable V4.9700 on Synology DSM 6.2 / 2xRFlink V48.4 - 433.92 & 433.42 MHz / Script in LUA & Blocky
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest