Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > Road Runner > RR Plugins


Reply
 
Share Thread Tools Display Modes
Old 08-30-2008, 07:56 PM   #1
One Sharp Cheddar
 
ThunderStick's Avatar
 
Join Date: Aug 2006
Location: West Allis, WI
Posts: 1,558
ThunderStick is on a distinguished road
Speed Limit / Speed Zone Plugin RELEASED

THIS IS NOT HARD TO SETUP, it is a little difficult to skin properly.
An example skin from my New Age 2 Garmin Style skin is included now 9/15 and should help you with your setup.

This is a script I wrote so that I could incorporate speed limit reminders in my car.
This is a pretty powerful tool if used to it's potential.

When started it checks if Road Runner is running, if not it will display a message box with an error

If RR is not running the message box times out after 5 seconds and the script closes.

IF RR is running it checks to see if you set the speed limit setpoint correctly

If you didnt it will make a voice announcement through road runner as long as you enabled voices in RRCONFIG or

voice=true was added to your RR.INI

=============Speed Limits-------->
If you set the speed limit correctly and the voices are enabled then It will announce the speed limit and continue to

monitor your speed.

If you exceed the speed limit it will run RR command "SPEEDLIMIT" and announce the set speed limit and your current speed

along with 1 of 4 voice messages. As long as they are set in the skin.ini according to the instructions. If these

messages are not set correctly it will not announce any additional message.
It will announce specific messages according to how much over the speed limit you are.
The First additional voice message is announce between 15 and 24 MPH over speed limit
The Second additional voice message is announce between 25 and 34 MPH over speed limit
The Third additional voice message is announce between 35 and 44 MPH over speed limit
The Fourth additional voice message is announce between 45 MPH and up over speed limit


It will continue to announce your speed, speed limit and messages until your speed drops below the speed limit. It will

check your speed every .200 seconds


Once your speed drops below the speed limit setpoint it will run RR command "SPEEDLIMITOFF" and say "Thank you for slowing down"

========SPEED ZONES--------->
Description
Speed zones are up to 10 different points of interest you can set that you want specific speed limit settings and reminders for. For instance a school zone.
To set them, press the zone you want to set (zone 1), the a menu will pop up with options of POS (position) ZONE (Type of speed zone) and Speed. Pressing the position button will set your GPS coordinates. Pressing the Zone button will Present an OSK and allow you to name this zone. Pressing speed will present the Numbe osk and let you type in the speed limit.

The next time you come with 50 feet of your speed zone it will warn you that you are approaching that zone, tell you the speed limit and if you are going over the speed limit it will let you know that as well. Once exiting the speed zone or after you are out of the 50 ft perimiter it will return your speed limit to your previous setpoint.
Because not all GPS recievers are as accurate as they could be, Your coordinates according to your reciever may change slightly which is the reason for the 50 foot perimeter.
I have been using this now for about 2 weeks and it works great. It has warned me everytime I entered any of the set speed zones.
I hope someone can find this usefull.

Once road runner is closed or exited from, the script stops and closes it self.

POTENTIAL POSSIBILITIES
This plugin executes a command in RR any time you enter you speed zone. So if you set your home zone correctly, when you approach your home you can have it execute a command to update any internet releated data VIA wifi. This is what I have planned in my setup. I will get home, the Speed zones trigger the command then my computer will go through and update the weather, movie times, gas prices and anything else I can think of via the internet. You could also have it trigger a command on a remote computer attached to your WIFI network keeping a log when you leave and return home or a warning that the car has left the home zone.
You could also use your speed zones to trigger connections to WIFI networks available around your area. Instead of speed zones, you could make them WIFI zones. It would require some ingenuity on your part, but if you really would like to do that, you will.
So now you get the idea of the speed zone plug in. If you want something to happen when you approach your speed zone, now it can.

12/18/2008 New Version included with my New Age Garmin Skin
-20 Speed zones (was 10)
-Detects your speed zone according to the direction you are driving
-Better detection of coordinates
-Fixed bug with not reporting current speed zone speed limit and current speed zone to Road Runner
DOWNLOAD NAV29.ZIP from my new age skin thread

V4.0
RELEASED On it's own 9/15/2008
Fully Tested
Constantly Monitors your speed and GPS coordinates
You can now set speed zones according to your GPS coordinates
Will notify you and change the speed limit when you pass through your speed zone
Voice Notifications of over speed limits and entering speed zones
2 Sliders that indicate that it is monitoring
Works Great
Much less resource hungry

