Skip to content

Commit

Permalink
Merge pull request #2113 from OnlineDynamic/accessibilityandsecurityd…
Browse files Browse the repository at this point in the history
…ec24

Additional JS variable exposure
  • Loading branch information
OnlineDynamic authored Jan 11, 2025
2 parents f857af3 + 59c7a7a commit 40aafa8
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 35 deletions.
66 changes: 39 additions & 27 deletions docs/Configuration_Files.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Falcon Player Configuration File Formats

The global setting file for FPP is located at

```
/home/fpp/media/setting
```
Expand All @@ -10,20 +11,25 @@ file is used to store the one-off non-repetitive configuration settings. The
configuration for E1.31/DDP Outputs, Playlists, Schedules, are stored in separate config
files.

Field Definitions:
Field Definitions:
key = value

Sample Data:

```
HostName = "FPP"
fppMode = "player"
volume = "64"
```

Setting deifnitions are held in www/settings.json this file documents the structure of the settings definitions:

[Setting Definitions Explained](/Settings_configurations.md)

## Schedule Configuration File

The Schedule settings are stored in a JSON located at:

```
/home/fpp/media/setting/schedule.json
```
Expand All @@ -32,31 +38,31 @@ The schedule JSON file contains a JSON array of the schedule entries.

#### Field definitions:

enabled - 0 or 1 whether the shedule entry is inactive or active
playlist - The name of the playlist to play on this schedule
day - 0-6 - schedule runs on a single day of the week
7 - run the schedule every day
8 - run weekdays (Mon-Fri)
9 - run weekends (Sat-Sun)
10 - run Monday, Wednesday, Friday
11 - run Tuesday, Thursday
12 - run Sunday through Thursday
13 - run Friday and Saturday
14 - run Odd Number Days
15 - run Even Number Days
startTime - Schedule Start Time
startTimeOffset - Start Time Offset, Used mostly with Dawn/Dusk Timing
endTime - Schedule End Time
endTimeOffset - Schedule End Offset, Used mostly with Dawn/Dusk Timing
repeat - 0 or 1 to repeat playlist during the scheduled time slot
startDate - Schedule Start Date
endDate - Schedule End Date
stopType - 0 - Graceful, Play until End of Sequence
1 - Hard Start, Stop immediately.
2 - Graceful Loop, Play through All Playlist Sequences, then stop.

enabled - 0 or 1 whether the shedule entry is inactive or active
playlist - The name of the playlist to play on this schedule
day - 0-6 - schedule runs on a single day of the week
7 - run the schedule every day
8 - run weekdays (Mon-Fri)
9 - run weekends (Sat-Sun)
10 - run Monday, Wednesday, Friday
11 - run Tuesday, Thursday
12 - run Sunday through Thursday
13 - run Friday and Saturday
14 - run Odd Number Days
15 - run Even Number Days
startTime - Schedule Start Time
startTimeOffset - Start Time Offset, Used mostly with Dawn/Dusk Timing
endTime - Schedule End Time
endTimeOffset - Schedule End Offset, Used mostly with Dawn/Dusk Timing
repeat - 0 or 1 to repeat playlist during the scheduled time slot
startDate - Schedule Start Date
endDate - Schedule End Date
stopType - 0 - Graceful, Play until End of Sequence
1 - Hard Start, Stop immediately.
2 - Graceful Loop, Play through All Playlist Sequences, then stop.

#### Sample Data:

