Skip to content

Commit

Permalink
Merge pull request #9 from mxmehl/doc-workflow
Browse files Browse the repository at this point in the history
Add demo for workflow
  • Loading branch information
mxmehl authored Jun 14, 2024
2 parents cca4194 + 0ac82f5 commit 0a3959d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,21 @@ Welcome to the **Tonuino Cards Manager**, a convenient utility designed to strea
- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Demo](#demo)
- [Configuration](#configuration)
- [Limitations](#limitations)
- [Contributing](#contributing)
- [License](#license)

## Overview

The **Tonuino Cards Manager** provides an easy way to prepare and manage music collections for your Tonuino music box. Whether you want to assign single songs or entire albums to specific RFID cards, this tool handles the setup seamlessly through a YAML configuration file.
The **Tonuino Cards Manager** provides an easy way to prepare and manage music collections for your Tonuino music box. Whether you want to assign single songs or entire albums to specific RFID cards, this tool handles the setup seamlessly through a single YAML configuration file.

## Features

- **Easy Configuration**: Use a simple YAML file to define which music plays for each RFID card.
- **Multiple Sources**: Assign songs or albums from various sources to one RFID card.
- **All modi**: The tool supports all playing modi, e.g. single and party mode.
- **All modi**: The tool supports all modern playing modi, e.g. single and party mode.
- **Automated Management**: The tool automates the copying and organizing of music files into the appropriate structure for Tonuino.
- **QR Code Generation**: QR codes will be generated for each card which allows you to quickly configure your cards, e.g. with [TonUINO NFC Tools](https://marc136.github.io/tonuino-nfc-tools/)
- **User-Friendly**: Intuitive and designed with simplicity in mind for managing kids' music collections.
Expand All @@ -56,7 +57,11 @@ Once installed, you can use the tool by following these steps:
```
3. The tool will process the YAML file and organize your music according to the specified configuration (see below).

<!-- Add demo here -->
### Demo

[![asciicast](https://asciinema.org/a/663963.svg)](https://asciinema.org/a/663963)

The resulting QR code(s) can be scanned with [TonUINO NFC Tools](https://marc136.github.io/tonuino-nfc-tools/). There, you can press on "Enter list" and "Read QR code", and thereby program your RFID cards in batch.

## Configuration

Expand Down
22 changes: 22 additions & 0 deletions doc/screencast.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
# SPDX-FileCopyrightText: 2024 Max Mehl <https://mehl.mx>
#
# SPDX-License-Identifier: GPL-3.0-only

# Script to create the asciinema recording:
# asciinema rec ~/tcm.cast -c ./doc/screencast.sh

# You can choose different typed, e.g. pe or pei
TYPE=pei
# What to do with comments? : for doing nothing, $TYPE for doing the same as with code
COMM=":"

. ~/Git/github/demo-magic/demo-magic.sh

clear

$TYPE 'cat tonuino-cards.yaml'
$TYPE ''
$TYPE 'tonuino-cards-manager -c tonuino-cards.yaml -d dest/'
wait
$TYPE ''

0 comments on commit 0a3959d

Please sign in to comment.