SoMuchForSubtlety / f1viewer

🏎️ TUI for F1TV
GNU General Public License v3.0
758 stars 65 forks source link

My config on a MacBook Air M1 #162

Closed Placemaster closed 3 years ago

Placemaster commented 3 years ago

I thought it maybe helpful for other users to do a small write up of how I did my installation on a MacBook Air M1.

I Installed home-brew, open terminal and enter : /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh

Than I installed F1viewer with GO (because I had issues with the keychain access). Type in terminal : go get github.com/SoMuchForSubtlety/f1viewer

Than I installed IINA as the video player for Mac via Homebrew. Type in Terminal: brew install --cask iina In the F1viewer app you will have the option to open a stream with IINA as well.

I added in /Users/USERNAME/Library/Application Support/f1viewer/config.json some lines. USERNAME needs to be replaced by your own username.

By copying this into the config.json you will have the option to open 4 screens at the same time.

{
    "live_retry_timeout": 60,
    "preferred_language": "nl",
    "check_updates": true,
    "save_logs": true,
    "log_location": "",
    "custom_playback_options": null,
    "multi_commands": [
                {
                "title": "Open Main, Max, Pit and Data feed",
                "targets": [
                {
                "match_title": "Main Feed",
                "command": ["iina", "--no-stdin", "$url"]
                },
                {
                "match_title": "Max Verstappen",
                "command": ["iina", "--no-stdin", "$url"]
                },
                {
                "match_title": "Pit Lane",
                "command": ["iina", "--no-stdin", "$url"]
                },
                {
                "match_title": "Data Channel",
                "command": ["iina", "--no-stdin", "$url"]
                }
                ]}],

    "horizontal_layout": false,
    "theme": {
        "background_color": "",
        "border_color": "",
        "category_node_color": "",
        "folder_node_color": "",
        "item_node_color": "",
        "action_node_color": "",
        "loading_color": "",
        "live_color": "",
        "update_color": "",
        "no_content_color": "",
        "info_color": "",
        "error_color": "",
        "terminal_accent_color": "",
        "terminal_text_color": "",
        "multi_command_color": ""
    },
    "tree_ratio": 1,
    "output_ratio": 1,
    "terminal_wrap": true,
    "disable_team_colors": false
}

To open the F1viewer app I'll go to Finder and type F1viewer and do a search. A black icon shows up named f1viewer. Double click and it will open the app. The location of the app is in my case: /Users/USERNAME/go/bin/f1viewer USERNAME needs to be replaced by your own username.

Now key in your credentials and save them. Enjoy.