The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > StreetDeck > DigitalMods (Scripts / API)

Reply
 
Thread Tools Display Modes
Old 12-26-2006, 05:09 PM   #1
Variable Bitrate
bembowe's CarPC Specs
 
Join Date: Sep 2005
Posts: 236
My Photos: (0)
Gas Price DigitalMod

I wanted to get feedback on the Gas Price digital mod, i've been working on. The functionality is similar to the one found in RoadRunner, but made easy to use.

Gas Price DigitalMod displays the gas prices of the 8 closest gas station from your current zipcode. The digiMod indicates and annouces the lowest price gas station. it also allow you to navigate to any of the displayed gas stations by clicking on the gas prices.
The gas price information is retrieve from an online site and the website information is cached until the next search is made.
Internet access is required to find the newest price but not to access the module. The zipcode is computed using streetdeck's navigation api

Here is a display of the module.



Installation

Unzip the Gas Price.zip attached and install the GPS Gas Price.sdz
before running, make sure to register the two dll in the script project

ASPtear.dll
GasPriceDLL.dll

run the following command from start->Run for those unfamiliar with registering dlls

regsvr32 "scriptprojectPath\GasPriceDLL.dll"
regsvr32 "scriptprojectPath\ASPtear.dll"

There are still some minor details i need to fix before officially releasing it. so I would like to know what you like/dislike about it. I also need icon's for the majority of gas station, if any of you have it please email them to me at bembowe@gmail.com
Another thing i cant get to work is the ability to set the focus on a button. I would like to automatically set the focus to the button of the lowest price gas station.

update

Here is the new version of the mod
Can be downloaded from the wiki page. check page 2 for link





Last edited by bembowe : 01-15-2007 at 12:46 PM.
bembowe is offline   Reply With Quote
Sponsored Links
Old 12-26-2006, 05:31 PM   #2
_
RedGTiVR6's CarPC Specs
 
Join Date: Mar 2004
Location: Little Elm, Texas
Vehicle: VW GTi VR6 / Ducati 900 SS & S4R / Dakota R/T Supercharged
Posts: 13,221
My Photos: (73)
very nice!

I will download this and instal it in the car. I'll give it a whirl over the next few days!

kudos on the hard work!
__________________
Jan Bennett
FS: VW MKIV Bezel for 8" Lilliput - 95% Finished

If you're needing someone to tell you what to buy, how to install it, or how to make it sound good, I charge a consulting fee.
RedGTiVR6 is offline   Reply With Quote
Old 12-26-2006, 06:00 PM   #3
Raw Wave
lostreception's CarPC Specs
 
lostreception's Avatar
 
Join Date: Sep 2004
Location: NY
Vehicle: Chevy Van G20 and '06 Scion Xb
Posts: 1,802
My Photos: (1)
glad the asptear tip worked out for you.. also try brandsoftheworld.com for gas icons
__________________
.______
| '_ |__\___
[(o)|___(o)] XB
._________
| I__I I_I|_\__I
[(o)______(o)]b VanPimpin'

LostReceptions Apps D/L Here

GPSGasoline- Rewriting

Draw- SkribblePad for Touchscreens

iGQwerty-iG3.0 Qwerty Keyboard

CarPCNetwork
lostreception is offline   Reply With Quote
Old 12-26-2006, 07:10 PM   #4
Variable Bitrate
bembowe's CarPC Specs
 
Join Date: Sep 2005
Posts: 236
My Photos: (0)
Quote: Originally Posted by lostreception View Post
glad the asptear tip worked out for you.. also try brandsoftheworld.com for gas icons

Thanks for the tip. That made coding this very easy. i'll also check out that site of the icons
bembowe is offline   Reply With Quote
Old 12-27-2006, 08:27 AM   #5
Maximum Bitrate
Meatballman's CarPC Specs
 
Meatballman's Avatar
 
Join Date: Jul 1999
Location: Hartsville, SC
Posts: 747
My Photos: (0)
Very cool. If I can get a bluetooth adapter before the weekend, I'll try it out on my weeklong trip next week.
Meatballman is offline   Reply With Quote
Old 12-27-2006, 08:33 AM   #6
_
RedGTiVR6's CarPC Specs
 
Join Date: Mar 2004
Location: Little Elm, Texas
Vehicle: VW GTi VR6 / Ducati 900 SS & S4R / Dakota R/T Supercharged
Posts: 13,221
My Photos: (73)
why do you need bluetooth? to get internet from your phone to your CarPC?
__________________
Jan Bennett
FS: VW MKIV Bezel for 8" Lilliput - 95% Finished

If you're needing someone to tell you what to buy, how to install it, or how to make it sound good, I charge a consulting fee.
RedGTiVR6 is offline   Reply With Quote
Old 12-27-2006, 09:36 AM   #7
Maximum Bitrate
Meatballman's CarPC Specs
 
Meatballman's Avatar
 
Join Date: Jul 1999
Location: Hartsville, SC
Posts: 747
My Photos: (0)
Exactly. I have a Treo650 paired with a Dell Latitude D800 without built-in bluetooth. I suppose I could use the USB cable that came with the phone, but it would suck to have to unplug it every time I exit the vehicle.
Meatballman is offline   Reply With Quote
Old 12-28-2006, 10:57 PM   #8
Maximum Bitrate
Meatballman's CarPC Specs
 
Meatballman's Avatar
 
Join Date: Jul 1999
Location: Hartsville, SC
Posts: 747
My Photos: (0)
It wants to give me gas prices in Kansas City, regardless of where I am.
Meatballman is offline   Reply With Quote
Old 12-28-2006, 11:35 PM   #9
Raw Wave
 
god_of_cpu's Avatar
 
Join Date: Jan 2004
Location: SilverSpring Maryland
Vehicle: 2003/Infiniti/G35 Sport Coupe
Posts: 2,951
My Photos: (0)
Looks great!

You should be able to set the focus to any panel with just the SetFocus method of any control.

If you make a sub folder called COM i.e. <Script GUID Folder>\COM and place all your .dll files in it, StreetDeck will automatically call regsvr32 or regasm (for .Net dlls) when extracting the SDZ file.
__________________
StreetDeck.com Developer (I am Chuck)
Get StreetDeck at http://www.streetdeck.com
god_of_cpu is offline   Reply With Quote
Old 12-28-2006, 11:47 PM   #10
Maximum Bitrate
Meatballman's CarPC Specs
 
Meatballman's Avatar
 
Join Date: Jul 1999
Location: Hartsville, SC
Posts: 747
My Photos: (0)
BUG

Upon further investigation, it appears that whatever Streetdeck is using to get zip codes just sucks. The Navigation module isn't returning my zip code, which is 29550.

Is this database user editable?

Last edited by Meatballman : 12-28-2006 at 11:56 PM.
Meatballman is offline   Reply With Quote
Sponsored Links
Old 12-28-2006, 11:48 PM   #11
FLAC
 
Join Date: Aug 1999
Location: Washington D.C.
Vehicle: 2004 Jetta GLS TDI (biodiesel)
Posts: 1,580
My Photos: (0)
What about those of use who drive diesels?
Zip-Lock is offline   Reply With Quote
Old 12-29-2006, 12:23 AM   #12
Raw Wave
 
god_of_cpu's Avatar
 
Join Date: Jan 2004
Location: SilverSpring Maryland
Vehicle: 2003/Infiniti/G35 Sport Coupe
Posts: 2,951
My Photos: (0)
Quote: Originally Posted by Meatballman View Post
Upon further investigation, it appears that whatever Streetdeck is using to get zip codes just sucks. The Navigation module isn't returning my zip code, which is 29550.

Is this database user editable?

It uses mappoint directly for the database, but it can only find a zipcode if it can get a complete address for your location. It should always return a zip code after you move around for a while, but it might not get one until it finds its first location.

The weather digitalmod uses the zip code. During debugging the zipcode doesn't always get returned, but in real world testing with a real GPS hooked up, I've never had it fail, but its possible it can. Does the weather DigitalMod work for you?
__________________
StreetDeck.com Developer (I am Chuck)
Get StreetDeck at http://www.streetdeck.com
god_of_cpu is offline   Reply With Quote
Old 12-29-2006, 12:45 AM   #13
Maximum Bitrate
Meatballman's CarPC Specs
 
Meatballman's Avatar
 
Join Date: Jul 1999
Location: Hartsville, SC
Posts: 747
My Photos: (0)
Quote:
Does the weather DigitalMod work for you?

Not from this location, but I'm sitting in an office with the GPS in a window sill. Like you said, it will probably work in a real world situation where I'm moving around.

Thanks,

John
Meatballman is offline   Reply With Quote
Old 12-29-2006, 11:32 AM   #14
Low Bitrate
bash1979's CarPC Specs
 
Join Date: Jul 2005
Posts: 105
My Photos: (0)
Anyone from Canada try this yet? Was this coded to accept postal codes (i.e. alpha-numeric) as well?
bash1979 is offline   Reply With Quote
Old 12-31-2006, 07:43 PM   #15
Variable Bitrate
bembowe's CarPC Specs
 
Join Date: Sep 2005
Posts: 236
My Photos: (0)
Quote: Originally Posted by god_of_cpu View Post
Looks great!

You should be able to set the focus to any panel with just the SetFocus method of any control.

If you make a sub folder called COM i.e. <Script GUID Folder>\COM and place all your .dll files in it, StreetDeck will automatically call regsvr32 or regasm (for .Net dlls) when extracting the SDZ file.

Cool, i'll create the COM folder for the dll's.
I did see the SetFocus method, but i've had some problems using it. The latest error i have when using it is "Object required".
Would you happen to have an example of its usage?

Thanks
bembowe is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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


All times are GMT -5. The time now is 04:05 PM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics