fix demo feed
[enigma2-curlytx.git] / README.rst
1 *******
2 CurlyTx
3 *******
4 Enigma2 (Dreambox) plugin that lets you view the contents of remote
5 *plain text* files, e.g. HTTP URLs.
6
7 Multiple URLs can be configured and navigated.
8
9 .. contents::
10    :depth: 2
11
12
13 ========
14 Features
15 ========
16 - Load any remote plain text files, e.g. via HTTP
17 - Unlimited number of remote URLs/pages
18 - Reload pages
19 - Show HTTP headers
20 - Configurable page titles
21 - Configurable text size
22 - Configurable default page
23 - Import complete page list from Atom feed
24 - Visible in the main menu or the extension menu (configurable)
25 - Configurable menu title
26 - Help screen for main window and settings window
27
28
29 =====
30 Usage
31 =====
32
33 First run
34 =========
35 After installing CurlyTx and restarting Enigma2, open the main menu.
36 The first entry will be "CurlyTx" - activate it.
37
38 You will see the main window with the message
39 "Go and add a page in the settings".
40 Do just that end press the red button to access the settings window.
41
42 Now we'll add the first URL:
43
44 - Press the yellow button ("New"); the "page edit" window will show up
45 - Enter the page URL, e.g. http://ip.cweiske.de
46 - If you wish, enter a page title, e.g. "My IP"
47 - Set the text size if you want. 20 is a good default value.
48 - Press the green button ("OK"), and you are back on the settings window.
49 - The page you have just created is in the configuration list now.
50
51
52 If you made a mistake and want to change it, select the page with the
53 up/down buttons and press "OK" - the page edit window will open.
54
55 Press the green button and the settings will be saved.
56 You're back on the main window now and the URL you just configured will be loaded.
57
58
59 Adding many pages
60 =================
61 You can use the settings window to add new pages, but this gets tedious if you
62 want to add many pages.
63
64 It's better to use the Atom feed import in this case.
65 All you need is a text editor and a web server you can serve the feed page with.
66
67 Here is an example feed::
68
69   <?xml version="1.0" encoding="utf-8"?>
70   <feed xmlns="http://www.w3.org/2005/Atom">
71    <title>URL list for CurlyTx</title>
72    <author>
73     <name>Christian Weiske</name>
74     <email>cweiske@cweiske.de</email>
75    </author>
76    <link rel="self" href="http://home.cweiske.de/pagefeed.atom"/>
77    <entry>
78     <id>ip</id>
79     <title>My IP</title>
80     <link rel="alternate" type="text/html" href="http://ip.cweiske.de/" />
81    </entry>
82    <entry>
83     <id>temp</id>
84     <title>House temperatures</title>
85     <link rel="alternate" type="text/html" href="http://home/temperatures.txt" />
86    </entry>
87   </feed>
88
89 Start CurlyTx, go to the settings and write the feed URL in the
90 "Page feed URL" field.
91 Then press "OK" and the feed's pages will be loaded into the settings window.
92
93
94 =================
95 Modifying CurlyTx
96 =================
97
98
99 Translation
100 ===========
101 Beginning a new translation
102 ---------------------------
103 Replace ``$lang_code`` with your two-letter language code::
104
105     $ cd po
106     $ cp messages.po $lang_code.po
107     ... edit $lang_code.po now
108     $ ./compile.sh
109
110
111 Editing an existing translation
112 -------------------------------
113 Simply run ::
114
115     $ cd po
116     $ ./update.sh
117
118 This will update the translation template ``messages.pot`` from the source code
119 and will merge the changes into the single translation files.
120
121
122 Testing a translation
123 ---------------------
124 Link your compiled translation file into ::
125
126     src/locale/$lang_code/LC_MESSAGES/CurlyTx.mo
127
128 Enigma2 will pick it up automatically.
129
130
131 Building
132 ========
133 First upgrade the version number in ``CONTROL/control``.
134
135 Then simply run ::
136
137     ./build.sh
138
139 You will need the ``ipkg-build`` script from
140  http://reichholf.net/files/dreambox/tools/ipkg-build
141
142 Also see http://dream.reichholf.net/wiki/Howto:IPK_Pakete_erstellen
143
144
145 Open issues
146 ===========
147 - move mode to re-order pages
148 - how to show clock in lcd?
149
150
151 =======
152 License
153 =======
154 The plugin is subject to the GPLv3 or later.