1.0.0 • Published 8 years ago

eva-siri v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

A node proxy for siri on IOS 9

Install

npm install eva-siri

TODO

  • Make everything readable :smiley:

Example

This REQUIRES a dns intercept of 'guzzoni.apple.com' to this server This is a quick script to intercept 'Test siri proxy'

var siri = require("eva-siri");

siri.init();

siri.on("command", function (refId, command) {
    var write, speak, 
        active = false;
    switch (command.toLowerCase().trim()) {
        case "Test Siri proxy".toLowerCase().trim():
            active = true;
            write = "All is well!";
            speak = "All systems functioning";
            break;
    }
    if (active) {
        siri.commandInterseed(refId, write, speak);
    }
});

A simple dns redirect script

npm install eva-dns
var dns = require('eva-dns');
// Where 192.168.1.1 is the ip of the siri server
dns.recordCreate('guzzoni.apple.com', 1, dns.ipToData('192.168.1.1'), 0)
dns.bind();