fiquett / siriproxy-vipercontrol Goto Github PK
View Code? Open in Web Editor NEWViper SmartStart control plugin for SiriProxy
Viper SmartStart control plugin for SiriProxy
I'm trying to run the PHP script from the CLI. The vehicle isn't starting and I'm getting some PHP errors, along with a "Command Completed Successfully". Here's what I get:
scott@empoknor:/var/www/public$ php viper_control.php
Running from CLI
Requesting Session ID...
Session ID:
Getting Vechicle List...
1 vehicle(s) available.
Array
(
[0] => locate
[1] => enable_movement_alert
[2] => disable_movement_alert
[3] => set_geozone
[4] => set_speed_alert
[5] => remote
[6] => arm
[7] => disarm
[8] => trunk
[9] => panic
[10] => enable_zone1_entry_alert
[11] => disable_zone1_entry_alert
[12] => enable_zone1_exit_alert
[13] => disable_zone1_exit_alert
[14] => enable_battery_alert
[15] => disable_battery_alert
[16] => fastest_speed
[17] => set_geozone_rect
[18] => set_geozone1_circle
[19] => set_geozone2_circle
[20] => set_geozone3_circle
[21] => enable_zone2_entry_alert
[22] => disable_zone2_entry_alert
[23] => enable_zone2_exit_alert
[24] => disable_zone2_exit_alert
[25] => enable_zone3_entry_alert
[26] => disable_zone3_entry_alert
[27] => enable_zone3_exit_alert
[28] => disable_zone3_exit_alert
[29] => direct_io_lock_400
[30] => direct_io_lock_750
[31] => direct_io_lock_3500
[32] => direct_io_unlock_400
[33] => direct_io_unlock_750
[34] => direct_io_unlock_3500
[35] => direct_io_remote_750
[36] => direct_io_trunk_750_with_unlock
[37] => direct_io_trunk_750
[38] => direct_io_lock_400_2pulse
[39] => direct_io_lock_750_2pulse
[40] => direct_io_lock_3500_2pulse
[41] => direct_io_unlock_400_2pulse
[42] => direct_io_unlock_750_2pulse
[43] => direct_io_unlock_3500_2pulse
)
Enter Command: 5
PHP Notice: Trying to get property of non-object in /var/www/public/viper_control.php on line 37
PHP Notice: Trying to get property of non-object in /var/www/public/viper_control.php on line 37
PHP Notice: Trying to get property of non-object in /var/www/public/viper_control.php on line 37
Command received successfully.
scott@empoknor:/var/www/public$
When I look at viper_control.php, line 37 is "if($result->Return->ResponseSummary->StatusCode == 0){"
Ideas?
Great project. Would love to help out in some way, although my experience with Ruby is limited.
Scott
Everything still works, but when I start my car, I get no response. I still get a response with all other commands. Is it the same for you?
I have forked and updated with location. Now you can say:
Locate....Car (or)
Dude, Where's...Car
and it will connect and show a map of your car's location and where you are in relation. If you like it you can merge or pull or whatever it is on Github. Let me know what you think :) I love it!
-Rob
When i say any of the commands it will stay at One moment while I connect to your vehicle.... my car does start but siri doesnt tell me that it started. Any help would be great. thanks for such a great plug in.
[Info - Plugin Manager] Matches (?i-mx:lock.*Car)
[Info - Plugin Manager] Applicable states:
[Info - Plugin Manager] Current state:
[Info - Plugin Manager] Matches, executing block
[Info - Plugin Manager] Say: One moment while I connect to your vehicle...
Create server for iPhone connection
start conn #<SiriProxy::Connection::Iphone:0xab99100 @Signature=5, @processed_headers=false, @output_buffer="", @input_buffer="", @unzipped_input="", @unzipped_output="", @unzip_stream=#Zlib::Inflate:0xab9904c, @zip_stream=#Zlib::Deflate:0xab99038, @consumed_ace=false, @name="iPhone", @ssled=false>
[Info - Plugin Manager] Plugins laoded: [#<SiriProxy::Plugin::Example:0xab98b24 @manager=#<SiriProxy::PluginManager:0xab98e58 @plugins=[...]>>, #<SiriProxy::Plugin::SiriIMDB:0xab987f0 @manager=#<SiriProxy::PluginManager:0xab98e58 @plugins=[...]>>, #<SiriProxy::Plugin::ViperControl:0xab984d0 @url="http://192.168.0.12/~dhernandez1110/viper_control.php", @manager=#<SiriProxy::PluginManager:0xab98e58 @plugins=[...]>>]
Because of the wildcard speech recognition on how siri proxy works the unlock command should be moved to be first before the lock command as shown.
#capture ViperControl status
listen_for(/Car.*start/i) { send_command_to_car("remote") }
listen_for(/start.*Car/i) { send_command_to_car("remote") }
listen_for(/Car.*unlock/i) { send_command_to_car("disarm") }
listen_for(/unlock.*Car/i) { send_command_to_car("disarm") }
listen_for(/Car.*lock/i) { send_command_to_car("arm") }
listen_for(/lock.*Car/i) { send_command_to_car("arm") }
listen_for(/Car.*trunk/i) { send_command_to_car("trunk") }
listen_for(/trunk.*Car/i) { send_command_to_car("trunk") }
listen_for(/Car.*panic/i) { send_command_to_car("panic") }
listen_for(/panic.*Car/i) { send_command_to_car("panic") }
Thanks,
Scott
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.