plamoni / SiriProxy

A (tampering) proxy server for Apple's Siri
GNU General Public License v3.0
2.12k stars 343 forks source link

how can i open a url by siriproxy? #457

Closed NeMeSiStm closed 11 years ago

NeMeSiStm commented 11 years ago

okay. i am gettin slowly crazy on this :-)

how can i open a url in my plugin? not on the iphone. it should be opened once on the siriproxy (so send a php command)

tryed a lot of things so far, last was

connection = Net::HTTP.new("http://192.168.11.50/sonos/index.php?zone=Badezimmer&do=Play") connection.start

please help!

laxman01 commented 11 years ago

Have you tried using osascript

NeMeSiStm commented 11 years ago

no, how would that look like?

laxman01 commented 11 years ago

Tell application "Safari" to open "URL"

I think One sec

laxman01 commented 11 years ago

osascript tell application "Safari" to open location "url"

laxman01 commented 11 years ago

Try that

NeMeSiStm commented 11 years ago

yes but my SiriProxy is running on ubuntu there is no safari :/

laxman01 commented 11 years ago

Oh sorry I have no idea how to do it on Ubuntu

NeMeSiStm commented 11 years ago

got it! i use the following:

@response = Net::HTTP.get(URI.parse("url"))

i don't know if i am using this command in the "right" way. but i does what i want :+1: