Sponsored links

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


Reply
 
Share Thread Tools Display Modes
Old 12-26-2006, 06:09 PM   #1
Variable Bitrate
 
Join Date: Sep 2005
Posts: 249
bembowe is on a distinguished road
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 01:46 PM.
bembowe is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 12-26-2006, 06:31 PM   #2
_
 
Join Date: Mar 2004
Location: Little Elm, Texas
Posts: 13,481
RedGTiVR6 has a spectacular aura aboutRedGTiVR6 has a spectacular aura aboutRedGTiVR6 has a spectacular aura about
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

Please post on the forums! Chances are, someone else has or will have the same questions as you!
RedGTiVR6 is offline   Reply With Quote
Old 12-26-2006, 07:00 PM   #3
Raw Wave
 
lostreception's Avatar
 
Join Date: Sep 2004
Location: NY
Posts: 1,806
lostreception has much to be proud oflostreception has much to be proud oflostreception has much to be proud oflostreception has much to be proud oflostreception has much to be proud oflostreception has much to be proud oflostreception has much to be proud oflostreception has much to be proud oflostreception has much to be proud of
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, 08:10 PM   #4
Variable Bitrate
 
Join Date: Sep 2005
Posts: 249
bembowe is on a distinguished road
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, 09:27 AM   #5
Maximum Bitrate
 
Meatballman's Avatar
 
Join Date: Jul 1999
Location: Hartsville, SC
Posts: 747
Meatballman
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, 09:33 AM   #6
_
 
Join Date: Mar 2004
Location: Little Elm, Texas
Posts: 13,481
RedGTiVR6 has a spectacular aura aboutRedGTiVR6 has a spectacular aura aboutRedGTiVR6 has a spectacular aura about
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

Please post on the forums! Chances are, someone else has or will have the same questions as you!
RedGTiVR6 is offline   Reply With Quote
Old 12-27-2006, 10:36 AM   #7
Maximum Bitrate
 
Meatballman's Avatar
 
Join Date: Jul 1999
Location: Hartsville, SC
Posts: 747
Meatballman
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, 11:57 PM   #8
Maximum Bitrate
 
Meatballman's Avatar
 
Join Date: Jul 1999
Location: Hartsville, SC
Posts: 747
Meatballman
It wants to give me gas prices in Kansas City, regardless of where I am.
Meatballman is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 12-29-2006, 12:35 AM   #9
Raw Wave
 
god_of_cpu's Avatar
 
Join Date: Jan 2004
Location: SilverSpring Maryland
Posts: 2,960
god_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond repute
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
The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.
god_of_cpu is offline   Reply With Quote
Old 12-29-2006, 12:47 AM   #10
Maximum Bitrate
 
Meatballman's Avatar
 
Join Date: Jul 1999
Location: Hartsville, SC
Posts: 747
Meatballman
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-29-2006 at 12:56 AM.
Meatballman is offline   Reply With Quote
Old 12-29-2006, 12:48 AM   #11
FLAC
 
Join Date: Aug 1999
Location: Washington D.C.
Posts: 1,543
Zip-Lock is on a distinguished road
What about those of use who drive diesels?
Zip-Lock is offline   Reply With Quote
Old 12-29-2006, 01:23 AM   #12
Raw Wave
 
god_of_cpu's Avatar
 
Join Date: Jan 2004
Location: SilverSpring Maryland
Posts: 2,960
god_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond repute
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
The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.
god_of_cpu is offline   Reply With Quote
Old 12-29-2006, 01:45 AM   #13
Maximum Bitrate
 
Meatballman's Avatar
 
Join Date: Jul 1999
Location: Hartsville, SC
Posts: 747
Meatballman
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, 12:32 PM   #14
Low Bitrate
 
Join Date: Jul 2005
Posts: 109
bash1979 is on a distinguished road
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, 08:43 PM   #15
Variable Bitrate
 
Join Date: Sep 2005
Posts: 249
bembowe is on a distinguished road
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
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




All times are GMT -5. The time now is 01:27 PM.


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