Difference between revisions of "Infotainmet System - Media Configuration"

(Config File)
(Config File)
Line 30: Line 30:
 
<syntaxhighlight lang="javascript" style="padding:20px; border:1px solid #CCC; margin:2em;">
 
<syntaxhighlight lang="javascript" style="padding:20px; border:1px solid #CCC; margin:2em;">
 
{
 
{
            "message_date" : "32 min ago",
+
    "message_date" : "32 min ago",
            "contact_name" : "Omar",
+
    "contact_name" : "Omar",
            "contact_number" : "3193354797",
+
    "contact_number" : "3193354797",
            "message" : "Hey there! Are you coming out tonight? Shoot me a message."
+
    "message" : "Hey there! Are you coming out tonight? Shoot me a message."
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
  
More here..
+
Each entry has four properties: message_date, contact_name, contact_number, and message. All properties should be encased in double quotes (").
 +
 
 +
'''message_date''' is a string that shows the age of the given entry. It can be something relative ("32 min ago"), a date ("Oct 7"), or any other string.
 +
 
 +
'''contact_name''' is a string that will show up as the message sender's name.
 +
 
 +
'''contact_number''' is currently not used.
 +
 
 +
'''message''' defines the message contents.
  
 
----
 
----
  
 
==Streaming / Album==
 
==Streaming / Album==

Revision as of 17:54, 1 August 2022

Infotainment configuration files pertaining to the list of media/messages/contacts available are parsed once per system start--any configuration changes made while the system is running will not be available until the infotainment server is stopped and restarted.

Phone

Config File

Phone app configuration is located in phone_config.csv, located in the main infotainment install directory.

Entries in this file are split into two sections, each containing a commented line (lines beginning with a double forward slash, ie //) declaring the entries following it:

// CALL_HISTORY
// CONTACTS

These two lines are required, and should not be removed. The lines following these two comment headers define the content entries for their given section, each line containing one entry.

For history, a simple "time since the call" notation is available (although not required) by using a comma, separating the entry name from the time.

There are a few main rules of editing/adding an entry:

  • All values are treated as strings.
  • Commas cannot be used as part of a contact name or "time since the call" value.
  • Entries are stored in their natural "top to bottom" order, as they would appear in the infotainment system app. They are not sorted in any way other than the order that they are entered.

Messaging

Config File

Message app configuration is located in messages_config.json, located in the main infotainment install directory.

The property "messaging_history" contains a "entry_list" property, which is an array of objects that define individual entries to populate the "Recent" listing in the Messages app. The following is an example of a message entry:

{
    "message_date" : "32 min ago",
    "contact_name" : "Omar",
    "contact_number" : "3193354797",
    "message" : "Hey there! Are you coming out tonight? Shoot me a message."
}

Each entry has four properties: message_date, contact_name, contact_number, and message. All properties should be encased in double quotes (").

message_date is a string that shows the age of the given entry. It can be something relative ("32 min ago"), a date ("Oct 7"), or any other string.

contact_name is a string that will show up as the message sender's name.

contact_number is currently not used.

message defines the message contents.


Streaming / Album