Add NetworkWizard to configure LAN/WLAN on Enigma2 first-startup
[enigma2-plugins.git] / networkwizard / src / networkwizard.xml
1 <wizard>
2                 <step id="welcome" nextstep="introduction">
3                         <text value="Welcome.\n\nIf you want to connect your Dreambox to the Internet, this wizard will guide you through the basic network setup of your Dreambox.\n\nPress the OK button on your remote control to move to the next step." />
4                         <code>
5 self["arrowdown"].moveTo(557, 232, 1)
6 self["arrowdown"].startMoving()
7 self["arrowup"].moveTo(800, 232, 1)
8 self["arrowup"].startMoving()
9 self["rc"].moveTo(500, 50, 1)
10 self["rc"].startMoving()
11                         </code>
12                 </step>
13
14                 <step id="introduction" >
15                         <text value="Use the up/down keys on your remote control to select an option. After that, press OK." />
16                         <list>
17                                 <listentry caption="Connect to the Internet with your local LAN" step="conflan" />
18                                 <listentry caption="Connect to the Internet with a USB Wlan Stick" step="wlanstart" />
19                                 <listentry caption="Exit wizard and configure later manually" step="end" />
20                         </list>
21                         <code>
22 self["arrowup2"].moveTo(800, 320, 1)
23 self["arrowup2"].startMoving()
24 self["arrowdown"].moveTo(557, 200, 1)
25 self["arrowup"].moveTo(557, 355, 1)
26 self["arrowdown"].startMoving()
27 self["arrowup"].startMoving()
28 self["rc"].moveTo(500, 50, 1)
29 self["rc"].startMoving()
30                         </code>
31                 </step>
32
33                 <step id="conflan" nextstep="checklanstatusend">
34                         <text value="Please configure your local LAN internet connection by filling out the needed values.\nWhen you are ready please press OK to continue." />
35                         <config screen="AdapterSetup" module="NetworkSetup" args="0" type="ConfigList" />
36                         <code>
37 self.checkInterface('eth0')
38                         </code> 
39                         <code>
40 self["arrowdown"].moveTo(557, 232, 1)
41 self["arrowdown"].startMoving()
42 self["arrowup"].moveTo(800, 232, 1)
43 self["arrowup"].startMoving()
44 self["rc"].moveTo(500, 50, 1)
45 self["rc"].startMoving()
46                         </code>
47                         <code pos="after">
48 self.checkNetwork()
49                         </code> 
50                 </step>
51
52                 <step id="checklanstatusend" nextstep="end">
53                 <condition>
54 self.condition = (self.InterfaceState == True )
55                 </condition>
56                         <text value="Thank you for using the wizard. Your Dreambox is now ready to use.\n\nYour local LAN internet connection is working now.\n\nPlease press OK to continue." />
57                 </step>
58
59                 <step id="checklanstatusend">
60                 <condition>
61 self.condition = (self.InterfaceState == False )
62                 </condition>
63                         <text value="Your local LAN internet connection is not working!\nPlease choose what you want to do next." />
64                         <list>
65                                 <listentry caption="Configure your internal LAN again" step="conflan" />
66                                 <listentry caption="Configure your wireless LAN" step="wlanstart" />
67                                 <listentry caption="Exit wizard and configure later manually" step="end" />
68                         </list>
69                 </step>
70
71                 <step id="wlanstart" nextstep="scanwlan">
72                         <text value="Please attach your Zydas ZD1211B chipset compatibe WLAN USB Stick to your Dreambox and press the OK button on your remote control to enable the built in wireless network support" />
73                         <code>
74 self["arrowdown"].moveTo(557, 232, 1)
75 self["arrowdown"].startMoving()
76 self["arrowup"].moveTo(800, 232, 1)
77 self["arrowup"].startMoving()
78 self["rc"].moveTo(500, 50, 1)
79 self["rc"].startMoving()
80                         </code>
81                         <code pos="after">
82 self.checkInterface('wlan0')
83                         </code>         
84                 </step>
85
86                 <step id="scanwlan" nextstep="wlanconfig">
87                 <condition>
88 self.condition = (self.isInterfaceUp == True )
89                 </condition>
90                         <text value="Please select below the wireless network you want to connect to." />
91                         <list type="dynamic" source="listModes" evaluation="modeSelectionMade" onselect="modeSelectionMoved" />
92                         <code>
93 self["arrowdown"].moveTo(557, 232, 1)
94 self["arrowdown"].startMoving()
95 self["arrowup"].moveTo(800, 232, 1)
96 self["arrowup"].startMoving()
97 self["rc"].moveTo(500, 50, 1)
98 self["rc"].startMoving()
99                         </code>
100                         <code pos="after">
101 self.saveAccessPoint(self.ap)
102                         </code>
103                 </step>
104
105                 <step id="scanwlan">
106                 <condition>
107 self.condition = (self.isInterfaceUp == False )
108                 </condition>
109                         <text value="Your wireless internet connection could not be started!\nHave you attached your USB WLAN Stick?\n\nPlease choose what you want to do next." />
110                         <list>
111                                 <listentry caption="Configure your wireless LAN again" step="wlanstart" />
112                                 <listentry caption="Configure your internal LAN" step="conflan" />
113                                 <listentry caption="Exit wizard and configure later manually" step="end" />
114                         </list>
115                         <code>
116 self["arrowdown"].moveTo(557, 232, 1)
117 self["arrowdown"].startMoving()
118 self["arrowup"].moveTo(800, 232, 1)
119 self["arrowup"].startMoving()
120 self["rc"].moveTo(500, 50, 1)
121 self["rc"].startMoving()
122                         </code>
123                         <code pos="after">
124 self.saveAccessPoint(self.ap)
125                         </code>
126                 </step>
127
128                 <step id="wlanconfig" nextstep="checkwlanstatusend" timeout="60" timeoutaction="selectnext">
129                         <text value="Please configure your wireless LAN internet connection by filling out the needed values.\nWhen you are ready please press OK to continue." />
130                         <config screen="AdapterSetup" module="NetworkSetup" args="1" type="ConfigList" />
131                         <code pos="after">
132 self.checkNetwork()
133                         </code> 
134                 </step>
135
136                 <step id="checkwlanstatusend" nextstep="end">
137                 <condition>
138 self.condition = (self.InterfaceState == True )
139                 </condition>
140                         <text value="Thank you for using the wizard. Your Dreambox is now ready to use.\n\nYour wireless internet connection is working now.\n\nPlease press OK to continue." />
141                 </step>
142
143                 <step id="checkwlanstatusend">
144                 <condition>
145 self.condition = (self.InterfaceState == False )
146                 </condition>
147                         <text value="Your wireless internet connection is not working!\nPlease choose what you want to do next." />
148                         <list>
149                                 <listentry caption="Configure your wireless LAN again" step="wlanstart" />
150                                 <listentry caption="Restart your wireless interface" step="wlanrestart" />
151                                 <listentry caption="Configure your internal LAN" step="conflan" />
152                                 <listentry caption="Exit wizard and configure later manually" step="end" />
153                         </list>
154                 </step>
155
156                 <step id="wlanrestart" nextstep="checkwlanstatusend" timeout="3" timeoutaction="selectnext">
157                         <text value="Your network is restarting.\n\nPlease press OK to continue." />
158                         <code pos="after">
159 self.restartNetwork()
160                         </code> 
161                 </step>
162
163                 <step id="end">
164                         <text value="Thank you for using the wizard. Your Dreambox is now ready to use.\nPlease press OK to start using your Dreambox." />
165                 </step>
166 </wizard>