Can i send a notification to every xbmc machine at once?
#1
hi

i was wondering if it's possible to send a dialog notification to all 3 of my xbmc machines at once.

From my linux server i can send via terminal.
wget -q "http://xbmc:[email protected]:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn(Notification(Test,1234,30000))"

Which works great, just like to know if there's a way to send it to every machine at the same time.

Thanks
Reply
#2
You can run commands via ssh.

Perhaps a script to login in each and repeat same command via ssh would work?

http://bashcurescancer.com/run_remote_co...h_ssh.html
If I helped out pls give me a +

A bunch of XBMC instances, big-ass screen in the basement + a 20TB FreeBSD, ZFS server.
Reply
#3
python is one of your option.

PHP Code:
from urllib import urlopen

# User preferences
title 'Test'
message '12345'
time 30000

username 
''
password ''

machines = ['192.168.2.5:8080',
            
'localhost:8080',
            
'192.168.1.125:8080']

# Code
query 'xbmcCmds/xbmcHttp?command=ExecBuiltIn(Notification(%s, %s, %d))' % (titlemessagetime)

for 
machine in machines:
  if 
username and password != '':
    
url 'http://%s:%s@%s/%s' % (usernamepasswordmachinequery)
  else:
    
url 'http://%s/%s' % (machinequery)
  
urlopen(url
Reply
#4
Thanks for the replies

I think for the mo i'm gonna go with a bash script.

coding python is something i've still got to get my head round.
Reply
#5
Is this now depreciated?
It seems as though the Notification part of HTTPAPI may still be in Eden Beta 3.

Entering -
http://XBMCIP:PORT/xbmcCmds/xbmcHttp?com...nformation!)

Still gets an " * OK " response from XBMC, although nothing seems to display on the screen.

Will it be dropped completely when Eden's released and will there be an alternative solution?
Image
Maraschino - Web based HTPC Organiser. Keep track of all your web based programs all in one place.
Home Page - Repo - Bug Tracker - Support Forum.
Reply
#6
The HTTP API is still in Eden.

I don't know if there is a firm date for dropping it. My preference is to keep the HTTP API indefinitely as I find it very useful.

JR
Reply

Logout Mark Read Team Forum Stats Members Help
Can i send a notification to every xbmc machine at once?0