Code Monkey home page Code Monkey logo

Comments (9)

elvisimprsntr avatar elvisimprsntr commented on August 22, 2024

Someone was successfully able to do just that using URL methods. https://github.com/aecom/siriproxy-url

from siriproxy.

elvisimprsntr avatar elvisimprsntr commented on August 22, 2024

http://wiki.akosma.com/IPhone_URL_Schemes

from siriproxy.

elvisimprsntr avatar elvisimprsntr commented on August 22, 2024

http://handleopenurl.com

from siriproxy.

fryguy04 avatar fryguy04 commented on August 22, 2024

Wow, thank you for your extremely quick response ... I'm currently coding my siriproxy and will incorporate your great advice!!

from siriproxy.

elvisimprsntr avatar elvisimprsntr commented on August 22, 2024

I haven't been able to find the Tivo app URL scheme, but I would think it exists.

from siriproxy.

elvisimprsntr avatar elvisimprsntr commented on August 22, 2024

looks like the TiVo app URL scheme is simply tivo://

from siriproxy.

fryguy04 avatar fryguy04 commented on August 22, 2024

Actually tried tivo:// and it fails ... some googling uncovered
fb129267530460609:// will launch TiVo IOS App ... Confirmed it works for
me!!!!

I'm currently writing a generic App launcher (mainly to learn more Ruby)
... I'll share when done (lot of the code is based off of @elvisimprsntr
various examples ... Much thanks!

On Sun, Aug 11, 2013 at 2:24 AM, Elvis [email protected] wrote:

look like the TiVo app URL scheme is simply tivo://


Reply to this email directly or view it on GitHubhttps://github.com//issues/557#issuecomment-22453238
.

from siriproxy.

fryguy04 avatar fryguy04 commented on August 22, 2024

Just learning Ruby/SiriProxy this weekend. I wanted to say "Listen to Pandora in Bedroom" then have Siri control my Whole house Audio, configuring Input (Pandora) to Outputs (Bedroom) then launch a control app for the input (Pandora) if applicable ...

After much reading, decided to post this out in case it is useful for anyone else ... Following code will launch an arbitrary Application ... Parameters are passed in at run time, so you can define your Apps to launch in a Hash in config.yml and pass it into your plugin. It requires forcing Siri to browse a page (that I dynamically create) so you'll need to install Apache and have it writable by siriproxy user.

Thanks to:
https://github.com/aecom/SiriProxy-Url
http://applookup.com # fixed broken link
https://github.com/elvisimprsntr/siriproxy-ipcam/blob/master/lib/siriproxy-ipcam.rb
And much thanks to @elvisimprsntr for pointing me this direction!!!

Hope this helps someone!

class OpenLink < SiriObject
    def initialize(ref="")
        super("OpenLink", "com.apple.ace.assistant")
        self.ref = ref
    end
end

def launch(appName, baseUrl, appUrl)

    # Create a URL redirect file to launch App in current host's Apache dir (must be writable by siriproxy user!)
    File.open("/var/www/" + appName + ".html", "w") do |file|
        file.puts "<html><head><title>IU Webmaster redirect</title> <META http-equiv='refresh' content='0;URL=#{appUrl}'> </head> </html>" 
    end

    fullUrl = baseUrl + appName + '.html'
    add_property_to_class(OpenLink, :ref)
    sleep (4)
    view = OpenLink.new(fullUrl.gsub("//",""))
    send_object view
end

# Now to call our function
appName = 'remote'                           # Anything you want to name it
baseUrl= 'http://192.168.0.55/'             # Of your siriproxy server running Apache (siriproxy must be able to write to /var/www)
appUrl = 'remote://'                        # Lookup appUrl here: http://applookup.com # fixed broken link

# This will launch your App
launch(appName, baseUrl, appUrl)

from siriproxy.

elvisimprsntr avatar elvisimprsntr commented on August 22, 2024

Nice work. I suggest you publish your plugin on GitHub https://github.com/plamoni/SiriProxy/wiki/Plugin-Developer-Guide#publishing-your-plugin-for-others-to-install

Or post your method with the other developer. https://github.com/aecom/siriproxy-url

This will make it easier for others to adopt.

from siriproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.