├── ansible
├── group_vars
│ ├── audio_source
│ ├── recorders
│ └── all
├── roles
│ ├── audio_source
│ │ └── tasks
│ │ │ ├── ffmpeg.yml
│ │ │ ├── main.yml
│ │ │ ├── packages.yml
│ │ │ └── audio_source.yml
│ ├── recorder
│ │ ├── templates
│ │ │ ├── sysctl-custom-networking.conf
│ │ │ ├── obs-studio
│ │ │ │ ├── basic
│ │ │ │ │ ├── profiles
│ │ │ │ │ │ ├── 720p
│ │ │ │ │ │ │ ├── service.json.j2
│ │ │ │ │ │ │ └── basic.ini.j2
│ │ │ │ │ │ └── 1080p
│ │ │ │ │ │ │ ├── service.json.j2
│ │ │ │ │ │ │ └── basic.ini.j2
│ │ │ │ │ └── scenes
│ │ │ │ │ │ └── event_id.json.j2
│ │ │ │ └── global.ini.j2
│ │ │ └── gdm.conf
│ │ └── tasks
│ │ │ ├── custom_networking.yml
│ │ │ ├── packages.yml
│ │ │ ├── main.yml
│ │ │ ├── textfile.yml
│ │ │ ├── artwork.yml
│ │ │ ├── audio_source.yml
│ │ │ ├── obs.yml
│ │ │ └── user.yml
│ ├── productivity
│ │ └── tasks
│ │ │ ├── packages.yml
│ │ │ ├── main.yml
│ │ │ ├── vscode.yml
│ │ │ └── chrome.yml
│ └── laptop
│ │ ├── tasks
│ │ └── main.yml
│ │ └── templates
│ │ └── greeter.dconf-defaults
├── artwork
│ ├── login-logo.png
│ ├── wallpaper.png
│ └── 2020.fossasia.org
│ │ ├── blank.png
│ │ ├── side-by-side.png
│ │ ├── side-by-side-43.png
│ │ ├── side-by-side-reverse.png
│ │ ├── side-by-side-43-reverse.png
│ │ └── fossasia-video-artwork-test.png
├── recorders-obs.yml
├── reboot.yml
├── shutdown.yml
├── README.md
├── event.wol
├── powersave.yml
├── performance.yml
├── upgrade.yml
├── event-fetch-generate.sh
├── recorders.yml
├── recorders-stop.yml
├── event
├── backup
├── ssh-key.yml
└── event-generate.go
├── cheatsheet.pdf
├── .gitmodules
├── scripts
├── README.md
├── cutgui.sh
└── audio.sh
├── README.md
├── dashboard.json
└── LICENSE
/ansible/group_vars/audio_source:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | autostart: true
4 |
--------------------------------------------------------------------------------
/ansible/roles/audio_source/tasks/ffmpeg.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: automatically start ffmpeg
4 |
--------------------------------------------------------------------------------
/cheatsheet.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/serverwentdown/fossasia-video/master/cheatsheet.pdf
--------------------------------------------------------------------------------
/ansible/roles/audio_source/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - include: packages.yml
3 | - include: audio_source.yml
4 |
--------------------------------------------------------------------------------
/ansible/artwork/login-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/serverwentdown/fossasia-video/master/ansible/artwork/login-logo.png
--------------------------------------------------------------------------------
/ansible/artwork/wallpaper.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/serverwentdown/fossasia-video/master/ansible/artwork/wallpaper.png
--------------------------------------------------------------------------------
/ansible/recorders-obs.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - hosts: recorders
4 | roles:
5 | - role: recorder
6 | tags: obs
7 |
8 |
--------------------------------------------------------------------------------
/ansible/reboot.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - hosts: all
3 | tasks:
4 | - name: reboot machines
5 | become: yes
6 | reboot:
7 |
8 |
--------------------------------------------------------------------------------
/ansible/artwork/2020.fossasia.org/blank.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/serverwentdown/fossasia-video/master/ansible/artwork/2020.fossasia.org/blank.png
--------------------------------------------------------------------------------
/ansible/artwork/2020.fossasia.org/side-by-side.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/serverwentdown/fossasia-video/master/ansible/artwork/2020.fossasia.org/side-by-side.png
--------------------------------------------------------------------------------
/ansible/artwork/2020.fossasia.org/side-by-side-43.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/serverwentdown/fossasia-video/master/ansible/artwork/2020.fossasia.org/side-by-side-43.png
--------------------------------------------------------------------------------
/ansible/artwork/2020.fossasia.org/side-by-side-reverse.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/serverwentdown/fossasia-video/master/ansible/artwork/2020.fossasia.org/side-by-side-reverse.png
--------------------------------------------------------------------------------
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "ansible/roles/cloudalchemy.node-exporter"]
2 | path = ansible/roles/cloudalchemy.node-exporter
3 | url = https://github.com/cloudalchemy/ansible-node-exporter.git
4 |
--------------------------------------------------------------------------------
/ansible/artwork/2020.fossasia.org/side-by-side-43-reverse.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/serverwentdown/fossasia-video/master/ansible/artwork/2020.fossasia.org/side-by-side-43-reverse.png
--------------------------------------------------------------------------------
/ansible/shutdown.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - hosts: all
3 | tasks:
4 | - name: shutdown machines
5 | become: yes
6 | command: /sbin/shutdown -h now
7 | ignore_errors: yes
8 |
9 |
--------------------------------------------------------------------------------
/ansible/artwork/2020.fossasia.org/fossasia-video-artwork-test.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/serverwentdown/fossasia-video/master/ansible/artwork/2020.fossasia.org/fossasia-video-artwork-test.png
--------------------------------------------------------------------------------
/ansible/roles/recorder/templates/sysctl-custom-networking.conf:
--------------------------------------------------------------------------------
1 | net.core.default_qdisc=cake
2 | net.ipv4.tcp_congestion_control=bbr
3 | net.ipv4.tcp_slow_start_after_idle=0
4 | net.ipv4.tcp_ecn=1
5 |
--------------------------------------------------------------------------------
/ansible/README.md:
--------------------------------------------------------------------------------
1 |
2 | # WARNING: It's a mess in here
3 |
4 | We're working on ironing this out, in a more reliable way, for future events.
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ansible/event.wol:
--------------------------------------------------------------------------------
1 | # x220-01
2 | 3c:97:0e:00:32:1c
3 | # x230-01
4 | 3c:97:0e:9f:b5:4d
5 | # x240-01
6 | 28:d2:44:bb:6d:b4
7 | # x240-02
8 | 28:d2:44:7d:2f:c3
9 | # x240-03
10 | 28:d2:44:bb:60:b1
11 |
--------------------------------------------------------------------------------
/ansible/roles/productivity/tasks/packages.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: install editors
4 | become: yes
5 | apt:
6 | state: latest
7 | name:
8 | - neovim
9 | - emacs
10 | - git
11 |
12 |
--------------------------------------------------------------------------------
/ansible/powersave.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - hosts: all
3 | tasks:
4 | - name: temporarily set powersave cpu govenor
5 | become: yes
6 | command: bash -c "echo powersave | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor"
7 |
--------------------------------------------------------------------------------
/ansible/performance.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - hosts: all
3 | tasks:
4 | - name: temporarily set performance cpu govenor
5 | become: yes
6 | command: bash -c "echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor"
7 |
--------------------------------------------------------------------------------
/ansible/upgrade.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - hosts: all
3 | tasks:
4 | - name: upgrade packages
5 | become: yes
6 | apt:
7 | autoclean: yes
8 | autoremove: yes
9 | update_cache: yes
10 | upgrade: yes
11 |
--------------------------------------------------------------------------------
/ansible/roles/recorder/tasks/custom_networking.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: write custom-networking.conf to sysctl.d
4 | template:
5 | src: "sysctl-custom-networking.conf"
6 | dest: "/etc/sysctl.d/custom-networking.conf"
7 | become: yes
8 |
--------------------------------------------------------------------------------
/ansible/event-fetch-generate.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -e
4 |
5 | echo "Fetching event inventory from Ambrose's infrastructure"
6 | ssh -p 222 root@fd11:f055:a514::1 /usr/local/bin/wireguard-negotiator dump -i wg1 | go run event-generate.go opentech
7 |
--------------------------------------------------------------------------------
/ansible/roles/recorder/templates/obs-studio/basic/profiles/720p/service.json.j2:
--------------------------------------------------------------------------------
1 | {
2 | "settings": {
3 | "key": "{{ stream_key }}",
4 | "server": "rtmp://controller.wifione.co:443/live2"
5 | },
6 | "type": "rtmp_custom"
7 | }
8 |
--------------------------------------------------------------------------------
/ansible/roles/productivity/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - include: chrome.yml
3 | vars:
4 | - apt_file: /etc/apt/sources.list.d/google-chrome.list
5 | - include: vscode.yml
6 | vars:
7 | - apt_file: /etc/apt/sources.list.d/vscode.list
8 | - include: packages.yml
9 |
--------------------------------------------------------------------------------
/ansible/roles/recorder/tasks/packages.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: install packages required to be a recorder
4 | become: yes
5 | apt:
6 | state: latest
7 | name:
8 | - obs-studio
9 | # for NetworkManager in audio_source
10 | - python3-dbus
11 | - libnm-dev
12 |
--------------------------------------------------------------------------------
/ansible/roles/audio_source/tasks/packages.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: install packages required to be an audio_source
4 | become: yes
5 | apt:
6 | state: latest
7 | name:
8 | - ffmpeg
9 | # for NetworkManager in audio_source
10 | - python3-dbus
11 | - libnm-dev
12 |
--------------------------------------------------------------------------------
/ansible/recorders.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - hosts: all
3 | roles:
4 | - productivity
5 | - laptop
6 | - role: cloudalchemy.node-exporter
7 | tags: node_exporter
8 |
9 | - hosts: recorders
10 | roles:
11 | - role: recorder
12 | tags:
13 | - base
14 | - obs
15 |
16 |
--------------------------------------------------------------------------------
/ansible/group_vars/recorders:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | # Overwrite in inventory if cannot cope
4 | record_profile: 720p
5 | # Overwrite in inventory if want to use more storage to use less CPU
6 | record_fast: false
7 |
8 | # Set to 2 to enable monitoring, 0 to disable
9 | monitoring_type: 2
10 |
11 | autostart: true
12 |
--------------------------------------------------------------------------------
/ansible/roles/recorder/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - include: user.yml
3 | tags: base
4 | - include: packages.yml
5 | tags: base
6 | - include: obs.yml
7 | tags: obs
8 | - include: artwork.yml
9 | tags: base
10 | - include: textfile.yml
11 | tags: base
12 | - include: custom_networking.yml
13 | tags: base
14 |
--------------------------------------------------------------------------------
/ansible/roles/recorder/templates/obs-studio/basic/profiles/1080p/service.json.j2:
--------------------------------------------------------------------------------
1 | {
2 | "settings": {
3 | "bwtest": false,
4 | "key": "{{ stream_key }}",
5 | "server": "rtmp://a.rtmp.youtube.com/live2",
6 | "service": "YouTube / YouTube Gaming"
7 | },
8 | "type": "rtmp_common"
9 | }
10 |
--------------------------------------------------------------------------------
/scripts/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Requirements
3 |
4 | - [ffmpeg](https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz)
5 |
6 | # `audio.sh`
7 |
8 | Normalise audio
9 |
10 | ```
11 | Usage: ./audio.sh videofile
12 | ```
13 |
14 | # `cutgui.sh`
15 |
16 | Download and run LosslessCut in a temp directory
17 |
18 | ```
19 | Usage: ./cutgui.sh
20 | ```
21 |
--------------------------------------------------------------------------------
/ansible/recorders-stop.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - hosts: all
3 | roles:
4 | - productivity
5 | - laptop
6 | - role: cloudalchemy.node-exporter
7 | tags: node_exporter
8 |
9 | - hosts: recorders
10 | roles:
11 | - role: recorder
12 | vars:
13 | autostart: false
14 |
15 | - hosts: audio_source
16 | roles:
17 | - role: audio_source
18 | vars:
19 | autostart: false
20 |
--------------------------------------------------------------------------------
/ansible/group_vars/all:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | event:
4 | id: 2020.fossasia.org
5 | title: FOSSASIA Summit 2020
6 |
7 | # Monitoring
8 |
9 | node_exporter_textfile_dir: /var/lib/node_exporter
10 | node_exporter_enabled_collectors:
11 | - ntp
12 | - wifi
13 | - systemd:
14 | unit-whitelist: "'.+\\.service'"
15 | - textfile:
16 | directory: "{{ node_exporter_textfile_dir }}"
17 |
18 | # Meta
19 |
20 | ansible_python_interpreter: /usr/bin/python3
21 |
--------------------------------------------------------------------------------
/ansible/roles/recorder/tasks/textfile.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: log room for node_exporter
4 | become: yes
5 | copy:
6 | content: "room{type=\"{{ room_type }}\",id=\"{{ room_id }}\"} 1\n"
7 | dest: "/var/lib/node_exporter/room.prom"
8 | owner: root
9 | group: root
10 | mode: u=rw,g=r,o=r
11 |
12 | - name: save room_type into home
13 | copy:
14 | content: "{{ room_type }}\n"
15 | dest: "/home/opentech/room_type"
16 |
17 | - name: save room_id into home
18 | copy:
19 | content: "{{ room_id }}\n"
20 | dest: "/home/opentech/room_id"
21 |
--------------------------------------------------------------------------------
/scripts/cutgui.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -e
4 |
5 | temp=/tmp/lossless-cut
6 | download=https://github.com/mifi/lossless-cut/releases/download/v3.17.4/LosslessCut-linux.tar.bz2
7 |
8 | mkdir -p "$temp"
9 |
10 | if [[ ! -f "$temp/lossless-cut" ]]; then
11 | echo "lossless-cut not found in $temp"
12 | echo "Downloading lossless-cut..."
13 | wget -nv --show-progress "$download" -O "$temp/archive.tar.bz2"
14 | echo "Extracting lossless-cut..."
15 | tar -xf "$temp/archive.tar.bz2" -C "$temp" --strip-components=1
16 | echo "Successfully obtained lossless-cut"
17 | fi
18 |
19 | "$temp/lossless-cut" "$@"
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/ansible/roles/recorder/tasks/artwork.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: create artwork directory
4 | file:
5 | dest: "{{ mixer_user.home }}/artwork/{{ event.id }}"
6 | state: directory
7 | recurse: yes
8 | mode: u=rwx,g=rx,o=rx
9 | become: yes
10 | become_user: mixer
11 |
12 | - name: copy backgrounds
13 | copy:
14 | src: "../../../artwork/{{ event.id }}/{{ item }}.png"
15 | dest: "{{ mixer_user.home }}/artwork/{{ event.id }}"
16 | mode: u=rw,g=r,o=r
17 | with_items:
18 | - side-by-side
19 | - side-by-side-reverse
20 | - side-by-side-43
21 | - side-by-side-43-reverse
22 | - blank
23 | become: yes
24 | become_user: mixer
25 |
--------------------------------------------------------------------------------
/ansible/roles/laptop/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: copy gdm3 greeter logo
4 | become: yes
5 | copy:
6 | src: "../../../artwork/{{ item }}.png"
7 | dest: "/opt/{{ item }}.png"
8 | with_items:
9 | - login-logo
10 |
11 | - name: write gdm3 greeter config
12 | become: yes
13 | template:
14 | src: greeter.dconf-defaults
15 | dest: /etc/gdm3/greeter.dconf-defaults
16 | owner: root
17 | group: root
18 | mode: u=rw,g=r,o=r
19 |
20 | - name: reconfigure gdm3
21 | become: yes
22 | command: dpkg-reconfigure gdm3
23 |
24 | - name: install firmware-iwlwifi
25 | become: yes
26 | apt:
27 | state: present
28 | name: firmware-iwlwifi
29 |
--------------------------------------------------------------------------------
/ansible/roles/audio_source/tasks/audio_source.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: remove existing audio_source network
4 | command:
5 | cmd: nmcli connection delete audio_source
6 | ignore_errors: yes
7 | become: yes
8 |
9 | - name: configure audio_source network
10 | command:
11 | cmd: nmcli connection add save yes ifname enp0s25 con-name audio_source type ethernet ipv4.method disabled ipv6.method manual ipv6.addresses "fd12:f055:a514:a0a0::1/64" ipv6.never-default true ipv6.addr-gen-mode eui64 ipv6.ignore-auto-dns yes ipv6.ignore-auto-routes yes
12 | become: yes
13 | when: autostart
14 |
15 | - name: enable audio_source network
16 | command:
17 | cmd: nmcli connection up audio_source
18 | become: yes
19 | when: autostart
20 |
--------------------------------------------------------------------------------
/scripts/audio.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -e
4 |
5 | mode=loudnorm
6 |
7 | file="$1"
8 | outfile="${file%.*}.audiotweaked.${file##*.}"
9 |
10 | if [[ -z "$file" ]]; then
11 | echo "Usage: $0 videofile"
12 | exit 1
13 | fi
14 |
15 | if [[ "$mode" == "mean" ]]; then
16 | # A simple way to detect mean_volume and use it to tweak the entire file
17 | ffmpeg -i "$file" -filter:a volumedetect -f null /dev/null
18 | read -p "Enter mean_volume: " volume
19 | ffmpeg -i "$file" -filter:a "volume=$volume" -af "highpass=f=200, lowpass=f=3000" "$outfile"
20 | elif [[ "$mode" == "loudnorm" ]]; then
21 | # Use the recommended loudnorm filter
22 | ffmpeg -i "$file" -vcodec copy -af "loudnorm" "$outfile"
23 | else
24 | echo "Unknown mode"
25 | exit 1
26 | fi
27 |
--------------------------------------------------------------------------------
/ansible/roles/recorder/templates/gdm.conf:
--------------------------------------------------------------------------------
1 | # GDM configuration storage
2 | #
3 | # See /usr/share/gdm/gdm.schemas for a list of available options.
4 |
5 | [daemon]
6 | # Uncomment the line below to force the login screen to use Xorg
7 | #WaylandEnable=false
8 |
9 | # Enabling automatic login
10 | {% if autostart %}
11 | AutomaticLoginEnable = true
12 | AutomaticLogin = mixer
13 | {% else %}
14 | # AutomaticLoginEnable = true
15 | # AutomaticLogin = mixer
16 | {% endif %}
17 |
18 | # Enabling timed login
19 | # TimedLoginEnable = true
20 | # TimedLogin = user1
21 | # TimedLoginDelay = 10
22 |
23 | [security]
24 |
25 | [xdmcp]
26 |
27 | [chooser]
28 |
29 | [debug]
30 | # Uncomment the line below to turn on debugging
31 | # More verbose logs
32 | # Additionally lets the X server dump core if it crashes
33 | #Enable=true
34 |
35 |
--------------------------------------------------------------------------------
/ansible/roles/recorder/tasks/audio_source.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: remove existing audio_source network
4 | command:
5 | cmd: nmcli connection delete audio_source
6 | ignore_errors: yes
7 | become: yes
8 | when: room_id == "lecturetheatre"
9 |
10 | - name: configure audio_source network
11 | command:
12 | cmd: nmcli connection add save yes ifname enp0s25 con-name audio_source type ethernet ipv4.method disabled ipv6.method manual ipv6.addresses "fd12:f055:a514:a0a0::2/64" ipv6.never-default true ipv6.addr-gen-mode eui64 ipv6.ignore-auto-dns yes ipv6.ignore-auto-routes yes
13 | become: yes
14 | when: autostart and room_id == "lecturetheatre"
15 |
16 | - name: enable audio_source network
17 | command:
18 | cmd: nmcli connection up audio_source
19 | become: yes
20 | when: autostart and room_id == "lecturetheatre"
21 |
--------------------------------------------------------------------------------
/ansible/roles/productivity/tasks/vscode.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | # Credits: Michael Heap
4 |
5 | - name: Does the vscode apt file exist?
6 | become: yes
7 | command: test -f {{ apt_file }}
8 | register: vscode_apt_exists
9 | ignore_errors: True
10 |
11 | - name: Add Microsoft key
12 | become: yes
13 | shell: wget -q -O - https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
14 | when: vscode_apt_exists.rc == 1
15 |
16 | - name: Add vscode repo
17 | become: yes
18 | copy: content="deb https://packages.microsoft.com/repos/vscode stable main" dest={{ apt_file }} owner=root group=root mode=644
19 | when: vscode_apt_exists.rc == 1
20 |
21 | - name: Update apt cache
22 | become: yes
23 | apt: update_cache=yes
24 | when: vscode_apt_exists.rc == 1
25 |
26 | - name: Install vscode
27 | become: yes
28 | apt:
29 | state: latest
30 | pkg: code
31 |
--------------------------------------------------------------------------------
/ansible/roles/productivity/tasks/chrome.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | # Credits: Michael Heap
4 |
5 | - name: Does the Google apt file exist?
6 | become: yes
7 | command: test -f {{ apt_file }}
8 | register: google_apt_exists
9 | ignore_errors: True
10 |
11 | - name: Add Google Chrome key
12 | become: yes
13 | shell: wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
14 | when: google_apt_exists.rc == 1
15 |
16 | - name: Add Google Chrome repo
17 | become: yes
18 | copy: content="deb http://dl.google.com/linux/chrome/deb/ stable main" dest={{ apt_file }} owner=root group=root mode=644
19 | when: google_apt_exists.rc == 1
20 |
21 | - name: Update apt cache
22 | become: yes
23 | apt: update_cache=yes
24 | when: google_apt_exists.rc == 1
25 |
26 | - name: Install Google Chrome
27 | become: yes
28 | apt:
29 | state: latest
30 | pkg: google-chrome-stable
31 |
--------------------------------------------------------------------------------
/ansible/event:
--------------------------------------------------------------------------------
1 | [recorders]
2 | x220-01 ansible_host=fd11:f055:a514::2 ansible_user=opentech room_type=setup2 room_id=eventhall2-2 webcam_name=usb-046d_HD_Pro_Webcam_C920_312AF46F stream_key=v2vt-dpz2-ak9q-0uyu
3 | x230-01 ansible_host=fd11:f055:a514::3 ansible_user=opentech room_type=setup3 room_id=eventhall2-1 webcam_name=usb-046d_HD_Pro_Webcam_C920_50EBAE4F stream_key=0f01-2aac-77f7-e14j
4 | x240-01 ansible_host=fd11:f055:a514::4 ansible_user=opentech room_type=setup3 room_id=lecturetheatre webcam_name=usb-046d_HD_Pro_Webcam_C920_86CB031F stream_key=ghmg-59hj-5ff2-1f9w
5 | x240-02 ansible_host=fd11:f055:a514::5 ansible_user=opentech room_type=setup2 room_id=trainingroom2-1 webcam_name=usb-046d_HD_Pro_Webcam_C920_CEB3336F stream_key=9m6x-pdms-mpap-fj2b
6 | x240-03 ansible_host=fd11:f055:a514::6 ansible_user=opentech room_type= room_id= webcam_name= stream_key= autostart=false
7 | x220-02 ansible_host=fd11:f055:a514::7 ansible_user=opentech room_type=setup2 room_id=trainingroom2-2 webcam_name=usb-046d_HD_Pro_Webcam_C920_EE8F1BFF stream_key=rm93-xysx-kb6j-10y2
8 |
--------------------------------------------------------------------------------
/ansible/backup:
--------------------------------------------------------------------------------
1 | [recorders]
2 | x220-01 ansible_host=fd11:f055:a514::2 ansible_user=opentech room_type=setup2 room_id=eventhall2-2 webcam_name=usb-046d_HD_Pro_Webcam_C920_312AF46F stream_key=2kzs-z2gm-ykg2-4e70
3 | x230-01 ansible_host=fd11:f055:a514::3 ansible_user=opentech room_type=setup3 room_id=eventhall2-1 webcam_name=usb-046d_HD_Pro_Webcam_C920_50EBAE4F stream_key=5z6t-k9r3-9wf7-emg2
4 | x240-01 ansible_host=fd11:f055:a514::4 ansible_user=opentech room_type=setup3 room_id=lecturetheatre webcam_name=usb-046d_HD_Pro_Webcam_C920_86CB031F stream_key=ghmg-59hj-5ff2-1f9w
5 | x240-02 ansible_host=fd11:f055:a514::5 ansible_user=opentech room_type=setup3 room_id=trainingroom2-2 webcam_name=usb-046d_HD_Pro_Webcam_C920_CEB3336F stream_key=cp32-uvgz-0gj6-455e
6 | x240-03 ansible_host=fd11:f055:a514::6 ansible_user=opentech room_type= room_id= webcam_name= stream_key= autostart=false
7 | x220-02 ansible_host=fd11:f055:a514::7 ansible_user=opentech room_type=setup3 room_id=trainingroom2-1 webcam_name=usb-046d_HD_Pro_Webcam_C920_EE8F1BFF stream_key=3fmb-4b71-t4dc-cab1
8 |
--------------------------------------------------------------------------------
/ansible/roles/recorder/templates/obs-studio/global.ini.j2:
--------------------------------------------------------------------------------
1 | [General]
2 | Pre19Defaults=false
3 | Pre21Defaults=false
4 | FirstRun=true
5 | LastVersion=352321538
6 |
7 | [PropertiesWindow]
8 | cx=720
9 | cy=580
10 |
11 | [BasicWindow]
12 | geometry=AdnQywACAAAAAAAAAAAAGwAABVUAAAL/AAAAAAAAAEAAAAQ2AAAC/wAAAAACAAAABVY=
13 | DockState=AAAA/wAAAAD9AAAAAQAAAAMAAAVWAAABF/wBAAAABfsAAAAUAHMAYwBlAG4AZQBzAEQAbwBjAGsBAAAAAAAAAToAAACoAP////sAAAAWAHMAbwB1AHIAYwBlAHMARABvAGMAawEAAAFAAAABPAAAAKgA////+wAAABIAbQBpAHgAZQByAEQAbwBjAGsBAAACggAAAawAAADkAP////sAAAAeAHQAcgBhAG4AcwBpAHQAaQBvAG4AcwBEAG8AYwBrAAAAAlgAAAC/AAAAggD////7AAAAGABjAG8AbgB0AHIAbwBsAHMARABvAGMAawEAAAQ0AAABIgAAAJoA////AAAFVgAAAXIAAAAEAAAABAAAAAgAAAAI/AAAAAA=
14 | PreviewEnabled=true
15 | AlwaysOnTop=false
16 | SceneDuplicationMode=true
17 | SwapScenesMode=true
18 | EditPropertiesMode=false
19 | PreviewProgramMode=false
20 | DocksLocked=true
21 | ShowListboxToolbars=false
22 |
23 | [Basic]
24 | SceneCollection={{ event.id }}
25 | SceneCollectionFile={{ event.id }}
26 | Profile={{ record_profile }}
27 | ProfileDir={{ record_profile }}
28 |
--------------------------------------------------------------------------------
/ansible/roles/recorder/templates/obs-studio/basic/profiles/1080p/basic.ini.j2:
--------------------------------------------------------------------------------
1 | [General]
2 | Name=1080p
3 |
4 | [Video]
5 | BaseCX=1920
6 | BaseCY=1080
7 | OutputCX=1920
8 | OutputCY=1080
9 |
10 | [Output]
11 | Mode=Simple
12 |
13 | [Audio]
14 | SampleRate=44100
15 | MonitoringDeviceName=Monitor of PCM2902 Audio Codec Digital Stereo (IEC958)
16 | MonitoringDeviceId=alsa_output.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00.iec958-stereo.monitor
17 |
18 | [Hotkeys]
19 | OBSBasic.StartRecording={\n "bindings": [\n {\n "control": true,\n "key": "OBS_KEY_RETURN"\n }\n ]\n}
20 | OBSBasic.StopRecording={\n "bindings": [\n {\n "control": true,\n "key": "OBS_KEY_BACKSPACE"\n }\n ]\n}
21 | OBSBasic.Transition={\n "bindings": [\n {\n "key": "OBS_KEY_RETURN"\n }\n ]\n}
22 |
23 | [SimpleOutput]
24 | RecFormat=mkv
25 | RecQuality=Stream
26 | VBitrate=3000
27 | UseAdvanced=true
28 | Preset=ultrafast
29 | {% if record_fast %}
30 | RecEncoder=x264_lowcpu
31 | {% else %}
32 | RecEncoder=x264
33 | {% endif %}
34 | FilePath={{ mixer_user.home }}/Videos/{{ event.id }}/{{ room_id }}
35 |
36 | [AdvOut]
37 | TrackIndex=1
38 | RecType=Standard
39 | RecTracks=1
40 | FFOutputToFile=true
41 | FFVEncoderId=0
42 | FFAEncoderId=0
43 | FFAudioTrack=1
44 |
--------------------------------------------------------------------------------
/ansible/roles/recorder/templates/obs-studio/basic/profiles/720p/basic.ini.j2:
--------------------------------------------------------------------------------
1 | [General]
2 | Name=720p
3 |
4 | [Video]
5 | BaseCX=1920
6 | BaseCY=1080
7 | OutputCX=1280
8 | OutputCY=720
9 |
10 | [Output]
11 | Mode=Simple
12 |
13 | [Audio]
14 | SampleRate=44100
15 | MonitoringDeviceName=Monitor of PCM2902 Audio Codec Digital Stereo (IEC958)
16 | MonitoringDeviceId=alsa_output.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00.iec958-stereo.monitor
17 |
18 | [Hotkeys]
19 | OBSBasic.StartRecording={\n "bindings": [\n {\n "control": true,\n "key": "OBS_KEY_RETURN"\n }\n ]\n}
20 | OBSBasic.StopRecording={\n "bindings": [\n {\n "control": true,\n "key": "OBS_KEY_BACKSPACE"\n }\n ]\n}
21 | OBSBasic.Transition={\n "bindings": [\n {\n "key": "OBS_KEY_RETURN"\n }\n ]\n}
22 |
23 | [SimpleOutput]
24 | RecFormat=mkv
25 | RecQuality=Stream
26 | VBitrate=4000
27 | UseAdvanced=true
28 | Preset=ultrafast
29 | {% if record_fast %}
30 | RecEncoder=x264_lowcpu
31 | {% else %}
32 | RecEncoder=x264
33 | {% endif %}
34 | FilePath={{ mixer_user.home }}/Videos/{{ event.id }}/{{ room_id }}
35 |
36 | [AdvOut]
37 | TrackIndex=1
38 | RecType=Standard
39 | RecTracks=1
40 | FFOutputToFile=true
41 | FFVEncoderId=0
42 | FFAEncoderId=0
43 | FFAudioTrack=1
44 |
--------------------------------------------------------------------------------
/ansible/ssh-key.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - hosts: recorders
3 | tasks:
4 | - name: set permissions for .ssh directory
5 | file:
6 | path: "{{ ansible_env.HOME }}/.ssh"
7 | state: directory
8 | mode: u=rwx,g=-rwx,o=-rwx
9 | - name: create authorized_keys file
10 | file:
11 | path: "{{ ansible_env.HOME }}/.ssh/authorized_keys"
12 | state: touch
13 | mode: u=rwx,g=r-wx,o=r-wx
14 | - name: insert ambrose's public ssh key
15 | blockinfile:
16 | dest: "{{ ansible_env.HOME }}/.ssh/authorized_keys"
17 | block: |
18 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDDBsAEpJLRUzF9O58EkRFAe+WFp46SNEEz6ChOEkzWs+Vn4b60uKABXB60l56S1Ok6PHlNxyIlLuF+IXUOfalO+V9HXxZmjdHp7SibOXcEDFRDnCgGqnRTwd5zEbdMnZ9g0ia7NnIeaS7M5pXGtir7S86pNNaVWWnBvobDuc1As4NGIHa7hPHPOsPRgjNgB6YqaRq6a98j1yGghMiQJJvsBeZ0S00MZp9lfUiB+jrxhDgGyPsU5M9U+ObJmOFlaLx5XqZW3/5tTJoEmyD/vRV6IzOhhR6PPgGpQXJBdmrbJOKWtTwckwWE2xR+rs3J154OyZadkJ9+1aj/EKleTYs5GfDzGQeTb/wsyRz3tgTesFcXW/klVYVEcvZZxPvOoMPUK8vtYIt2LiFJov+/EQu5wfeilLURfZwKk2fBIC+CFUwg6ewogb4Ynvxv7++J11+7uMSOkuqu/0t/7rrv4TDt06dtA5oUNfZ5cUH0/H/KX48DkCp+mRI7S5uJ6majXZEm5Nmi7u+gOCSjAewe6Ex++I91MsX3WrgVG5OUffx/QTsLeRhT9ZMAlnED7lcTXNhDCEmJif87CQFucRnrkO9FvDnZG2i9721MLGo9Sf/M7AliwMH7fcVucgvY4AJuESspEjWjQn9YEqhp1cDb/PtNZtRl/v1TJOV4eQUDSWusdw== ambrose-yubikey
19 | - name: prevent password login
20 | become: yes
21 | blockinfile:
22 | dest: /etc/ssh/sshd_config
23 | block: |
24 | PasswordAuthentication no
25 |
26 |
--------------------------------------------------------------------------------
/ansible/roles/laptop/templates/greeter.dconf-defaults:
--------------------------------------------------------------------------------
1 | # These are the options for the greeter session that can be set
2 | # through GSettings. Any GSettings setting that is used by the
3 | # greeter session can be set here.
4 |
5 | # Note that you must configure the path used by dconf to store the
6 | # configuration, not the GSettings path.
7 |
8 |
9 | # Theming options
10 | # ===============
11 | # - Change the GTK+ theme
12 | [org/gnome/desktop/interface]
13 | # gtk-theme='Adwaita'
14 | # - Use another background
15 | [org/gnome/desktop/background]
16 | # picture-uri='file:///opt/login-background.png'
17 | # picture-options='zoom'
18 | # - Or no background at all
19 | [org/gnome/desktop/background]
20 | # picture-options='none'
21 | # primary-color='#000000'
22 |
23 | # Login manager options
24 | # =====================
25 | [org/gnome/login-screen]
26 | logo='/opt/login-logo.png'
27 |
28 | # - Disable user list
29 | # disable-user-list=true
30 | # - Disable restart buttons
31 | # disable-restart-buttons=true
32 | # - Show a login welcome message
33 | banner-message-enable=true
34 | banner-message-text='Hostname: {{ ansible_hostname }}\n{% if room_type %}Room: {{ room_type }} {{ room_id }}{% endif %}\nUsername: opentech Password: opentech\nUsername: mixer Password: mixer\n{% if autostart %}Mixer Autostart Enabled\n{% endif %}'
35 |
36 | # Automatic suspend
37 | # =================
38 | [org/gnome/settings-daemon/plugins/power]
39 | # - Time inactive in seconds before suspending with AC power
40 | # 1200=20 minutes, 0=never
41 | # sleep-inactive-ac-timeout=1200
42 | # - What to do after sleep-inactive-ac-timeout
43 | # 'blank', 'suspend', 'shutdown', 'hibernate', 'interactive' or 'nothing'
44 | # sleep-inactive-ac-type='suspend'
45 | # - As above but when on battery
46 | # sleep-inactive-battery-timeout=1200
47 | # sleep-inactive-battery-type='suspend'
48 |
--------------------------------------------------------------------------------
/ansible/roles/recorder/tasks/obs.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: create obs directory
4 | file:
5 | dest: "{{ mixer_user.home }}/.config/obs-studio/{{ item }}"
6 | state: directory
7 | recurse: yes
8 | mode: u=rwx,g=rx,o=rx
9 | with_items:
10 | - basic/profiles/1080p
11 | - basic/profiles/720p
12 | - basic/scenes
13 | become: yes
14 | become_user: mixer
15 |
16 | - name: create videos directory
17 | file:
18 | dest: "{{ mixer_user.home }}/Videos/{{ event.id }}/{{ room_id }}"
19 | state: directory
20 | recurse: yes
21 | mode: u=rwx,g=rx,o=rx
22 | become: yes
23 | become_user: mixer
24 |
25 | - name: generate base obs configuration files
26 | template:
27 | src: "obs-studio/{{ item }}.j2"
28 | dest: "{{ mixer_user.home }}/.config/obs-studio/{{ item }}"
29 | mode: u=rw,g=r,o=r
30 | with_items:
31 | - global.ini
32 | - basic/profiles/1080p/basic.ini
33 | - basic/profiles/720p/basic.ini
34 | - basic/profiles/1080p/service.json
35 | - basic/profiles/720p/service.json
36 | become: yes
37 | become_user: mixer
38 |
39 | - name: generate event obs configuration files
40 | template:
41 | src: "obs-studio/basic/scenes/event_id.json.j2"
42 | dest: "{{ mixer_user.home }}/.config/obs-studio/basic/scenes/{{ event.id }}.json"
43 | mode: u=rw,g=r,o=r
44 | become: yes
45 | become_user: mixer
46 |
47 | - name: ensure autostart folder exists
48 | file:
49 | path: "{{ mixer_user.home }}/.config/autostart"
50 | state: directory
51 | become: yes
52 | become_user: mixer
53 |
54 | - name: automatically start OBS on login
55 | file:
56 | path: "{{ mixer_user.home }}/.config/autostart/obs-autostart.desktop"
57 | src: /usr/share/applications/obs.desktop
58 | state: link
59 | become: yes
60 | become_user: mixer
61 | when: autostart
62 |
63 | - name: do not automatically start OBS on login
64 | file:
65 | path: "{{ mixer_user.home }}/.config/autostart/obs-autostart.desktop"
66 | state: absent
67 | become: yes
68 | become_user: mixer
69 | when: not autostart
70 |
--------------------------------------------------------------------------------
/ansible/event-generate.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import (
4 | "bufio"
5 | "bytes"
6 | "fmt"
7 | "net"
8 | "os"
9 | "os/exec"
10 | "strings"
11 | )
12 |
13 | func main() {
14 | s := bufio.NewScanner(os.Stdin)
15 | if len(os.Args) != 1+1 {
16 | fmt.Fprintf(os.Stderr, "not enough arguments\nusage: %s [ssh user]\n", os.Args[0])
17 | return
18 | }
19 | user := os.Args[1]
20 |
21 | fmt.Printf("[recorders]\n")
22 |
23 | for s.Scan() {
24 | host := s.Text()
25 | ip := net.ParseIP(host).To16()
26 | if ip == nil {
27 | // Not a valid IPv6, skip
28 | continue
29 | }
30 | if !bytes.Equal(ip[8:14], []byte{0, 0, 0, 0, 0, 0}) {
31 | // First subnet is the recorders subnet
32 | // Other subnets are "system" hosts
33 | continue
34 | }
35 | hostname, roomType, roomId, webcamName, err := discover(host, user)
36 | if err != nil {
37 | fmt.Fprintf(os.Stderr, "host %s discovery failed: %v\n", host, err)
38 | }
39 | fmt.Printf("%s ansible_host=%s ansible_user=%s room_type=%s room_id=%s webcam_name=%s\n", hostname, host, user, roomType, roomId, webcamName)
40 | }
41 | }
42 |
43 | const script = `
44 | hostname;
45 | (cat room_type || echo) | head -n 1;
46 | (cat room_id || echo) | head -n 1;
47 | (ls /dev/v4l/by-id/ | grep C920 | grep index0 || echo) | cut -d - -f 1,2 | head -n 1;
48 | (cat /sys/class/net/en*/address || echo) | head -n 1;
49 | `
50 |
51 | func discover(host, user string) (hostname, roomType, roomId, webcamName string, err error) {
52 | cmd := exec.Command("/usr/bin/ssh", "-o", "ConnectTimeout=3", "-l", user, host, "sh", "-c", script)
53 | fmt.Fprintf(os.Stderr, "command: %s\n", cmd)
54 | var out bytes.Buffer
55 | cmd.Stdout = &out
56 | err = cmd.Run()
57 | if err != nil {
58 | return
59 | }
60 | hostname, err = out.ReadString('\n')
61 | if err != nil {
62 | return
63 | }
64 | hostname = strings.TrimSpace(hostname)
65 | roomType, _ = out.ReadString('\n')
66 | roomType = strings.TrimSpace(roomType)
67 | roomId, _ = out.ReadString('\n')
68 | roomId = strings.TrimSpace(roomId)
69 | webcamName, _ = out.ReadString('\n')
70 | webcamName = strings.TrimSpace(webcamName)
71 | return
72 | }
73 |
--------------------------------------------------------------------------------
/ansible/roles/recorder/tasks/user.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: create mixer group
4 | become: yes
5 | group:
6 | name: mixer
7 |
8 | - name: create mixer user with password mixer
9 | become: yes
10 | user:
11 | name: mixer
12 | group: mixer
13 | comment: Mixer
14 | shell: /bin/bash
15 | password: $6$8tFX.bXNC4348gTR$8e33nlbdydXVvFZ0VmaN9Y7H5HjMduu1Z4Ofjh13PhRFGLJ6ojubsHh1SuLZSHWzWMeUxIPEyVX6VH.UaCZe8/
16 | register: mixer_user
17 |
18 | - name: enable gdm autologin to mixer user
19 | become: yes
20 | template:
21 | src: gdm.conf
22 | dest: /etc/gdm3/daemon.conf
23 | owner: root
24 | group: root
25 | mode: u=rw,g=r,o=r
26 |
27 | - name: create Pictures directory for wallpaper
28 | file:
29 | dest: "{{ mixer_user.home }}/Pictures"
30 | state: directory
31 | mode: u=rwx,g=rx,o=rx
32 | become: yes
33 | become_user: mixer
34 |
35 | - name: copy wallpaper
36 | copy:
37 | src: "../../../artwork/wallpaper.png"
38 | dest: "{{ mixer_user.home }}/Pictures/wallpaper.png"
39 | mode: u=rw,g=r,o=r
40 | become: yes
41 | become_user: mixer
42 |
43 | - name: check sleep settings
44 | command:
45 | cmd: /usr/bin/gsettings get org.gnome.desktop.session idle-delay
46 | become: yes
47 | become_user: mixer
48 | register: idle_delay_setting
49 | changed_when: false
50 |
51 | - name: prevent mixer from sleeping
52 | command:
53 | cmd: "{{ item }}"
54 | environment:
55 | # Required only when setting gsettings
56 | DBUS_SESSION_BUS_ADDRESS: "unix:path=/run/user/{{ mixer_user.uid }}/bus"
57 | with_items:
58 | - /usr/bin/gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing'
59 | - /usr/bin/gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'nothing'
60 | - /usr/bin/gsettings set org.gnome.settings-daemon.plugins.power idle-dim false
61 | - /usr/bin/gsettings set org.gnome.settings-daemon.plugins.power power-button-action 'nothing'
62 | - /usr/bin/gsettings set org.gnome.desktop.lockdown disable-lock-screen true
63 | - /usr/bin/gsettings set org.gnome.desktop.lockdown disable-log-out false
64 | - /usr/bin/gsettings set org.gnome.desktop.lockdown disable-printing false
65 | - /usr/bin/gsettings set org.gnome.desktop.lockdown disable-print-setup false
66 | - /usr/bin/gsettings set org.gnome.desktop.lockdown disable-save-to-disk false
67 | - /usr/bin/gsettings set org.gnome.desktop.session idle-delay 0
68 | become: yes
69 | become_user: mixer
70 | #when: "'uint32 0' not in idle_delay_setting.stdout"
71 |
72 | - name: customize GNOME
73 | command:
74 | cmd: "{{ item }}"
75 | environment:
76 | # Required only when setting gsettings
77 | DBUS_SESSION_BUS_ADDRESS: "unix:path=/run/user/{{ mixer_user.uid }}/bus"
78 | with_items:
79 | - /usr/bin/gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark'
80 | - /usr/bin/gsettings set org.gnome.desktop.background picture-uri 'file://{{ mixer_user.home }}/Pictures/wallpaper.png'
81 | - /usr/bin/gsettings set org.gnome.shell favorite-apps "['obs.desktop', 'org.gnome.Nautilus.desktop', 'firefox-esr.desktop']"
82 | become: yes
83 | become_user: mixer
84 | #when: "'uint32 0' not in idle_delay_setting.stdout"
85 |
86 | # Credits: SuperQ, gerryd
87 |
88 | - name: prevent laptop from sleeping when lid is closed
89 | become: yes
90 | lineinfile:
91 | dest: /etc/systemd/logind.conf
92 | regexp: "^HandleLidSwitch"
93 | line: "HandleLidSwitch=ignore"
94 | state: present
95 | when: autostart
96 |
97 | - name: allow laptop to sleep when lid is closed
98 | become: yes
99 | lineinfile:
100 | dest: /etc/systemd/logind.conf
101 | regexp: "^HandleLidSwitch"
102 | line: "HandleLidSwitch=ignore"
103 | state: absent
104 | when: not autostart
105 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 | # fossasia-video
3 |
4 | The experimental FOSSASIA video recording setup
5 |
6 | Looking for the video recorder's guide? The collaborative version is [on Google Docs](https://docs.google.com/document/d/1LWKt0kXWGVuPHCLvBBH35frJFtfhQuNIZ7DSS2HNLZI/edit) and a [PDF is available in this repository](cheatsheet.pdf).
7 |
8 | There is also the [video equipment sheet](https://docs.google.com/spreadsheets/d/1XLckJRG4ng2NoOfqy-EKca2LJdfC-Z6zfE6Q3FqKoM0/edit)
9 |
10 | ## Overview
11 |
12 | ## Installing Debian
13 |
14 | For the recording machines, get a fresh copy of Debian, and install it with the following settings:
15 |
16 | - Keyboard: American
17 | - Username: opentech
18 | - Hostname: model-increment
19 | - Example: x220-01
20 | - Add GNOME Desktop
21 | - Add OpenSSH Server
22 | - Leave Print & System Utilities enabled
23 |
24 | If a GNOME Desktop and SSH daemon is already installed, a reinstall is not required but recommended.
25 |
26 | ## WireGuard
27 |
28 | To set up the overlay WireGuard network to manage machines everywhere, a server needs to be set up. [`wireguard-negotiator`](https://github.com/serverwentdown/wireguard-negotiator) is a tool written to automate some of the key exchange, that must be run on a publicly accessible server as root:
29 |
30 | ```
31 | # Create WireGuard interface
32 | ip link add dev wg1 type wireguard
33 | ip addr add fd11:f055:a514:0000::1/64 dev wg1
34 | # Configure the interface once. Assumes the configuration file exists
35 | # See WireGuard docs on how to write this configuraion file
36 | wg setconf wg1 /etc/wireguard/wg1.conf
37 | # Bring up the interface
38 | ip link set wg1 up
39 | wireguard-negotiator server -i wg1 -e [hostname] -l :8080 -I -B
40 | ```
41 |
42 | On every recording machine, the client can be easily configured like so:
43 |
44 | ```
45 | # For now, we have to manually install WireGuard
46 | echo "deb http://deb.debian.org/debian/ unstable main" | sudo tee /etc/apt/sources.list.d/unstable.list
47 | printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n' | sudo tee /etc/apt/preferences.d/limit-unstable
48 | sudo apt update
49 | sudo apt install wireguard
50 | # TODO: validate this section
51 | sudo systemctl enable --now systemd-networkd
52 | wget -O wgn http://[hostname]:8080
53 | chmod +x wgn
54 | sudo ./wgn request -s http://[hostname]:8080
55 | ```
56 |
57 | ## Configuring Rooms
58 |
59 | To specify the room for a specific host, do the following:
60 |
61 | ```
62 | echo the_room_id > ~opentech/room_id
63 | echo teh_room_type > ~opentech/room_type
64 | # Example for Event Hall 2-1:
65 | echo EH2 > ~opentech/room_type
66 | echo EH2-1 > ~opentech/room_id
67 | ```
68 |
69 | See the [Video Equipment Google Sheet](https://docs.google.com/spreadsheets/d/1XLckJRG4ng2NoOfqy-EKca2LJdfC-Z6zfE6Q3FqKoM0/edit?usp=sharing) for the specific IDs. To get edit access, DM @serverwentdown on Telegram.
70 |
71 | This step is optional. This and the following steps should be done for every change in room or setup of the laptop.
72 |
73 | ## Exporting Hosts
74 |
75 | Export all hosts on the overlay network from WireGuard configuration:
76 |
77 | ```
78 | wireguard-negotiator dump > wireguard.list
79 | ```
80 |
81 | This list of IPs can be exported into our Ansible hosts format as such:
82 |
83 | ```
84 | go run event-generate.go opentech < wireguard.list > event
85 | ```
86 |
87 | The script `event-fetch-generate.sh` does the exporting and generating of the `event` inventory.
88 |
89 | ## Running Playbooks
90 |
91 | Before running any Playbooks, switch to SSH authentication:
92 |
93 | ```
94 | ansible-playbook -Kf 8 -kc paramiko -i event ssh-key.yml
95 | ansible -Kf 8 -kc paramiko -b -i event all -a reboot
96 | ```
97 |
98 | Now, plays can be run like so:
99 |
100 | ```
101 | ansible-playbook -Kf 4 -i [inventory] [playbook]
102 | # Example:
103 | ansible-playbook -Kf 4 -i event recorders.yml
104 | ansible-playbook -Kf 4 -i event recorders-stop.yml
105 | ansible-playbook -Kf 4 -i event reboot.yml
106 | ansible-playbook -Kf 4 -i event upgrade.yml
107 | ```
108 |
109 | And run commands like so:
110 |
111 | ```
112 | ansible -Kf 8 -b -i event all -a 'apt install firmware-iwlwifi'
113 | ```
114 |
115 |
--------------------------------------------------------------------------------
/dashboard.json:
--------------------------------------------------------------------------------
1 | {
2 | "__inputs": [
3 | {
4 | "name": "DS_PROMETHEUS",
5 | "label": "Prometheus",
6 | "description": "",
7 | "type": "datasource",
8 | "pluginId": "prometheus",
9 | "pluginName": "Prometheus"
10 | }
11 | ],
12 | "__requires": [
13 | {
14 | "type": "grafana",
15 | "id": "grafana",
16 | "name": "Grafana",
17 | "version": "6.6.2"
18 | },
19 | {
20 | "type": "panel",
21 | "id": "heatmap",
22 | "name": "Heatmap",
23 | "version": ""
24 | },
25 | {
26 | "type": "datasource",
27 | "id": "prometheus",
28 | "name": "Prometheus",
29 | "version": "1.0.0"
30 | },
31 | {
32 | "type": "panel",
33 | "id": "table",
34 | "name": "Table",
35 | "version": ""
36 | }
37 | ],
38 | "annotations": {
39 | "list": [
40 | {
41 | "builtIn": 1,
42 | "datasource": "-- Grafana --",
43 | "enable": true,
44 | "hide": true,
45 | "iconColor": "rgba(0, 211, 255, 1)",
46 | "name": "Annotations & Alerts",
47 | "type": "dashboard"
48 | }
49 | ]
50 | },
51 | "editable": true,
52 | "gnetId": null,
53 | "graphTooltip": 0,
54 | "id": null,
55 | "iteration": 1584259937108,
56 | "links": [],
57 | "panels": [
58 | {
59 | "cards": {
60 | "cardPadding": null,
61 | "cardRound": null
62 | },
63 | "color": {
64 | "cardColor": "#B877D9",
65 | "colorScale": "linear",
66 | "colorScheme": "interpolateSpectral",
67 | "exponent": 0.5,
68 | "max": 1,
69 | "min": 0,
70 | "mode": "opacity"
71 | },
72 | "dataFormat": "tsbuckets",
73 | "datasource": "${DS_PROMETHEUS}",
74 | "gridPos": {
75 | "h": 13,
76 | "w": 6,
77 | "x": 0,
78 | "y": 0
79 | },
80 | "heatmap": {},
81 | "hideZeroBuckets": false,
82 | "highlightCards": true,
83 | "id": 3,
84 | "interval": "1m",
85 | "legend": {
86 | "show": true
87 | },
88 | "options": {},
89 | "reverseYBuckets": false,
90 | "targets": [
91 | {
92 | "expr": "(up * on(instance) group_left(nodename) (node_uname_info))",
93 | "format": "time_series",
94 | "instant": false,
95 | "intervalFactor": 1,
96 | "legendFormat": "{{nodename}}",
97 | "refId": "A"
98 | }
99 | ],
100 | "timeFrom": null,
101 | "timeShift": null,
102 | "title": "Up",
103 | "tooltip": {
104 | "show": false,
105 | "showHistogram": false
106 | },
107 | "type": "heatmap",
108 | "xAxis": {
109 | "show": true
110 | },
111 | "xBucketNumber": null,
112 | "xBucketSize": null,
113 | "yAxis": {
114 | "decimals": null,
115 | "format": "none",
116 | "logBase": 1,
117 | "max": null,
118 | "min": null,
119 | "show": true,
120 | "splitFactor": null
121 | },
122 | "yBucketBound": "middle",
123 | "yBucketNumber": null,
124 | "yBucketSize": null
125 | },
126 | {
127 | "cards": {
128 | "cardPadding": null,
129 | "cardRound": null
130 | },
131 | "color": {
132 | "cardColor": "#b4ff00",
133 | "colorScale": "sqrt",
134 | "colorScheme": "interpolateRdYlGn",
135 | "exponent": 0.5,
136 | "max": 90,
137 | "min": 50,
138 | "mode": "spectrum"
139 | },
140 | "dataFormat": "tsbuckets",
141 | "datasource": "${DS_PROMETHEUS}",
142 | "gridPos": {
143 | "h": 13,
144 | "w": 6,
145 | "x": 6,
146 | "y": 0
147 | },
148 | "heatmap": {},
149 | "hideZeroBuckets": false,
150 | "highlightCards": true,
151 | "id": 2,
152 | "interval": "1m",
153 | "legend": {
154 | "show": true
155 | },
156 | "options": {},
157 | "reverseYBuckets": false,
158 | "targets": [
159 | {
160 | "expr": "avg by (instance) (node_hwmon_temp_celsius{chip=\"platform_coretemp_0\"}) * on(instance) group_left(nodename) (node_uname_info)",
161 | "format": "time_series",
162 | "instant": false,
163 | "intervalFactor": 1,
164 | "legendFormat": "{{nodename}}",
165 | "refId": "A"
166 | }
167 | ],
168 | "timeFrom": null,
169 | "timeShift": null,
170 | "title": "Coretemp (℃)",
171 | "tooltip": {
172 | "show": true,
173 | "showHistogram": false
174 | },
175 | "tooltipDecimals": 1,
176 | "type": "heatmap",
177 | "xAxis": {
178 | "show": true
179 | },
180 | "xBucketNumber": null,
181 | "xBucketSize": null,
182 | "yAxis": {
183 | "decimals": null,
184 | "format": "none",
185 | "logBase": 1,
186 | "max": null,
187 | "min": null,
188 | "show": true,
189 | "splitFactor": null
190 | },
191 | "yBucketBound": "middle",
192 | "yBucketNumber": null,
193 | "yBucketSize": null
194 | },
195 | {
196 | "cards": {
197 | "cardPadding": null,
198 | "cardRound": null
199 | },
200 | "color": {
201 | "cardColor": "#b4ff00",
202 | "colorScale": "sqrt",
203 | "colorScheme": "interpolateRdYlGn",
204 | "exponent": 0.5,
205 | "max": 12,
206 | "min": 0,
207 | "mode": "spectrum"
208 | },
209 | "dataFormat": "tsbuckets",
210 | "datasource": "${DS_PROMETHEUS}",
211 | "gridPos": {
212 | "h": 13,
213 | "w": 6,
214 | "x": 12,
215 | "y": 0
216 | },
217 | "heatmap": {},
218 | "hideZeroBuckets": false,
219 | "highlightCards": true,
220 | "id": 5,
221 | "interval": "1m",
222 | "legend": {
223 | "show": true
224 | },
225 | "options": {},
226 | "reverseYBuckets": false,
227 | "targets": [
228 | {
229 | "expr": "rate(node_disk_written_bytes_total[1m]) / 1024 / 60 * on(instance) group_left(nodename) (node_uname_info)",
230 | "instant": false,
231 | "legendFormat": "{{nodename}}",
232 | "refId": "A"
233 | }
234 | ],
235 | "timeFrom": null,
236 | "timeShift": null,
237 | "title": "Disk Write (KB/s)",
238 | "tooltip": {
239 | "show": true,
240 | "showHistogram": false
241 | },
242 | "tooltipDecimals": 1,
243 | "type": "heatmap",
244 | "xAxis": {
245 | "show": true
246 | },
247 | "xBucketNumber": null,
248 | "xBucketSize": null,
249 | "yAxis": {
250 | "decimals": null,
251 | "format": "none",
252 | "logBase": 1,
253 | "max": null,
254 | "min": null,
255 | "show": true,
256 | "splitFactor": null
257 | },
258 | "yBucketBound": "middle",
259 | "yBucketNumber": null,
260 | "yBucketSize": null
261 | },
262 | {
263 | "cards": {
264 | "cardPadding": null,
265 | "cardRound": null
266 | },
267 | "color": {
268 | "cardColor": "#b4ff00",
269 | "colorScale": "sqrt",
270 | "colorScheme": "interpolateRdYlGn",
271 | "exponent": 0.5,
272 | "max": 0,
273 | "min": -75,
274 | "mode": "spectrum"
275 | },
276 | "dataFormat": "tsbuckets",
277 | "datasource": "${DS_PROMETHEUS}",
278 | "gridPos": {
279 | "h": 13,
280 | "w": 6,
281 | "x": 18,
282 | "y": 0
283 | },
284 | "heatmap": {},
285 | "hideZeroBuckets": false,
286 | "highlightCards": true,
287 | "id": 6,
288 | "interval": "1m",
289 | "legend": {
290 | "show": true
291 | },
292 | "options": {},
293 | "reverseYBuckets": false,
294 | "targets": [
295 | {
296 | "expr": "-node_filesystem_avail_bytes{mountpoint=\"/\"} / 1024 / 1024 / 1024 * on(instance) group_left(nodename) (node_uname_info)",
297 | "format": "time_series",
298 | "instant": false,
299 | "legendFormat": "{{nodename}}",
300 | "refId": "A"
301 | }
302 | ],
303 | "timeFrom": null,
304 | "timeShift": null,
305 | "title": "Disk Available (GB)",
306 | "tooltip": {
307 | "show": true,
308 | "showHistogram": false
309 | },
310 | "tooltipDecimals": 1,
311 | "type": "heatmap",
312 | "xAxis": {
313 | "show": true
314 | },
315 | "xBucketNumber": null,
316 | "xBucketSize": null,
317 | "yAxis": {
318 | "decimals": null,
319 | "format": "none",
320 | "logBase": 1,
321 | "max": null,
322 | "min": null,
323 | "show": true,
324 | "splitFactor": null
325 | },
326 | "yBucketBound": "middle",
327 | "yBucketNumber": null,
328 | "yBucketSize": null
329 | },
330 | {
331 | "cards": {
332 | "cardPadding": null,
333 | "cardRound": null
334 | },
335 | "color": {
336 | "cardColor": "#5794F2",
337 | "colorScale": "linear",
338 | "colorScheme": "interpolateGreens",
339 | "exponent": 0.5,
340 | "max": 0,
341 | "min": -100,
342 | "mode": "opacity"
343 | },
344 | "dataFormat": "tsbuckets",
345 | "datasource": "${DS_PROMETHEUS}",
346 | "gridPos": {
347 | "h": 13,
348 | "w": 6,
349 | "x": 0,
350 | "y": 13
351 | },
352 | "heatmap": {},
353 | "hideZeroBuckets": false,
354 | "highlightCards": true,
355 | "id": 7,
356 | "interval": "1m",
357 | "legend": {
358 | "show": true
359 | },
360 | "options": {},
361 | "reverseYBuckets": false,
362 | "targets": [
363 | {
364 | "expr": "node_wifi_station_signal_dbm * on(instance) group_left(nodename) (node_uname_info)",
365 | "format": "time_series",
366 | "instant": false,
367 | "intervalFactor": 1,
368 | "legendFormat": "{{nodename}}",
369 | "refId": "A"
370 | }
371 | ],
372 | "timeFrom": null,
373 | "timeShift": null,
374 | "title": "WiFi RSSI (dBm)",
375 | "tooltip": {
376 | "show": true,
377 | "showHistogram": false
378 | },
379 | "type": "heatmap",
380 | "xAxis": {
381 | "show": true
382 | },
383 | "xBucketNumber": null,
384 | "xBucketSize": null,
385 | "yAxis": {
386 | "decimals": null,
387 | "format": "none",
388 | "logBase": 1,
389 | "max": null,
390 | "min": null,
391 | "show": true,
392 | "splitFactor": null
393 | },
394 | "yBucketBound": "middle",
395 | "yBucketNumber": null,
396 | "yBucketSize": null
397 | },
398 | {
399 | "cards": {
400 | "cardPadding": null,
401 | "cardRound": null
402 | },
403 | "color": {
404 | "cardColor": "#b4ff00",
405 | "colorScale": "sqrt",
406 | "colorScheme": "interpolateRdYlGn",
407 | "exponent": 0.5,
408 | "max": 9,
409 | "min": 0,
410 | "mode": "spectrum"
411 | },
412 | "dataFormat": "tsbuckets",
413 | "datasource": "${DS_PROMETHEUS}",
414 | "gridPos": {
415 | "h": 13,
416 | "w": 6,
417 | "x": 6,
418 | "y": 13
419 | },
420 | "heatmap": {},
421 | "hideZeroBuckets": false,
422 | "highlightCards": true,
423 | "id": 8,
424 | "interval": "1m",
425 | "legend": {
426 | "show": true
427 | },
428 | "options": {},
429 | "reverseYBuckets": false,
430 | "targets": [
431 | {
432 | "expr": "node_load1 * on(instance) group_left(nodename) (node_uname_info)",
433 | "format": "time_series",
434 | "instant": false,
435 | "intervalFactor": 1,
436 | "legendFormat": "{{nodename}}",
437 | "refId": "A"
438 | }
439 | ],
440 | "timeFrom": null,
441 | "timeShift": null,
442 | "title": "Load",
443 | "tooltip": {
444 | "show": true,
445 | "showHistogram": false
446 | },
447 | "tooltipDecimals": 1,
448 | "type": "heatmap",
449 | "xAxis": {
450 | "show": true
451 | },
452 | "xBucketNumber": null,
453 | "xBucketSize": null,
454 | "yAxis": {
455 | "decimals": null,
456 | "format": "none",
457 | "logBase": 1,
458 | "max": null,
459 | "min": null,
460 | "show": true,
461 | "splitFactor": null
462 | },
463 | "yBucketBound": "middle",
464 | "yBucketNumber": null,
465 | "yBucketSize": null
466 | },
467 | {
468 | "columns": [],
469 | "datasource": "${DS_PROMETHEUS}",
470 | "fontSize": "100%",
471 | "gridPos": {
472 | "h": 13,
473 | "w": 6,
474 | "x": 12,
475 | "y": 13
476 | },
477 | "id": 11,
478 | "interval": "1m",
479 | "options": {},
480 | "pageSize": null,
481 | "showHeader": true,
482 | "sort": {
483 | "col": null,
484 | "desc": false
485 | },
486 | "styles": [
487 | {
488 | "alias": "",
489 | "align": "auto",
490 | "colorMode": null,
491 | "colors": [
492 | "rgba(245, 54, 54, 0.9)",
493 | "rgba(237, 129, 40, 0.89)",
494 | "rgba(50, 172, 45, 0.97)"
495 | ],
496 | "dateFormat": "YYYY-MM-DD HH:mm:ss",
497 | "decimals": 2,
498 | "mappingType": 1,
499 | "pattern": "Time",
500 | "thresholds": [],
501 | "type": "hidden",
502 | "unit": "short"
503 | },
504 | {
505 | "alias": "",
506 | "align": "auto",
507 | "colorMode": null,
508 | "colors": [
509 | "rgba(245, 54, 54, 0.9)",
510 | "rgba(237, 129, 40, 0.89)",
511 | "rgba(50, 172, 45, 0.97)"
512 | ],
513 | "dateFormat": "YYYY-MM-DD HH:mm:ss",
514 | "decimals": 2,
515 | "mappingType": 1,
516 | "pattern": "Value",
517 | "thresholds": [],
518 | "type": "hidden",
519 | "unit": "short"
520 | },
521 | {
522 | "alias": "IP",
523 | "align": "",
524 | "colorMode": null,
525 | "colors": [
526 | "rgba(245, 54, 54, 0.9)",
527 | "rgba(237, 129, 40, 0.89)",
528 | "rgba(50, 172, 45, 0.97)"
529 | ],
530 | "dateFormat": "YYYY-MM-DD HH:mm:ss",
531 | "decimals": 2,
532 | "mappingType": 2,
533 | "pattern": "instance",
534 | "preserveFormat": false,
535 | "sanitize": true,
536 | "thresholds": [],
537 | "type": "string",
538 | "unit": "short",
539 | "valueMaps": [
540 | {
541 | "text": "",
542 | "value": ":9100"
543 | }
544 | ]
545 | },
546 | {
547 | "alias": "",
548 | "align": "auto",
549 | "colorMode": null,
550 | "colors": [
551 | "rgba(245, 54, 54, 0.9)",
552 | "rgba(237, 129, 40, 0.89)",
553 | "rgba(50, 172, 45, 0.97)"
554 | ],
555 | "dateFormat": "YYYY-MM-DD HH:mm:ss",
556 | "decimals": 2,
557 | "mappingType": 1,
558 | "pattern": "job",
559 | "thresholds": [],
560 | "type": "hidden",
561 | "unit": "short"
562 | },
563 | {
564 | "alias": "Name",
565 | "align": "",
566 | "colorMode": null,
567 | "colors": [
568 | "rgba(245, 54, 54, 0.9)",
569 | "rgba(237, 129, 40, 0.89)",
570 | "rgba(50, 172, 45, 0.97)"
571 | ],
572 | "dateFormat": "YYYY-MM-DD HH:mm:ss",
573 | "decimals": 2,
574 | "link": false,
575 | "mappingType": 1,
576 | "pattern": "nodename",
577 | "sanitize": true,
578 | "thresholds": [],
579 | "type": "string",
580 | "unit": "short"
581 | },
582 | {
583 | "alias": "Room Type",
584 | "align": "auto",
585 | "colorMode": null,
586 | "colors": [
587 | "rgba(245, 54, 54, 0.9)",
588 | "rgba(237, 129, 40, 0.89)",
589 | "rgba(50, 172, 45, 0.97)"
590 | ],
591 | "dateFormat": "YYYY-MM-DD HH:mm:ss",
592 | "decimals": 2,
593 | "mappingType": 1,
594 | "pattern": "type",
595 | "sanitize": true,
596 | "thresholds": [],
597 | "type": "string",
598 | "unit": "short"
599 | },
600 | {
601 | "alias": "Room Name",
602 | "align": "auto",
603 | "colorMode": null,
604 | "colors": [
605 | "rgba(245, 54, 54, 0.9)",
606 | "rgba(237, 129, 40, 0.89)",
607 | "rgba(50, 172, 45, 0.97)"
608 | ],
609 | "dateFormat": "YYYY-MM-DD HH:mm:ss",
610 | "decimals": 2,
611 | "mappingType": 1,
612 | "pattern": "id",
613 | "sanitize": true,
614 | "thresholds": [],
615 | "type": "string",
616 | "unit": "short"
617 | }
618 | ],
619 | "targets": [
620 | {
621 | "expr": "room * on(instance) group_left(nodename) (node_uname_info)",
622 | "format": "table",
623 | "instant": true,
624 | "legendFormat": "",
625 | "refId": "A"
626 | }
627 | ],
628 | "timeFrom": null,
629 | "timeShift": null,
630 | "title": "Hosts",
631 | "transform": "table",
632 | "type": "table"
633 | },
634 | {
635 | "cards": {
636 | "cardPadding": null,
637 | "cardRound": null
638 | },
639 | "color": {
640 | "cardColor": "#b4ff00",
641 | "colorScale": "sqrt",
642 | "colorScheme": "interpolateRdYlGn",
643 | "exponent": 0.5,
644 | "max": 0,
645 | "min": -2,
646 | "mode": "spectrum"
647 | },
648 | "dataFormat": "tsbuckets",
649 | "datasource": "${DS_PROMETHEUS}",
650 | "gridPos": {
651 | "h": 13,
652 | "w": 6,
653 | "x": 18,
654 | "y": 13
655 | },
656 | "heatmap": {},
657 | "hideZeroBuckets": false,
658 | "highlightCards": true,
659 | "id": 9,
660 | "interval": "1m",
661 | "legend": {
662 | "show": true
663 | },
664 | "options": {},
665 | "reverseYBuckets": false,
666 | "targets": [
667 | {
668 | "expr": "-node_memory_MemFree_bytes / 1024 / 1024 / 1024 * on(instance) group_left(nodename) (node_uname_info)",
669 | "format": "time_series",
670 | "instant": false,
671 | "legendFormat": "{{nodename}}",
672 | "refId": "A"
673 | }
674 | ],
675 | "timeFrom": null,
676 | "timeShift": null,
677 | "title": "Memory Free (GB)",
678 | "tooltip": {
679 | "show": true,
680 | "showHistogram": false
681 | },
682 | "tooltipDecimals": 3,
683 | "type": "heatmap",
684 | "xAxis": {
685 | "show": true
686 | },
687 | "xBucketNumber": null,
688 | "xBucketSize": null,
689 | "yAxis": {
690 | "decimals": null,
691 | "format": "none",
692 | "logBase": 1,
693 | "max": null,
694 | "min": null,
695 | "show": true,
696 | "splitFactor": null
697 | },
698 | "yBucketBound": "middle",
699 | "yBucketNumber": null,
700 | "yBucketSize": null
701 | }
702 | ],
703 | "refresh": "30s",
704 | "schemaVersion": 22,
705 | "style": "dark",
706 | "tags": [],
707 | "templating": {
708 | "list": [
709 | {
710 | "datasource": null,
711 | "filters": [],
712 | "hide": 0,
713 | "label": "",
714 | "name": "Filters",
715 | "skipUrlSync": false,
716 | "type": "adhoc"
717 | }
718 | ]
719 | },
720 | "time": {
721 | "from": "now-15m",
722 | "to": "now"
723 | },
724 | "timepicker": {
725 | "refresh_intervals": [
726 | "5s",
727 | "10s",
728 | "30s",
729 | "1m",
730 | "5m",
731 | "15m",
732 | "30m",
733 | "1h",
734 | "2h",
735 | "1d"
736 | ]
737 | },
738 | "timezone": "",
739 | "title": "Overview",
740 | "uid": "xCFQeAXWk",
741 | "version": 17
742 | }
743 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/ansible/roles/recorder/templates/obs-studio/basic/scenes/event_id.json.j2:
--------------------------------------------------------------------------------
1 | {
2 | "AuxAudioDevice1": {
3 | "deinterlace_field_order": 0,
4 | "deinterlace_mode": 0,
5 | "enabled": true,
6 | {% if room_type == "setup1" %}
7 | "flags": 2,
8 | {% elif room_type == "setup2" %}
9 | "flags": 2,
10 | {% elif room_type == "setup3" %}
11 | "flags": 2,
12 | {% else %}
13 | "flags": 2,
14 | {% endif %}
15 | "hotkeys": {
16 | "libobs.mute": [],
17 | "libobs.push-to-mute": [],
18 | "libobs.push-to-talk": [],
19 | "libobs.unmute": []
20 | },
21 | "id": "pulse_input_capture",
22 | "mixers": 255,
23 | "monitoring_type": {{ monitoring_type }},
24 | {% if room_type == "setup1" %}
25 | "muted": false,
26 | {% elif room_type == "setup2" %}
27 | "muted": true,
28 | {% elif room_type == "setup3" %}
29 | "muted": false,
30 | {% else %}
31 | "muted": false,
32 | {% endif %}
33 | "name": "Microphone",
34 | "private_settings": {},
35 | "push-to-mute": false,
36 | "push-to-mute-delay": 0,
37 | "push-to-talk": false,
38 | "push-to-talk-delay": 0,
39 | "settings": {
40 | {% if room_type == "setup1" %}
41 | "device_id": "alsa_input.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00.analog-stereo"
42 | {% elif room_type == "setup2" %}
43 | "device_id": "alsa_input.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00.analog-stereo"
44 | {% elif room_type == "setup3" %}
45 | "device_id": "alsa_input.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00.analog-stereo"
46 | {% else %}
47 | "device_id": "alsa_input.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00.analog-stereo"
48 | {% endif %}
49 | },
50 | "sync": 0,
51 | "volume": 1.0
52 | },
53 | "AuxAudioDevice2": {
54 | "deinterlace_field_order": 0,
55 | "deinterlace_mode": 0,
56 | "enabled": true,
57 | "flags": 0,
58 | "hotkeys": {
59 | "libobs.mute": [],
60 | "libobs.push-to-mute": [],
61 | "libobs.push-to-talk": [],
62 | "libobs.unmute": []
63 | },
64 | "id": "pulse_input_capture",
65 | "mixers": 255,
66 | "monitoring_type": {{ monitoring_type }},
67 | "muted": true,
68 | "name": "Slides Audio",
69 | "private_settings": {},
70 | "push-to-mute": false,
71 | "push-to-mute-delay": 0,
72 | "push-to-talk": false,
73 | "push-to-talk-delay": 0,
74 | "settings": {
75 | {% if room_type == "setup1" %}
76 | "device_id": "alsa_input.usb-VXIS_Inc_ACASIS-02.analog-stereo"
77 | {% elif room_type == "setup2" %}
78 | "device_id": "alsa_input.usb-VXIS_Inc_ACASIS-02.analog-stereo"
79 | {% elif room_type == "setup3" %}
80 | "device_id": "alsa_input.usb-VXIS_Inc_ACASIS-02.analog-stereo"
81 | {% else %}
82 | "device_id": "alsa_input.usb-VXIS_Inc_ACASIS-02.analog-stereo"
83 | {% endif %}
84 | },
85 | "sync": 0,
86 | "volume": 1.0
87 | },
88 | "AuxAudioDevice3": {
89 | "deinterlace_field_order": 0,
90 | "deinterlace_mode": 0,
91 | "enabled": true,
92 | "flags": 0,
93 | "hotkeys": {
94 | "libobs.mute": [],
95 | "libobs.push-to-mute": [],
96 | "libobs.push-to-talk": [],
97 | "libobs.unmute": []
98 | },
99 | "id": "pulse_input_capture",
100 | "mixers": 255,
101 | "monitoring_type": {{ monitoring_type }},
102 | {% if room_type == "setup1" %}
103 | "muted": true,
104 | {% elif room_type == "setup2" %}
105 | "muted": false,
106 | {% elif room_type == "setup3" %}
107 | "muted": true,
108 | {% else %}
109 | "muted": true,
110 | {% endif %}
111 | "name": "Emergency Audio",
112 | "private_settings": {},
113 | "push-to-mute": false,
114 | "push-to-mute-delay": 0,
115 | "push-to-talk": false,
116 | "push-to-talk-delay": 0,
117 | "settings": {
118 | {% if room_type == "setup1" %}
119 | "device_id": "alsa_input.{{ webcam_name }}-02.analog-stereo"
120 | {% elif room_type == "setup2" %}
121 | "device_id": "alsa_input.{{ webcam_name }}-02.analog-stereo"
122 | {% elif room_type == "setup3" %}
123 | "device_id": "alsa_input.{{ webcam_name }}-02.analog-stereo"
124 | {% else %}
125 | "device_id": "alsa_input.{{ webcam_name }}-02.analog-stereo"
126 | {% endif %}
127 | },
128 | "sync": 0,
129 | "volume": 1.0
130 | },
131 | "current_program_scene": "Slides Primary 16:9",
132 | "current_scene": "Slides Primary 16:9",
133 | "current_transition": "Fade",
134 | "modules": {
135 | "output-timer": {
136 | "autoStartRecordTimer": false,
137 | "autoStartStreamTimer": false,
138 | "recordTimerHours": 0,
139 | "recordTimerMinutes": 0,
140 | "recordTimerSeconds": 30,
141 | "streamTimerHours": 0,
142 | "streamTimerMinutes": 0,
143 | "streamTimerSeconds": 30
144 | }
145 | },
146 | "name": "{{ event.id }}",
147 | "preview_locked": true,
148 | "quick_transitions": [
149 | {
150 | "duration": 300,
151 | "hotkeys": [],
152 | "id": 1,
153 | "name": "Cut"
154 | },
155 | {
156 | "duration": 300,
157 | "hotkeys": [],
158 | "id": 2,
159 | "name": "Fade"
160 | }
161 | ],
162 | "scaling_enabled": false,
163 | "scaling_level": 0,
164 | "scaling_off_x": 0.0,
165 | "scaling_off_y": 0.0,
166 | "scene_order": [
167 | {
168 | "name": "Camera Only"
169 | },
170 | {
171 | "name": "Slides Primary 16:9"
172 | },
173 | {
174 | "name": "Camera Primary 16:9"
175 | },
176 | {
177 | "name": "Slides Only 16:9"
178 | },
179 | {
180 | "name": "Slides Primary 4:3"
181 | },
182 | {
183 | "name": "Camera Primary 4:3"
184 | },
185 | {
186 | "name": "Slides Only 4:3"
187 | },
188 | {
189 | "name": "Blank"
190 | }
191 | ],
192 | "sources": [
193 | {
194 | "deinterlace_field_order": 0,
195 | "deinterlace_mode": 0,
196 | "enabled": true,
197 | "flags": 0,
198 | "hotkeys": {},
199 | "id": "image_source",
200 | "mixers": 0,
201 | "monitoring_type": 0,
202 | "muted": false,
203 | "name": "Background (blank)",
204 | "private_settings": {},
205 | "push-to-mute": false,
206 | "push-to-mute-delay": 0,
207 | "push-to-talk": false,
208 | "push-to-talk-delay": 0,
209 | "settings": {
210 | "file": "{{ mixer_user.home }}/artwork/{{ event.id }}/blank.png",
211 | "unload": true
212 | },
213 | "sync": 0,
214 | "volume": 1.0
215 | },
216 | {
217 | "deinterlace_field_order": 0,
218 | "deinterlace_mode": 0,
219 | "enabled": true,
220 | "flags": 0,
221 | "hotkeys": {
222 | "OBSBasic.SelectScene": [
223 | {
224 | "key": "OBS_KEY_F9"
225 | }
226 | ]
227 | },
228 | "id": "scene",
229 | "mixers": 0,
230 | "monitoring_type": 0,
231 | "muted": false,
232 | "name": "Blank",
233 | "private_settings": {},
234 | "push-to-mute": false,
235 | "push-to-mute-delay": 0,
236 | "push-to-talk": false,
237 | "push-to-talk-delay": 0,
238 | "settings": {
239 | "id_counter": 1,
240 | "items": [
241 | {
242 | "align": 5,
243 | "bounds": {
244 | "x": 0.0,
245 | "y": 0.0
246 | },
247 | "bounds_align": 0,
248 | "bounds_type": 0,
249 | "crop_bottom": 0,
250 | "crop_left": 0,
251 | "crop_right": 0,
252 | "crop_top": 0,
253 | "id": 1,
254 | "locked": true,
255 | "name": "Background (blank)",
256 | "pos": {
257 | "x": 0.0,
258 | "y": 0.0
259 | },
260 | "private_settings": {},
261 | "rot": 0.0,
262 | "scale": {
263 | "x": 1.0,
264 | "y": 1.0
265 | },
266 | "scale_filter": "disable",
267 | "visible": true
268 | }
269 | ]
270 | },
271 | "sync": 0,
272 | "volume": 1.0
273 | },
274 | {
275 | "deinterlace_field_order": 0,
276 | "deinterlace_mode": 0,
277 | "enabled": true,
278 | "flags": 0,
279 | "hotkeys": {
280 | "OBSBasic.SelectScene": [
281 | {
282 | "key": "OBS_KEY_F7"
283 | }
284 | ]
285 | },
286 | "id": "scene",
287 | "mixers": 0,
288 | "monitoring_type": 0,
289 | "muted": false,
290 | "name": "Slides Only 4:3",
291 | "private_settings": {},
292 | "push-to-mute": false,
293 | "push-to-mute-delay": 0,
294 | "push-to-talk": false,
295 | "push-to-talk-delay": 0,
296 | "settings": {
297 | "id_counter": 1,
298 | "items": [
299 | {
300 | "align": 5,
301 | "bounds": {
302 | "x": 1440.0,
303 | "y": 1080.0
304 | },
305 | "bounds_align": 0,
306 | "bounds_type": 1,
307 | "crop_bottom": 0,
308 | "crop_left": 0,
309 | "crop_right": 0,
310 | "crop_top": 0,
311 | "id": 1,
312 | "locked": true,
313 | "name": "Slides",
314 | "pos": {
315 | "x": 240.0,
316 | "y": 0.0
317 | },
318 | "private_settings": {},
319 | "rot": 0.0,
320 | "scale": {
321 | "x": 1.0,
322 | "y": 1.0
323 | },
324 | "scale_filter": "disable",
325 | "visible": true
326 | }
327 | ]
328 | },
329 | "sync": 0,
330 | "volume": 1.0
331 | },
332 | {
333 | "deinterlace_field_order": 0,
334 | "deinterlace_mode": 0,
335 | "enabled": true,
336 | "flags": 0,
337 | "hotkeys": {
338 | "OBSBasic.SelectScene": [
339 | {
340 | "key": "OBS_KEY_F3"
341 | }
342 | ]
343 | },
344 | "id": "scene",
345 | "mixers": 0,
346 | "monitoring_type": 0,
347 | "muted": false,
348 | "name": "Slides Only 16:9",
349 | "private_settings": {},
350 | "push-to-mute": false,
351 | "push-to-mute-delay": 0,
352 | "push-to-talk": false,
353 | "push-to-talk-delay": 0,
354 | "settings": {
355 | "id_counter": 1,
356 | "items": [
357 | {
358 | "align": 5,
359 | "bounds": {
360 | "x": 1920.0,
361 | "y": 1080.0
362 | },
363 | "bounds_align": 0,
364 | "bounds_type": 1,
365 | "crop_bottom": 0,
366 | "crop_left": 0,
367 | "crop_right": 0,
368 | "crop_top": 0,
369 | "id": 1,
370 | "locked": true,
371 | "name": "Slides",
372 | "pos": {
373 | "x": 0.0,
374 | "y": 0.0
375 | },
376 | "private_settings": {},
377 | "rot": 0.0,
378 | "scale": {
379 | "x": 1.0,
380 | "y": 1.0
381 | },
382 | "scale_filter": "disable",
383 | "visible": true
384 | }
385 | ]
386 | },
387 | "sync": 0,
388 | "volume": 1.0
389 | },
390 | {
391 | "deinterlace_field_order": 0,
392 | "deinterlace_mode": 0,
393 | "enabled": true,
394 | "flags": 0,
395 | "hotkeys": {
396 | "OBSBasic.SelectScene": [
397 | {
398 | "key": "OBS_KEY_F10"
399 | },
400 | {
401 | "key": "OBS_KEY_F4"
402 | },
403 | {
404 | "key": "OBS_KEY_F8"
405 | }
406 | ]
407 | },
408 | "id": "scene",
409 | "mixers": 0,
410 | "monitoring_type": 0,
411 | "muted": false,
412 | "name": "Camera Only",
413 | "private_settings": {},
414 | "push-to-mute": false,
415 | "push-to-mute-delay": 0,
416 | "push-to-talk": false,
417 | "push-to-talk-delay": 0,
418 | "settings": {
419 | "id_counter": 1,
420 | "items": [
421 | {
422 | "align": 5,
423 | "bounds": {
424 | "x": 1920.0,
425 | "y": 1080.0
426 | },
427 | "bounds_align": 0,
428 | "bounds_type": 3,
429 | "crop_bottom": 0,
430 | "crop_left": 0,
431 | "crop_right": 0,
432 | "crop_top": 0,
433 | "id": 1,
434 | "locked": true,
435 | "name": "Camera",
436 | "pos": {
437 | "x": 0.0,
438 | "y": 0.0
439 | },
440 | "private_settings": {},
441 | "rot": 0.0,
442 | "scale": {
443 | "x": 1.0,
444 | "y": 1.0
445 | },
446 | "scale_filter": "disable",
447 | "visible": true
448 | }
449 | ]
450 | },
451 | "sync": 0,
452 | "volume": 1.0
453 | },
454 | {
455 | "deinterlace_field_order": 0,
456 | "deinterlace_mode": 0,
457 | "enabled": true,
458 | "filters": [
459 | {
460 | "deinterlace_field_order": 0,
461 | "deinterlace_mode": 0,
462 | "enabled": true,
463 | "flags": 0,
464 | "hotkeys": {},
465 | "id": "color_key_filter",
466 | "mixers": 0,
467 | "monitoring_type": 0,
468 | "muted": false,
469 | "name": "Color Key",
470 | "private_settings": {},
471 | "push-to-mute": false,
472 | "push-to-mute-delay": 0,
473 | "push-to-talk": false,
474 | "push-to-talk-delay": 0,
475 | "settings": {
476 | "key_color": 4294639610,
477 | "key_color_type": "custom",
478 | "similarity": 1,
479 | "smoothness": 1
480 | },
481 | "sync": 0,
482 | "volume": 1.0
483 | }
484 | ],
485 | "flags": 0,
486 | "hotkeys": {},
487 | "id": "image_source",
488 | "mixers": 0,
489 | "monitoring_type": 0,
490 | "muted": false,
491 | "name": "Background (side-by-side-43-reverse)",
492 | "private_settings": {},
493 | "push-to-mute": false,
494 | "push-to-mute-delay": 0,
495 | "push-to-talk": false,
496 | "push-to-talk-delay": 0,
497 | "settings": {
498 | "file": "{{ mixer_user.home }}/artwork/{{ event.id }}/side-by-side-43-reverse.png",
499 | "unload": true
500 | },
501 | "sync": 0,
502 | "volume": 1.0
503 | },
504 | {
505 | "deinterlace_field_order": 0,
506 | "deinterlace_mode": 0,
507 | "enabled": true,
508 | "flags": 0,
509 | "hotkeys": {
510 | "OBSBasic.SelectScene": [
511 | {
512 | "key": "OBS_KEY_F6"
513 | }
514 | ]
515 | },
516 | "id": "scene",
517 | "mixers": 0,
518 | "monitoring_type": 0,
519 | "muted": false,
520 | "name": "Camera Primary 4:3",
521 | "private_settings": {},
522 | "push-to-mute": false,
523 | "push-to-mute-delay": 0,
524 | "push-to-talk": false,
525 | "push-to-talk-delay": 0,
526 | "settings": {
527 | "id_counter": 3,
528 | "items": [
529 | {
530 | "align": 5,
531 | "bounds": {
532 | "x": 1120.0,
533 | "y": 1000.0
534 | },
535 | "bounds_align": 0,
536 | "bounds_type": 3,
537 | "crop_bottom": 0,
538 | "crop_left": 0,
539 | "crop_right": 0,
540 | "crop_top": 0,
541 | "id": 3,
542 | "locked": true,
543 | "name": "Camera",
544 | "pos": {
545 | "x": 40.0,
546 | "y": 40.0
547 | },
548 | "private_settings": {},
549 | "rot": 0.0,
550 | "scale": {
551 | "x": 1.0,
552 | "y": 1.0
553 | },
554 | "scale_filter": "disable",
555 | "visible": true
556 | },
557 | {
558 | "align": 5,
559 | "bounds": {
560 | "x": 680.0,
561 | "y": 510.0
562 | },
563 | "bounds_align": 0,
564 | "bounds_type": 1,
565 | "crop_bottom": 0,
566 | "crop_left": 0,
567 | "crop_right": 0,
568 | "crop_top": 0,
569 | "id": 2,
570 | "locked": true,
571 | "name": "Slides",
572 | "pos": {
573 | "x": 1200.0,
574 | "y": 530.0
575 | },
576 | "private_settings": {},
577 | "rot": 0.0,
578 | "scale": {
579 | "x": 1.0,
580 | "y": 1.0
581 | },
582 | "scale_filter": "disable",
583 | "visible": true
584 | },
585 | {
586 | "align": 5,
587 | "bounds": {
588 | "x": 0.0,
589 | "y": 0.0
590 | },
591 | "bounds_align": 0,
592 | "bounds_type": 0,
593 | "crop_bottom": 0,
594 | "crop_left": 0,
595 | "crop_right": 0,
596 | "crop_top": 0,
597 | "id": 1,
598 | "locked": true,
599 | "name": "Background (side-by-side-43-reverse)",
600 | "pos": {
601 | "x": 0.0,
602 | "y": 0.0
603 | },
604 | "private_settings": {},
605 | "rot": 0.0,
606 | "scale": {
607 | "x": 1.0,
608 | "y": 1.0
609 | },
610 | "scale_filter": "disable",
611 | "visible": true
612 | }
613 | ]
614 | },
615 | "sync": 0,
616 | "volume": 1.0
617 | },
618 | {
619 | "deinterlace_field_order": 0,
620 | "deinterlace_mode": 0,
621 | "enabled": true,
622 | "filters": [
623 | {
624 | "deinterlace_field_order": 0,
625 | "deinterlace_mode": 0,
626 | "enabled": true,
627 | "flags": 0,
628 | "hotkeys": {},
629 | "id": "color_key_filter",
630 | "mixers": 0,
631 | "monitoring_type": 0,
632 | "muted": false,
633 | "name": "Color Key",
634 | "private_settings": {},
635 | "push-to-mute": false,
636 | "push-to-mute-delay": 0,
637 | "push-to-talk": false,
638 | "push-to-talk-delay": 0,
639 | "settings": {
640 | "key_color": 4294639610,
641 | "key_color_type": "custom",
642 | "similarity": 1,
643 | "smoothness": 1
644 | },
645 | "sync": 0,
646 | "volume": 1.0
647 | }
648 | ],
649 | "flags": 0,
650 | "hotkeys": {},
651 | "id": "image_source",
652 | "mixers": 0,
653 | "monitoring_type": 0,
654 | "muted": false,
655 | "name": "Background (side-by-side-43)",
656 | "private_settings": {},
657 | "push-to-mute": false,
658 | "push-to-mute-delay": 0,
659 | "push-to-talk": false,
660 | "push-to-talk-delay": 0,
661 | "settings": {
662 | "file": "{{ mixer_user.home }}/artwork/{{ event.id }}/side-by-side-43.png",
663 | "unload": true
664 | },
665 | "sync": 0,
666 | "volume": 1.0
667 | },
668 | {
669 | "deinterlace_field_order": 0,
670 | "deinterlace_mode": 0,
671 | "enabled": true,
672 | "flags": 0,
673 | "hotkeys": {
674 | "OBSBasic.SelectScene": [
675 | {
676 | "key": "OBS_KEY_F5"
677 | }
678 | ]
679 | },
680 | "id": "scene",
681 | "mixers": 0,
682 | "monitoring_type": 0,
683 | "muted": false,
684 | "name": "Slides Primary 4:3",
685 | "private_settings": {},
686 | "push-to-mute": false,
687 | "push-to-mute-delay": 0,
688 | "push-to-talk": false,
689 | "push-to-talk-delay": 0,
690 | "settings": {
691 | "id_counter": 3,
692 | "items": [
693 | {
694 | "align": 5,
695 | "bounds": {
696 | "x": 480.0,
697 | "y": 420.0
698 | },
699 | "bounds_align": 0,
700 | "bounds_type": 3,
701 | "crop_bottom": 0,
702 | "crop_left": 0,
703 | "crop_right": 0,
704 | "crop_top": 0,
705 | "id": 1,
706 | "locked": true,
707 | "name": "Camera",
708 | "pos": {
709 | "x": 1400.0,
710 | "y": 620.0
711 | },
712 | "private_settings": {},
713 | "rot": 0.0,
714 | "scale": {
715 | "x": 1.0,
716 | "y": 1.0
717 | },
718 | "scale_filter": "disable",
719 | "visible": true
720 | },
721 | {
722 | "align": 5,
723 | "bounds": {
724 | "x": 1320.0,
725 | "y": 990.0
726 | },
727 | "bounds_align": 0,
728 | "bounds_type": 1,
729 | "crop_bottom": 0,
730 | "crop_left": 0,
731 | "crop_right": 0,
732 | "crop_top": 0,
733 | "id": 2,
734 | "locked": true,
735 | "name": "Slides",
736 | "pos": {
737 | "x": 40.0,
738 | "y": 40.0
739 | },
740 | "private_settings": {},
741 | "rot": 0.0,
742 | "scale": {
743 | "x": 1.5,
744 | "y": 1.5
745 | },
746 | "scale_filter": "disable",
747 | "visible": true
748 | },
749 | {
750 | "align": 5,
751 | "bounds": {
752 | "x": 0.0,
753 | "y": 0.0
754 | },
755 | "bounds_align": 0,
756 | "bounds_type": 0,
757 | "crop_bottom": 0,
758 | "crop_left": 0,
759 | "crop_right": 0,
760 | "crop_top": 0,
761 | "id": 3,
762 | "locked": true,
763 | "name": "Background (side-by-side-43)",
764 | "pos": {
765 | "x": 0.0,
766 | "y": 0.0
767 | },
768 | "private_settings": {},
769 | "rot": 0.0,
770 | "scale": {
771 | "x": 1.0,
772 | "y": 1.0
773 | },
774 | "scale_filter": "disable",
775 | "visible": true
776 | }
777 | ]
778 | },
779 | "sync": 0,
780 | "volume": 1.0
781 | },
782 | {
783 | "deinterlace_field_order": 0,
784 | "deinterlace_mode": 0,
785 | "enabled": true,
786 | "flags": 0,
787 | "hotkeys": {
788 | "OBSBasic.SelectScene": [
789 | {
790 | "key": "OBS_KEY_F1"
791 | }
792 | ]
793 | },
794 | "id": "scene",
795 | "mixers": 0,
796 | "monitoring_type": 0,
797 | "muted": false,
798 | "name": "Slides Primary 16:9",
799 | "private_settings": {},
800 | "push-to-mute": false,
801 | "push-to-mute-delay": 0,
802 | "push-to-talk": false,
803 | "push-to-talk-delay": 0,
804 | "settings": {
805 | "id_counter": 7,
806 | "items": [
807 | {
808 | "align": 5,
809 | "bounds": {
810 | "x": 300.0,
811 | "y": 420.0
812 | },
813 | "bounds_align": 0,
814 | "bounds_type": 3,
815 | "crop_bottom": 0,
816 | "crop_left": 0,
817 | "crop_right": 0,
818 | "crop_top": 0,
819 | "id": 4,
820 | "locked": true,
821 | "name": "Camera",
822 | "pos": {
823 | "x": 1580.0,
824 | "y": 620.0
825 | },
826 | "private_settings": {},
827 | "rot": 0.0,
828 | "scale": {
829 | "x": 1.0,
830 | "y": 1.0
831 | },
832 | "scale_filter": "disable",
833 | "visible": true
834 | },
835 | {
836 | "align": 5,
837 | "bounds": {
838 | "x": 1501.0,
839 | "y": 844.0
840 | },
841 | "bounds_align": 0,
842 | "bounds_type": 1,
843 | "crop_bottom": 0,
844 | "crop_left": 0,
845 | "crop_right": 0,
846 | "crop_top": 0,
847 | "id": 2,
848 | "locked": true,
849 | "name": "Slides",
850 | "pos": {
851 | "x": 40.0,
852 | "y": 40.0
853 | },
854 | "private_settings": {},
855 | "rot": 0.0,
856 | "scale": {
857 | "x": 1.0,
858 | "y": 1.0
859 | },
860 | "scale_filter": "disable",
861 | "visible": true
862 | },
863 | {
864 | "align": 5,
865 | "bounds": {
866 | "x": 0.0,
867 | "y": 0.0
868 | },
869 | "bounds_align": 0,
870 | "bounds_type": 0,
871 | "crop_bottom": 0,
872 | "crop_left": 0,
873 | "crop_right": 0,
874 | "crop_top": 0,
875 | "id": 3,
876 | "locked": true,
877 | "name": "Background (side-by-side)",
878 | "pos": {
879 | "x": 0.0,
880 | "y": 0.0
881 | },
882 | "private_settings": {},
883 | "rot": 0.0,
884 | "scale": {
885 | "x": 1.0,
886 | "y": 1.0
887 | },
888 | "scale_filter": "disable",
889 | "visible": true
890 | }
891 | ]
892 | },
893 | "sync": 0,
894 | "volume": 1.0
895 | },
896 | {
897 | "deinterlace_field_order": 0,
898 | "deinterlace_mode": 0,
899 | "enabled": true,
900 | "flags": 0,
901 | "hotkeys": {},
902 | "id": "v4l2_input",
903 | "mixers": 0,
904 | "monitoring_type": 0,
905 | "muted": false,
906 | "name": "Slides",
907 | "private_settings": {},
908 | "push-to-mute": false,
909 | "push-to-mute-delay": 0,
910 | "push-to-talk": false,
911 | "push-to-talk-delay": 0,
912 | "settings": {
913 | "buffering": true,
914 | {% if room_type == "setup1" %}
915 | "device_id": "/dev/v4l/by-path/pci-0000:00:14.0-usb-0:1:1.0-video-index0",{# X230 LEFT BACK PORT #}
916 | {% elif room_type == "setup2" %}
917 | "device_id": "/dev/v4l/by-id/usb-VXIS_Inc_ACASIS-video-index0",
918 | {% elif room_type == "setup3" %}
919 | "device_id": "/dev/v4l/by-id/usb-VXIS_Inc_ACASIS-video-index0",
920 | {% else %}
921 | "device_id": "/dev/v4l/by-id/usb-VXIS_Inc_ACASIS-video-index0",
922 | {% endif %}
923 | "framerate": 65566,
924 | "input": 0,
925 | "pixelformat": 842093913,
926 | "resolution": 83886800
927 | },
928 | "sync": 0,
929 | "volume": 1.0
930 | },
931 | {
932 | "deinterlace_field_order": 0,
933 | "deinterlace_mode": 0,
934 | "enabled": true,
935 | "filters": [
936 | {
937 | "deinterlace_field_order": 0,
938 | "deinterlace_mode": 0,
939 | "enabled": true,
940 | "flags": 0,
941 | "hotkeys": {},
942 | "id": "color_key_filter",
943 | "mixers": 0,
944 | "monitoring_type": 0,
945 | "muted": false,
946 | "name": "Color Key",
947 | "private_settings": {},
948 | "push-to-mute": false,
949 | "push-to-mute-delay": 0,
950 | "push-to-talk": false,
951 | "push-to-talk-delay": 0,
952 | "settings": {
953 | "key_color": 4294639610,
954 | "key_color_type": "custom",
955 | "similarity": 1,
956 | "smoothness": 1
957 | },
958 | "sync": 0,
959 | "volume": 1.0
960 | }
961 | ],
962 | "flags": 0,
963 | "hotkeys": {},
964 | "id": "image_source",
965 | "mixers": 0,
966 | "monitoring_type": 0,
967 | "muted": false,
968 | "name": "Background (side-by-side)",
969 | "private_settings": {},
970 | "push-to-mute": false,
971 | "push-to-mute-delay": 0,
972 | "push-to-talk": false,
973 | "push-to-talk-delay": 0,
974 | "settings": {
975 | "file": "{{ mixer_user.home }}/artwork/{{ event.id }}/side-by-side.png",
976 | "unload": false
977 | },
978 | "sync": 0,
979 | "volume": 1.0
980 | },
981 | {
982 | "deinterlace_field_order": 0,
983 | "deinterlace_mode": 0,
984 | "enabled": true,
985 | "filters": [
986 | {
987 | "deinterlace_field_order": 0,
988 | "deinterlace_mode": 0,
989 | "enabled": true,
990 | "flags": 0,
991 | "hotkeys": {},
992 | "id": "crop_filter",
993 | "mixers": 0,
994 | "monitoring_type": 0,
995 | "muted": false,
996 | "name": "Digital Zoom",
997 | "private_settings": {},
998 | "push-to-mute": false,
999 | "pust-to-mute-delay": 0,
1000 | "push-to-talk": false,
1001 | "push-to-talk-delay": 0,
1002 | "settings": {
1003 | "bottom": 60,
1004 | "left": 80,
1005 | "relative": true,
1006 | "right": 80,
1007 | "top": 60
1008 | },
1009 | "sync": 0,
1010 | "volume": 1.0
1011 | }
1012 | ],
1013 | "flags": 0,
1014 | "hotkeys": {},
1015 | "id": "v4l2_input",
1016 | "mixers": 0,
1017 | "monitoring_type": 0,
1018 | "muted": false,
1019 | "name": "Camera",
1020 | "private_settings": {},
1021 | "push-to-mute": false,
1022 | "push-to-mute-delay": 0,
1023 | "push-to-talk": false,
1024 | "push-to-talk-delay": 0,
1025 | "settings": {
1026 | "buffering": true,
1027 | {% if room_type == "setup1" %}
1028 | "device_id": "/dev/v4l/by-path/pci-0000:00:14.0-usb-0:2:1.0-video-index0",{# X230 LEFT FRONT PORT #}
1029 | {% elif room_type == "setup2" %}
1030 | "device_id": "/dev/v4l/by-id/{{ webcam_name }}-video-index0",
1031 | {% elif room_type == "setup3" %}
1032 | "device_id": "/dev/v4l/by-id/{{ webcam_name }}-video-index0",
1033 | {% else %}
1034 | "device_id": "/dev/v4l/by-id/{{ webcam_name }}-video-index0",
1035 | {% endif %}
1036 | "framerate": 65566,
1037 | "input": 0,
1038 | "pixelformat": 842093913,
1039 | "resolution": 41943520
1040 | },
1041 | "sync": 0,
1042 | "volume": 1.0
1043 | },
1044 | {
1045 | "deinterlace_field_order": 0,
1046 | "deinterlace_mode": 0,
1047 | "enabled": true,
1048 | "flags": 0,
1049 | "hotkeys": {
1050 | "OBSBasic.SelectScene": [
1051 | {
1052 | "key": "OBS_KEY_F2"
1053 | }
1054 | ]
1055 | },
1056 | "id": "scene",
1057 | "mixers": 0,
1058 | "monitoring_type": 0,
1059 | "muted": false,
1060 | "name": "Camera Primary 16:9",
1061 | "private_settings": {},
1062 | "push-to-mute": false,
1063 | "push-to-mute-delay": 0,
1064 | "push-to-talk": false,
1065 | "push-to-talk-delay": 0,
1066 | "settings": {
1067 | "id_counter": 3,
1068 | "items": [
1069 | {
1070 | "align": 5,
1071 | "bounds": {
1072 | "x": 1120.0,
1073 | "y": 1000.0
1074 | },
1075 | "bounds_align": 0,
1076 | "bounds_type": 3,
1077 | "crop_bottom": 0,
1078 | "crop_left": 0,
1079 | "crop_right": 0,
1080 | "crop_top": 0,
1081 | "id": 2,
1082 | "locked": true,
1083 | "name": "Camera",
1084 | "pos": {
1085 | "x": 40.0,
1086 | "y": 40.0
1087 | },
1088 | "private_settings": {},
1089 | "rot": 0.0,
1090 | "scale": {
1091 | "x": 1.0,
1092 | "y": 1.0
1093 | },
1094 | "scale_filter": "disable",
1095 | "visible": true
1096 | },
1097 | {
1098 | "align": 5,
1099 | "bounds": {
1100 | "x": 680.0,
1101 | "y": 383.0
1102 | },
1103 | "bounds_align": 0,
1104 | "bounds_type": 1,
1105 | "crop_bottom": 0,
1106 | "crop_left": 0,
1107 | "crop_right": 0,
1108 | "crop_top": 0,
1109 | "id": 3,
1110 | "locked": true,
1111 | "name": "Slides",
1112 | "pos": {
1113 | "x": 1200.0,
1114 | "y": 657.0
1115 | },
1116 | "private_settings": {},
1117 | "rot": 0.0,
1118 | "scale": {
1119 | "x": 1.0,
1120 | "y": 1.0
1121 | },
1122 | "scale_filter": "disable",
1123 | "visible": true
1124 | },
1125 | {
1126 | "align": 5,
1127 | "bounds": {
1128 | "x": 0.0,
1129 | "y": 0.0
1130 | },
1131 | "bounds_align": 0,
1132 | "bounds_type": 0,
1133 | "crop_bottom": 0,
1134 | "crop_left": 0,
1135 | "crop_right": 0,
1136 | "crop_top": 0,
1137 | "id": 1,
1138 | "locked": true,
1139 | "name": "Background (side-by-side-reverse)",
1140 | "pos": {
1141 | "x": 0.0,
1142 | "y": 0.0
1143 | },
1144 | "private_settings": {},
1145 | "rot": 0.0,
1146 | "scale": {
1147 | "x": 1.0,
1148 | "y": 1.0
1149 | },
1150 | "scale_filter": "disable",
1151 | "visible": true
1152 | }
1153 | ]
1154 | },
1155 | "sync": 0,
1156 | "volume": 1.0
1157 | },
1158 | {
1159 | "deinterlace_field_order": 0,
1160 | "deinterlace_mode": 0,
1161 | "enabled": true,
1162 | "filters": [
1163 | {
1164 | "deinterlace_field_order": 0,
1165 | "deinterlace_mode": 0,
1166 | "enabled": true,
1167 | "flags": 0,
1168 | "hotkeys": {},
1169 | "id": "color_key_filter",
1170 | "mixers": 0,
1171 | "monitoring_type": 0,
1172 | "muted": false,
1173 | "name": "Color Key",
1174 | "private_settings": {},
1175 | "push-to-mute": false,
1176 | "push-to-mute-delay": 0,
1177 | "push-to-talk": false,
1178 | "push-to-talk-delay": 0,
1179 | "settings": {
1180 | "key_color": 4294639610,
1181 | "key_color_type": "custom",
1182 | "similarity": 1,
1183 | "smoothness": 1
1184 | },
1185 | "sync": 0,
1186 | "volume": 1.0
1187 | }
1188 | ],
1189 | "flags": 0,
1190 | "hotkeys": {},
1191 | "id": "image_source",
1192 | "mixers": 0,
1193 | "monitoring_type": 0,
1194 | "muted": false,
1195 | "name": "Background (side-by-side-reverse)",
1196 | "private_settings": {},
1197 | "push-to-mute": false,
1198 | "push-to-mute-delay": 0,
1199 | "push-to-talk": false,
1200 | "push-to-talk-delay": 0,
1201 | "settings": {
1202 | "file": "{{ mixer_user.home }}/artwork/{{ event.id }}/side-by-side-reverse.png",
1203 | "unload": false
1204 | },
1205 | "sync": 0,
1206 | "volume": 1.0
1207 | }
1208 | ],
1209 | "transition_duration": 300,
1210 | "transitions": []
1211 | }
1212 |
--------------------------------------------------------------------------------