v3.0

Lots of additional functionality and much better stability. Does not need to be closed and restarted to update speed limit like it did in V2.5

V2.5
Better handeling of information, included a close speedlimit command so that you can either stop it or stop and restart it with a different speed.

v2.o
Updated the script tremendously. It used to check your speed limit against the setpoint and incriments of 5, now anything over the speed limit will execute RR command "SPEEDLIMIT"



(sorry for all the quick updates, I'm finding out alot of stuff as I keep coding)
Attached Files
File Type: zip SpeedLimitv4.zip (1.84 MB, 213 views)

Last edited by ThunderStick; 12-18-2008 at 07:24 PM.
ThunderStick is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 08-31-2008, 03:03 AM   #2
One Sharp Cheddar
 
ThunderStick's Avatar
 
Join Date: Aug 2006
Location: West Allis, WI
Posts: 1,558
ThunderStick is on a distinguished road
Version 2 uploaded in to first post... Much better speed detection
ThunderStick is offline   Reply With Quote
Old 08-31-2008, 10:17 AM   #3
One Sharp Cheddar
 
ThunderStick's Avatar
 
Join Date: Aug 2006
Location: West Allis, WI
Posts: 1,558
ThunderStick is on a distinguished road
v2.5 hopefully a little better functionality
ThunderStick is offline   Reply With Quote
Old 08-31-2008, 01:30 PM   #4
One Sharp Cheddar
 
ThunderStick's Avatar
 
Join Date: Aug 2006
Location: West Allis, WI
Posts: 1,558
ThunderStick is on a distinguished road
Version 3, lots of quick updates
This is probably pretty close to final. Not too sure what else I would want it to do.
ThunderStick is offline   Reply With Quote
Old 08-31-2008, 03:16 PM   #5
x10
Constant Bitrate
 
x10's Avatar
 
Join Date: Mar 2004
Location: Pittsburgh, PA
Posts: 152
x10 is on a distinguished road
version 3 already? at this rate we'll be on version 15 by Friday...

nice job...i'll try this out later...

thanks
x10 is offline   Reply With Quote
Old 08-31-2008, 05:46 PM   #6
One Sharp Cheddar
 
ThunderStick's Avatar
 
Join Date: Aug 2006
Location: West Allis, WI
Posts: 1,558
ThunderStick is on a distinguished road
This is more than likely the final.. I have been crackin' at this shtuff all day.
ThunderStick is offline   Reply With Quote
Old 09-01-2008, 05:26 PM   #7
One Sharp Cheddar
 
ThunderStick's Avatar
 
Join Date: Aug 2006
Location: West Allis, WI
Posts: 1,558
ThunderStick is on a distinguished road
OK gave it test run in the car and all seems to be working as expected accept for the 4 additional speed warning messages. I will continue to work on this and work out the bug. For now it is totally functional and works pretty good as is.
ThunderStick is offline   Reply With Quote
Old 09-01-2008, 06:21 PM   #8
Raw Wave
 
treetop777's Avatar
 
Join Date: Sep 2006
Location: War-Town, GA.
Posts: 1,915
treetop777 is an unknown quantity at this point
WoW! This could prove very usefull, THANKS!

As in you Garmin script, why don't you eliminate it checking if RR is running..

(unless it can be used outside RR)
treetop777 is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 09-01-2008, 10:56 PM   #9
One Sharp Cheddar
 
ThunderStick's Avatar
 
Join Date: Aug 2006
Location: West Allis, WI
Posts: 1,558
ThunderStick is on a distinguished road
Quote: Originally Posted by treetop777 View Post
WoW! This could prove very usefull, THANKS!

As in you Garmin script, why don't you eliminate it checking if RR is running..

(unless it can be used outside RR)

It needs RR in order to work, with out RR it can not get the speed info it needs from GPS. It also send text to RR along with other commands. It also has to check for RR because it closes automatically when RR is closed to prevent program errors.

Having it do this dosent really affect it, it doesnt have to react as fast as the OSK does. Reaction time doesnt really matter. It is just a peice of candy added for RR, not really something that demands a necessity for function.
ThunderStick is offline   Reply With Quote
Old 09-02-2008, 05:14 PM   #10
Raw Wave
 
treetop777's Avatar
 
Join Date: Sep 2006
Location: War-Town, GA.
Posts: 1,915
treetop777 is an unknown quantity at this point
Can this be made to read and compare coordinates? Let's say i input the coordinates (start to end) of one of the many school zones in my area (maybe in an .ini or something), could it then alert me of the speed limit when i enter the school zone base on the current GPS coordinates acquired from rr?

That would have saved me from the Darn ticket i got the other day - LOL!

Just a thought.
treetop777 is offline   Reply With Quote
Old 09-02-2008, 05:36 PM   #11
One Sharp Cheddar
 
ThunderStick's Avatar
 
Join Date: Aug 2006
Location: West Allis, WI
Posts: 1,558
ThunderStick is on a distinguished road
I was actually thinking of this earlier. it would have to work like a grid. It could use your lat and long from RR, Then compare to your setpoint of your Lat and Long. It would have to work on a plus or minus type system. In other words if where your school zone start at Lat = 12 then I could plus or minus 1 So if your setpoint lat = 12 and your current lat => 10 and <= 14 then it could warn you or automatically set the speed limit.
This is possible but will probably take some time to develope something stable enough to call it useable. I will get crackin' on this though because I myself would like to see something like this.
ThunderStick is offline   Reply With Quote
Old 09-02-2008, 06:05 PM   #12
Raw Wave
 
treetop777's Avatar
 
Join Date: Sep 2006
Location: War-Town, GA.
Posts: 1,915
treetop777 is an unknown quantity at this point
Ah Yes, this is something i would have running all the time. I was thinking tho' it would have to be capable of reading the whole coordinates number (way into the decimals) because school zones are 1/10 mi maybe; looking at the coordinate read-out from rr, the first 2-3 decimals don't change a lot and cover a large area. I was thinking to be able to set a "start" coord. and a "end" coord. up to the last decimal so it be real precise. But wait! what if you enter the zone from the other end? the "end" coord. would be the "start" coord. - then what?

And to further peek your interest and get crative juices flowing, check out the speed limit signs:
Attached Images
   
Attached Files
File Type: rar Speed Limit Signs.rar (38.5 KB, 31 views)
treetop777 is offline   Reply With Quote
Old 09-02-2008, 08:07 PM   #13
One Sharp Cheddar
 
ThunderStick's Avatar
 
Join Date: Aug 2006
Location: West Allis, WI
Posts: 1,558
ThunderStick is on a distinguished road
OK wow 3 hours in to this speed zone thing and I am starting to see a glimmer of hope.
What you will be able to do is,
(1) set the zone according to your current location and if you pass through it with in 10 feet in any direction of it you will be notified of that speed zone
(2) Set the speed zone type (school, construction or what ever)
(3) Speed zone speed limit

When you pass through the speed zone it RR will call out an audible alert as well as trigger an indicator

My current plan will only allow for up to 10 zones but may be more in the future.

Last edited by ThunderStick; 09-02-2008 at 08:14 PM.
ThunderStick is offline   Reply With Quote
Old 09-02-2008, 08:12 PM   #14
One Sharp Cheddar
 
ThunderStick's Avatar
 
Join Date: Aug 2006
Location: West Allis, WI
Posts: 1,558
ThunderStick is on a distinguished road
In my skin, I set speed limit signs as well.
What I did is had an indicator that will display an image when over speed limt and a label on top of that image that displays the current speed limit setpoint. That way I only needed one image. It works great. There is a lot of different ideas I incorporated in to my skin speed limits is just the begining....
ThunderStick is offline   Reply With Quote
Old 09-02-2008, 08:59 PM   #15
Raw Wave
 
treetop777's Avatar
 
Join Date: Sep 2006
Location: War-Town, GA.
Posts: 1,915
treetop777 is an unknown quantity at this point
FANTASTIC!
treetop777 is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
australian speed limit reduced from 60 to 50km/h PaulzY Off Topic 36 07-05-2006 11:10 AM
Got caught by a money generating speed cam... Chris31 Off Topic 21 10-05-2005 07:31 PM
Feature request: speed camera notifications based on current speed surfatwork Map Monkey 2 08-31-2005 07:01 PM
Speed Limit tolisn FreeDrive 6 08-17-2005 07:11 AM



All times are GMT -5. The time now is 10:35 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics