assets_and_image (example config files)

Machine config examples

Here are some example machine-wide config files that show real-world examples of how these configs are used.

Note that there are multiple machine config examples here. They’re just included to show different options. You wouldn’t actually use more than one.

#config_version=5

modes:
  - mode1

displays:
  default:
    width: 400
    height: 300

slides:
  image_test:
    - type: image
      image: image1
      x: 50
      animations:
        show_slide:
          - property: rotation
            value: 360
            duration: 2s
    - type: image
      image: image2
      rotation: 25
      x: 80
    - type: image
      image: image3
      scale: 1.5
      x: 110
    - type: image
      image: image4
      rotation: -45
      x: 140
    - type: image
      image: image5
      x: 170
      animations:
        show_slide:
          - property: scale
            value: 3.0
            duration: 1s
          - property: scale
            value: 0.1
            duration: 1s
          - property: scale
            value: 3.0
            duration: 1s
          - property: scale
            value: 1.0
            duration: 1s
    - type: image
      image: image6
      x: 200
    - type: image
      image: image7
      x: 230
    - type: image
      image: image8
      x: 260
    - type: image
      image: image9
      x: 290
    - type: image
      image: image10
      x: 320
    - type: image
      image: image11
      x: 350
    - type: image
      image: image12
      x: 380

slide_player:
  show_slide1: image_test

assets:
    images:
        default:
            load: preload
        preload:
            load: preload
            test_key: test_value
        on_demand:
            load: on_demand
        mode_start:
            load: mode_start
#config_version=5

modes:
  - mode1

assets:
    images:
        default:
            load: preload
        preload:
            load: preload
            test_key: test_value
        on_demand:
            load: on_demand
        mode_start:
            load: mode_start

images:
  image_12_new_name:
    file: image12.png
    test_key: test_value_override12
  image_13_new_name:
    file: image13.png
  image3:
    test_key: test_value_override3

image_pools:
  group1:
    load: preload
    images:
      - image1
      - image2
      - image3
    type: random
  group2:
    load: preload
    images:
      - image1
      - image2
      - image3|2
    type: random
  group3:
    images:
      - image1
      - image2
      - image3
    type: sequence
  group4:
    images:
      - image1|4
      - image2|2
      - image3
    type: sequence
  group5:
    images:
      - image1|1
      - image2|5
      - image3|1
    type: random_force_next
  group6:
    images:
      - image1
      - image2
      - image3
    type: random_force_all

Mode config examples

Here are some example mode config files that go along with the machine-wide config above.

#config_version=5

mode:
  priority: 300

images:
  image6:
    file: image6.png
    load: mode_start