| Plugin Development Extend the functionality of Centrafuse by developing plugins |
 |
July 27th, 2008, 07:06 AM
|
#1 (permalink)
|
|
0.5 Farad - Min. Capacity
Join Date: Apr 2008
Location: Aachen, Germany
Vehicle: '89 VW Bus 1.6 TD Camper
Posts: 8
|
Stopped: New TripComp Plugin development
I've stopped the development of my first plugin, because the idea has been copied and finished before I could do. Any motivation to finish this plugin is gone now. Obvisiously I've been to slow. Next time I'm better not going to announce anything before it is finished. If there will be a next time...
I'm working on my first CF Plugin. Please be patient, because I'm quite new to C#.net programming (I've got some experience with VB.Net and PHP). This is the first shot for the new plugin. Any suggestions are welcome.
Centrafuse TripComputer Plugin
Description: Plugin to show Trip Data
Latest version: 0.1
Requirements: Centrafuse 1.47 - 2.xx, GPS-Mouse
Current Skins: Onyx Day/Night
Current Languages: English
Features:- Showing Data for Locked Satellites, Direction, Time, Actual speed, Daily/Total Distance, Moving average Speed, Total average Speed, Max. Speed, Moving Time, Stopped Time and Total Time
- Ability to Reset via Menu:"Daily Distance", "Total Distance", "Speed Averages", "Moving Time/Stopped Time", "Total Time" and finally "Reset All"
Status: approx. 80% done
Download: n.A.
Cheers
VW_go_go
Last edited by VW_go_go; August 28th, 2008 at 04:50 PM.
|
|
|
|
The Following User Says Thank You to VW_go_go For This Useful Post:
|
|
July 27th, 2008, 07:31 AM
|
#2 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Nov 2004
Location: Munich, Germany
Vehicle: Audi A3
Posts: 1,024
|
Nice little plugin.
You could add support for LogoDashboard, so all the information can be displayed on the main screen as well.
__________________
Skinning to go... VD2
My Plugins: BluetoothControl, Contacts, Scribble, MWConn, Phidgets, Skype, PluginBrowser, LogoDashboard, SkinBrowser
My Tools: CFInjector
My Skins: Street WS, Gizmo, Cyclone, Drive
|
|
|
July 27th, 2008, 07:44 AM
|
#3 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: May 2008
Posts: 852
|
Looks nice - very nice
__________________
My Setup:- Computer:
- 17" laptop, 7" Touchscreen, XM PCR receiver
- Multi-Function Printer, USB audio adapter, 2 7-port powered USB hubs
- Wireless Adapter (Cell), Wireless keyboard w/touchpad, 500gig pocket drive, 32gig thumb drive
- Centrafuse Standard v3.1
- Skins: Ringam, Aqua
- Plugins: Calc, Ultimate Garmin Mobile PC Plugin v1.1 beta, Google Traffic, GPSEngine, Save Location, CFCleanScreen, CFVehicle Maintenance, CFCalendar
|
|
|
July 27th, 2008, 07:45 AM
|
#4 (permalink)
|
|
0.5 Farad - Min. Capacity
Join Date: Apr 2008
Location: Aachen, Germany
Vehicle: '89 VW Bus 1.6 TD Camper
Posts: 8
|
Need Help with updating data labels
Hi Zorro,
I'm already struggling with my project. I can't get the data labels updated, using the timer (1000ms Interval). Do you have any hint for me how to update the data labels from the start of the plugin automatically?
Cheers
VW_go_go
PS:I've used VD2 to create this plugin. Great work Zorro!!!
__________________
Plugin Development: TripComp (80% done)
|
|
|
July 27th, 2008, 09:17 AM
|
#5 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Nov 2004
Location: Munich, Germany
Vehicle: Audi A3
Posts: 1,024
|
What code do you use in your timer event?
To set labels at startup, you have to use the CF_updateText(label, text) method in CF_localskinsetup.
__________________
Skinning to go... VD2
My Plugins: BluetoothControl, Contacts, Scribble, MWConn, Phidgets, Skype, PluginBrowser, LogoDashboard, SkinBrowser
My Tools: CFInjector
My Skins: Street WS, Gizmo, Cyclone, Drive
|
|
|
July 27th, 2008, 02:59 PM
|
#6 (permalink)
|
|
0.5 Farad - Min. Capacity
Join Date: Apr 2008
Location: Aachen, Germany
Vehicle: '89 VW Bus 1.6 TD Camper
Posts: 8
|
Thanks Zorro! I've got it running now.
For filling the Labels with data at startup, I've just put the following Code into the CF_pluginShow() section:
Code:
...
this.CF_updateText("ZPANEL_LBLSATFIX", CF_getGPSInfo(CF_GPSInfo.LOCKEDSATELLITES));
this.CF_updateText("ZPANEL_LBLALTITUDE", CF_getGPSInfo(CF_GPSInfo.ALTITUDE));
this.CF_updateText("ZPANEL_LBLSPEED", CF_getGPSInfo(CF_GPSInfo.SPEED));
this.CF_updateText("ZPANEL_LBLTIME", DateTime.Now.ToShortTimeString());
this.CF_updateText("ZPANEL_LBLDIRECTION", CF_getGPSInfo(CF_GPSInfo.DIRECTION));
...
Then I've placed the Code for the Timer into the CF_localskinsetup() section:
Code:
...
this.m_buttonTimer = new System.Windows.Forms.Timer();
this.m_buttonTimer.Enabled = true;
this.m_buttonTimer.Interval = 1000;
this.m_buttonTimer.Tick += new System.EventHandler(this.m_buttonTimer_Tick);
...
It's nicely updating the values every second now.
Live can be that easy! 
Cheers
VW_go_go
__________________
Plugin Development: TripComp (80% done)
Last edited by VW_go_go; July 27th, 2008 at 03:03 PM.
|
|
|
July 27th, 2008, 03:07 PM
|
#7 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Aug 2007
Location: Slovenia
Vehicle: Fiat Stilo 1.9JTD 163HP
Posts: 1,957
|
Look good start, I hope you will do Aura skin too, because lot of users use aura skin...
|
|
|
August 28th, 2008, 04:38 PM
|
#8 (permalink)
|
|
0.5 Farad - Min. Capacity
Join Date: Apr 2008
Location: Aachen, Germany
Vehicle: '89 VW Bus 1.6 TD Camper
Posts: 8
|
Stopped development -> see first post!
__________________
Plugin Development: TripComp (80% done)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|