fiquett/SiriProxy-ViperControl — Issue #3: Vehicle isn't starting
Author: scojo
Created: 2012-01-07 19:35:02+00:00
State: open

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: 6
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