Add support for shell scripts and auto-executed scripts.
[noxon-gateway.git] / README.rst
1 ********************
2 Noxon iRadio gateway
3 ********************
4 Push your own content onto Noxon iRadio devices:
5 RSS feeds, text files and MediaTomb server structures.
6
7 This tool makes it possible to push own data into the menu
8 entries
9
10 - Internet Radio
11 - Podcasts
12 - My Noxon
13
14
15 ===================================
16 Customizung the directory structure
17 ===================================
18 The ``var/`` directory contains three directories you can fill with
19 your own content.
20
21 ================ ==================
22 Menu item        ``var/`` Directory
23 ================ ==================
24 Internet Radio   ``internetradio``
25 Podcasts         ``podcasts``
26 My Noxon         ``mynoxon``
27 ================ ==================
28
29 You can put folders and files into this directories.
30
31 The ``internetradio`` directory is hard-coded to display the contents
32 of a MediaTomb UPnP server.
33 You can remove the check in ``index.php#handleRequest()`` if you do not
34 want this.
35
36
37 File types
38 ==========
39 Directory
40   A directory is browsable by your Noxon radio
41 ``.sh`` file
42   Shell script which is shown as directory and which gets executed
43   when navigating into it.
44   Output is shown as it is for ``.txt`` files.
45
46   I use it to control my house's heating system from the radio.
47 ``.auto.sh``
48   Shell script which gets executed when browsing the folder.
49   The output is integrated into the directory listing with the same
50   rules as for ``.txt`` files.
51
52   You can use this to show the current time within the directory listing.
53 ``.txt`` file
54   Text files are rendered as un-actionable lists.
55
56   Empty lines get removed, consecutive spaces get collapsed.
57 ``.url`` file
58   Podcast feed URL file.
59
60   Simply contains the URL to the podcast's MP3 RSS feed.
61
62 File extensions get removed for display purposes.
63
64
65 =====
66 Setup
67 =====
68
69 Hosts
70 =====
71 The following hosts must point to your server and be handled
72 by this tool::
73
74     radio567.vtuner.com
75     radio5672.vtuner.com
76     gatekeeper.my-noxon.net
77
78
79 MediaTomb
80 =========
81 To be able to browse a MediaTomb server, copy ``data/config.php.dist`` to
82 ``data/config.php`` and fill it with mediatomb web interface credentials.
83
84
85 =======
86 License
87 =======
88 This application is available under the `AGPL v3`__ or later.
89
90 __ http://www.gnu.org/licenses/agpl.html
91
92
93 ======
94 Author
95 ======
96 Written by `Christian Weiske`__, cweiske@cweiske.de
97
98 __ http://cweiske.de/