
1.6.4.1
Configuration file APPLI.CFG
The configuration file
APPLI.CFG
is a file with a
JSON
format. It has several
configuration keys
, explained in the following tables.
⚠
To modify this file, it is advised to rather execute the suitable
APPLI.HTA
application.
Anyway it is possible to make modifications according to your needs directly by editing the file
APPLI.CFG
with any file editor. .
Configuration key label
Type
Default
value (1)
Possible values (2)
Description
pictureframe.testcard.enabled
bool
true
true, false
Displays the testcard instead of picture (primary or
secondary).
pictureframe.hostname
string
slate106
0 to 8 chars, 'a' to 'z', 'A' to 'Z',
'0' to '9', '-' and '.'. The chars '-'
and '.' don't have the right to be
the first or the last.
It defines the {{book.product_label }} Bluetooth device name.
pictureframe.index
unsigned
int
0
0 to 1000
SLATE index. If pictureframe.wakeup.heartbeat.mode = 'quarter',
the index serves to delay the real wake-up hour by 10s multiplied by
this index. Example: SLATEs index 1 wakes up at 9h15min10s, Slate
index 11 wakes up at 9h16min50s (add 11x10s=110s=1min50s).
pictureframe.picture.filename
string
spe.ppk
5 to 12 chars, must end by '.ppk'
(case insensitive), 'a' to 'z',
'A' to 'Z', '0' to '9', '!', '#', '$',
'%', ', '(', ')', '~', '.', '-', '@',
'^', '_', '`', '{' and '}'.
Picture filename used to display image.
This filename serves too as the filename requested during a ble
connection to the ble central.
During display, if the picture is invalid (or absent)
Pictureframe will display a white screen instead.
pictureframe.vibration_sensor.enabled
bool
false
true, false
Enables the vibration sensor feature.
pictureframe.key.enabled
bool
false
true, false
Enables the keys detection feature.
pictureframe.key.left.map
signed
int
0x10000000
-2 147 483 648 to 2 147 483 647
Describes the succession of keymaps when we press on this key
(when enabled/unlocked). Each key press can send different hid keys,
and displays the corresponding picture if it exists (and enabled),
and the next press will send the next keymap. The list of keymaps
is a succession of 4bits keymap, from MSB to LSB, 0000 ends the list.
Possible keymaps:
0000 = Ends the list, 0001 = 'f1' key, 0010 = 'f2' key, …,
1100 = 'f12' key, 1101, 1110, 1111 = invalid (ends the list too).
Ex: keymap list = “f1,f3,f12” corresponds to the value 0x13C00000.
pictureframe.key.middle.map
signed
int
0x20000000
-2 147 483 648 to 2 147 483 647
pictureframe.key.right.map
signed
int
0x20000000
-2 147 483 648 to 2 147 483 647
pictureframe.wakeup.heartbeat.enabled
bool
true
true, false
Enables the wake-up by heartbeat.
pictureframe.wakeup.heartbeat.mode
string
period
'period', 'quarter'
Heartbeat time wake-up mode, useful only if
pictureframe.wakeup.heartbeat.enabled=true.
'period': time-relative wakeup, which doesn’t need date/time set.
'quarter': time absolute wakeup. The wake-up occurs only
at each quarter of an hour.
Be careful : If RTC has not been set, the comportment is replaced by
'period' wake-up of pictureframe.wakeup.heartbeat.period minutes.
pictureframe.wakeup.heartbeat.period
unsigned
int
15
15 to 1440
Defines the period in minutes
if pictureframe.wakeup.heartbeat.mode = 'period'.
pictureframe.wakeup.day.interval
string
T0000/T2400
Any valid period (see desc).
6 to 11 chars.
‘0’ to ‘9’, ‘T’ and ‘/’.
Pictureframe active time interval. During this time interval,
Pictureframe enables the wake-up by heartbeat time, or by vibration.
These wake-up are inhibited outside of this period. USB connection/
disconnection is always valid, and isn’t affected by this key.
Start hour of this period is the first minute of active interval.
End hour of this period is the first minute of inactive interval
(so this time is excluded from the interval). This period is ISO8601,
but limited to hour:minute. Use only a simplified representation
without ‘ :’. Use only start and end, no duration. ‘T2400’ is not
authorized as start, but authorized as end. Ex :
T0800/T1702 = 8h00m00s to 17h01m59s included
T1702/T0800 = 17h02m00s to 7h59m59s the next day
/T1702 = 0h00m00s to 17h01m59s T0800/ = 08h00m00s to 23h59m59s.
pictureframe.wakeup.weekdays.mask
unsigned
int
127
1 to 127
Defines the active days. Other days are inactive.
1 => Monday
2 => Tuesday
4 => Wednesday
8 => Thursday
16 => Friday
32 => Saturday
64 => Sunday
Add each number corresponding to the active day, to obtain the key.
Ex : 31 value represents active days from Monday to Friday included.
If pictureframe.wakeup.heartbeat.interval is an period with
start > end (active from the evening of day N until the morning of
day N+1), there is an ambiguous meaning on what portion of period
is active during an active day: the period start is the portion of
period used during an active day.
Ex :pictureframe.wakeup.heartbeat.day.interval=T1700/T0800 and
pictureframe.wakeup.heartbeat.weekdays.mask=125 (Tuesday inactive),
so the suppressed period in the week will be from Tuesday 17h00
to Wednesday 8h00.
27