```json
[
{
Expand All @@ -79,13 +85,15 @@ The schedule JSON file contains a JSON array of the schedule entries.
## Playlist Configuration Files

Each Playlist is stored in an individual JSON file located at:

```
/home/fpp/media/playlists/%Name_OF_Playlist%.json
```

The Playlist JSON files contains overall JSON parameters and then a JSON array of the Playlist entries.

#### Sample Data:

```json
{
"name": "All Sequences",
Expand Down Expand Up @@ -114,6 +122,7 @@ The Playlist JSON files contains overall JSON parameters and then a JSON array o
## E1.31/ArtNet/DDP/KiNet Channel Outputs Configuration File

Ethernet based Channel Outputs Configurations are stored in a JSON file located at:

```
/home/fpp/media/config/co-universes.json
```
Expand All @@ -131,8 +140,8 @@ The 'enabled' parameter enables all the Ethernet based Channel Outputs.
- 6 - KINET V1
- 7 - KINET V2


#### Sample Data:

```json
{
"channelOutputs": [
Expand Down Expand Up @@ -173,6 +182,7 @@ The 'enabled' parameter enables all the Ethernet based Channel Outputs.
## Pixel Outputs Configuration File

WS28XX Pixel Outputs Configurations are stored in a JSON file located at:

```
/home/fpp/media/config/co-pixelStrings.json
/home/fpp/media/config/co-bbbStrings.json
Expand All @@ -182,6 +192,7 @@ The 'co-pixelStrings.json' file contains the pixel outputs if using a Raspberry
'co-bbbStrings.json' file contains the pixel outputs if using a Beaglebone or PocketBeagle.

#### Sample 'co-bbbStrings.json' File Data:

```json
{
"channelOutputs": [
Expand Down Expand Up @@ -311,6 +322,7 @@ The 'co-pixelStrings.json' file contains the pixel outputs if using a Raspberry
## Model Overlays Configuration File

The Model Overlays Configuration File is a JSON file located at:

```
/home/fpp/media/config/model-overlays.json
```
Expand All @@ -320,6 +332,7 @@ The model entries data is used by Display Testing and Effects Overlays.
This file is generated by xLights, if the Upload Models checkbox is enabled in FPP Connect.

#### Sample Data:

```json
{
"models" : [
Expand Down Expand Up @@ -379,4 +392,3 @@ This file is generated by xLights, if the Upload Models checkbox is enabled in F
}
```


9 changes: 9 additions & 0 deletions docs/Settings_configurations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Settings Definitions Explained

## Setting defs, storage and initialisation

FPP settings are defined in www/settings.json and for some default values are define in this file

The config setup is done by config.php which uses a mixture of logic, already saved settings and default values to create a php 'settings' array variable.

The local instance of fpp stores its current setting configuration in: /home/fpp/media/settings
43 changes: 35 additions & 8 deletions www/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -1751,6 +1751,9 @@
"reloadUI": 1,
"fppModes": [
"player"
],
"exposedAsJSToPages": [
"multisync"
]
},
"MultiSyncExternalIPAddress": {
Expand Down Expand Up @@ -1835,28 +1838,40 @@
"restart": 2,
"size": 64,
"maxlength": 128,
"type": "text"
"type": "text",
"exposedAsJSToPages": [
"multisync"
]
},
"MultiSyncHide10": {
"name": "MultiSyncHide10",
"gatherStats": true,
"description": "Hide 10.x.x.x/8 Subnets in systems list",
"tip": "Hide subnets in private 10.0.0.0/8 IP space.",
"type": "checkbox"
"type": "checkbox",
"exposedAsJSToPages": [
"multisync"
]
},
"MultiSyncHide172": {
"name": "MultiSyncHide172",
"gatherStats": true,
"description": "Hide 172.16.x.x/12 Subnets in systems list",
"tip": "Hide subnets in private 172.16.0.0/12 IP space.",
"type": "checkbox"
"type": "checkbox",
"exposedAsJSToPages": [
"multisync"
]
},
"MultiSyncHide192": {
"name": "MultiSyncHide192",
"gatherStats": true,
"description": "Hide 192.168.x.x/16 Subnets in systems list",
"tip": "Hide subnets in private 192.168.0.0/16 IP space.",
"type": "checkbox"
"type": "checkbox",
"exposedAsJSToPages": [
"multisync"
]
},
"MultiSyncHTTPSubnets": {
"name": "MultiSyncHTTPSubnets",
Expand Down Expand Up @@ -1941,7 +1956,10 @@
"osPassword",
"osPasswordVerify"
]
}
},
"exposedAsJSToPages": [
"initialSetup"
]
},
"osPasswordVerify": {
"name": "osPasswordVerify",
Expand All @@ -1967,7 +1985,10 @@
"type": "password",
"size": 32,
"maxlength": 32,
"onChange": "CheckPassword"
"onChange": "CheckPassword",
"exposedAsJSToPages": [
"initialSetup"
]
},
"passwordEnable": {
"name": "passwordEnable",
Expand All @@ -1985,7 +2006,10 @@
"password",
"passwordVerify"
]
}
},
"exposedAsJSToPages": [
"initialSetup"
]
},
"passwordVerify": {
"name": "passwordVerify",
Expand Down Expand Up @@ -2414,7 +2438,10 @@
"Advanced": 1,
"Experimental": 2,
"Developer": 3
}
},
"exposedAsJSToPages": [
"all"
]
},
"verbosePlaylistItemDetails": {
"name": "verbosePlaylistItemDetails",
Expand Down

0 comments on commit 40aafa8

Please sign in to comment.