Skip to content

Commit 1012249

Browse files
authored
Merge pull request #63 from Dominik-h-hub/master
Added manual for customTag usage
2 parents 8a3e0f4 + 03ba2a8 commit 1012249

File tree

4 files changed

+64
-2
lines changed

4 files changed

+64
-2
lines changed

content/docs/tools/teddyCloud/tecdoc/tonies-custom-json.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ bookCollapseSection: true
66
# tonies.custom.json
77
teddyCloud uses the `tonies.custom.json` file from `config` folder to read the metadata of custom tags in the same manner it's done for the official boxine tonies in the `tonies.json` file. The structure is the same, but it's not overwritten as the `tonies.json` file through regularly updates. So you can use the `tonies.custom.json` to save metadata of your own custom tags.
88

9+
You can generate the required JSON data via teddyCloud GUI (Edit Tag / Create new model) and save it in the `tonies.custom.json` file, or you can generate it manually, as described below.
10+
911
Initially the `tonies.custom.json` file looks like the following:
1012

1113
```
@@ -22,7 +24,11 @@ Enriched with metadata for the above shown custom tag the `tonies.custom.json` f
2224
[{"no": "0", "model": "123456", "audio_id": ["369519776"], "hash": ["af9e61a9c1b12138fb060908d595742334b04515"], "title": "Custom Tonie Example Title", "series": "Custom Tonies", "episodes": "This is my custom tonie", "tracks": ["Title 1", "Title 2", "Title 3", "Title 4", "Title 5", "Title 6", "Title 7", "Title 8", "Title 9", "Title 10"], "release": "0", "language": "de-de", "category": "custom", "pic": "https://upload.wikimedia.org/wikipedia/en/6/6b/Hello_Web_Series_%28Wordmark%29_Logo.png"}]
2325
```
2426

25-
This results after restart of teddyCloud in the following changed appearance in the GUI:
27+
**Note:** After you changed the `tonies.custom.json` file you need to reload it via teddyCloud GUI ( Settings / Reload Tonies.json ) or restart the server.
28+
29+
![GUI](/img/gui-tonies-reload-config.png)
30+
31+
This results after reloading of the `tonies.custom.json` file in the following changed appearance in the GUI:
2632

2733

2834
![Tonie Cards](/img/tonies-custom-json_filled1.png)
@@ -51,7 +57,7 @@ Each element consists of a JSON object with the following keys:
5157
| release | `"0"` | currently unused |
5258
| language | `"de-de"` | language code, will be shown in the gui if it's another language than the dominant one |
5359
| category | `"custom"` | category of the custom tag, currently unused |
54-
| pic | `"https://.../Logo.png"` | url of the picture which shall be shown as custom tag image in the GUI |
60+
| pic | `"https://.../Logo.png"` | url of the picture which shall be shown as custom tag image in the GUI. In case of use of the custom image folder the path should be relative, like "/custom_img/Logo.png". |
5561

5662
### How to get the Audio ID and the Hash value of a TAF
5763

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
title: "Custom Tags"
3+
description: "Information on how to set up and use custom tags in teddyCloud."
4+
bookCollapseSection: true
5+
---
6+
# Custom Tags
7+
8+
To use custom tags within teddyCloud, you need to obtain specific tags and follow these steps.
9+
10+
## 1. Buy specific tags
11+
12+
The Toniebox only accepts specific tags that meet the following criteria:
13+
14+
- Type: SLIX-L
15+
- Privacy-Mode
16+
- UID length: 16 characters
17+
- UID starts with: E0 04 03
18+
19+
Note: Only a specially patched version of the CC3200 accepts other SLIX NFC tags.
20+
21+
## (OPTIONAL) 2. Read and save the tag ID
22+
23+
Once you place a new tag on the Toniebox, it will automatically activate privacy mode on this tag, making it unrecognizable by other NFC readers. Privacy mode must be deactivated beforehand.
24+
25+
If you want to save the tag ID for later use, please use a common NFC tag reader (e.g., via an iOS or Android app).
26+
27+
## 3. Place the new NFC tag on the Toniebox
28+
29+
- Place the new custom NFC tag on your Toniebox for the first time. (The Toniebox will respond with an error code, but that's fine for now since no custom play has been assigned yet.)
30+
- Check the teddyCloud GUI: Filter for last played tags to find the unknown tag you recently placed on the Toniebox.
31+
32+
![GUI](/img/tonies-custom-json_empty.png)
33+
34+
## 4. Assign content
35+
36+
Now you can assign content to the new custom tag:
37+
38+
- Click on the "Edit" button.
39+
- Choose a source from your library.
40+
- Click on "Save".
41+
- Press and hold one of the Toniebox's ears for 3 seconds to perform a freshness check. After that, your new custom tag should work.
42+
43+
## 5. Change the name and picture of the custom tag
44+
45+
If you want to change the name and picture of your custom tag, follow these steps:
46+
47+
- Create a new "Model" as described in [tonies.custom.json config](../tecdoc/tonies-custom-json.md) and save it to your `tonies.custom.json` file.
48+
- Go to the teddyCloud GUI, click on "Settings" and then "Reload Tonies.json". Afterwards, the added entry will be available for selection.
49+
50+
![GUI](/img/gui-tonies-reload-config.png)
51+
52+
- Edit your custom tag again, insert the unique ID you assigned to your new model, and click on "Save".
53+
54+
![GUI](/img/gui-tonies-edit-model.png)
55+
56+
The name, description and picture should now be updated.

static/img/gui-tonies-edit-model.png

18.3 KB
Loading
22.7 KB
Loading

0 commit comments

Comments
 (0)