
ok behind this weird subject I'm just going to give you in no particular order some tips and basic rules to help you to create your custom template
A template:template at least is a simple json format file. a text description with a list of the object properties.
A template + image(s):a template is usually associated with image(s)
the image object in VDASH-EMU doesn't contains the image data itself but a reference to the file path relative to "vdash_template" directory of your phone/tablet. This is very important when you share a template with images to explain in the installation where to put your images otherwise VDASH-EMU will fail to find the image when your template will be loaded.
the max image size must not exceed 940px width and 540 height
if you intend to create a dial gauge image I recommend to use a 540 x 540 size, PNG format 24bit, with transparency
zip archive and installation of your template:a template alone can be shared as is but if you add an image and/or background image it's better to create a zip archive with all the elements in the same folder
here is an example, let say you create a Bugatti Veyron dashboard:
inside your vdash_template directory create a folder named:
Bugatti_Veyroncopy all images and background image inside the
Bugatti_Veyron directory and start building your template, export the template when it is finished (you will find the exported template and its preview in
vdash_template/exported/ directory)
you can create a zip archive which contains the
Bugatti_Veyron folder with all your images, template and its preview inside the folder
the installation for the user is pretty simple,
extracting the zip archive
and copy the
Bugatti_Veyron directory to its
vdash_template directory
et voila!
The recommended MAX VALUE are:Fuel Gauge(litters): capacity of tank is provided by the API you do not have to set a max value
RPM Gauge (rpm): max engine rpm is provided by the API you do not have to set the max value
Temp Gauge (celcius): default is 139
Volt Gauge(volt): default 20
Speed Gauge (kmh): depends the Speed Dial image used (default 360)
Turbo (psi or bar): default 30psi or 2bar
DO NOT USE SPACE in your path and in the name of your attachment
Image anti-aliasing:The image object do his best to display the image using an anti-aliasing and other filter BUT you have to provide a good quality image,
I suggest to use Photoshop and export the the image with the integrated Web image export menu and choose the PNG24 format
Optionally, add to your image a 2 pixels black edge if the background is transparent like a DIAL image
REMINDER about images path:Check the dependency of your images. The installation folder of your template MUST BE THE SAME as the initial directory used when you exported the template. So if you want to install your template pkg in
vdash_template/My_Super_Template/
then be sure all images on your template have been imported from this directory.
but don't worry if it is different for whatever reason, you just have open the exported json file with Notepad++ text editor and replace the old path with the new.
for example if you edit the json and found:
vdash_template/pictures/my_logo.pngthen just change to the correct path:
vdash_template/My_Super_Template/my_logo.pngBeware all images
must not exceed 960 x 540 pixels, big images take a lot of memory and slowdown the EMU. check your images and resize them if they exceed the limit.