A node proxy for siri on IOS 9
Install
npm install eva-siri
TODO
- Make everything readable 😃
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 serverdns.recordCreate('guzzoni.apple.com', 1, dns.ipToData('192.168.1.1'), 0)dns.bind();