Changeset 33179
- Timestamp:
- 02/18/15 17:33:09 (8 years ago)
- Location:
- titan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/instar/instar.h
r31379 r33179 33 33 if(cam1 != NULL) 34 34 { 35 tmpstr = ostrcat(cam1, "/snapshot.cgi", 0, 0); 35 if(getconfigint("instar_1", NULL) == 1) 36 tmpstr = ostrcat(cam1, "/image/jpeg.cgi", 0, 0); 37 else 38 tmpstr = ostrcat(cam1, "/snapshot.cgi", 0, 0); 36 39 system(tmpstr); 37 40 free(tmpstr); tmpstr = NULL; … … 39 42 if(cam2 != NULL) 40 43 { 41 tmpstr = ostrcat(cam2, "/snapshot.cgi", 0, 0); 44 if(getconfigint("instar_2", NULL) == 1) 45 tmpstr = ostrcat(cam1, "/image/jpeg.cgi", 0, 0); 46 else 47 tmpstr = ostrcat(cam1, "/snapshot.cgi", 0, 0); 42 48 system(tmpstr); 43 49 free(tmpstr); tmpstr = NULL; … … 197 203 addchoicebox(onCam1, "ein", _("ein")); 198 204 setchoiceboxselection(onCam1, getlist(myconfig, "InstarCam1", NULL)); 205 addchoicebox(typCam1, "0", "0"); 206 addchoicebox(typCam1, "1", "1"); 207 setchoiceboxselection(typCam1, getconfigint("instar_1", NULL)); 199 208 changemask(ipCam1, "abcdefghijklmnopqrstuvwxyz"); 200 209 changeinput(ipCam1, getlist(myconfig, "InstarCam1IP", NULL)); … … 209 218 addchoicebox(onCam2, "ein", _("ein")); 210 219 setchoiceboxselection(onCam2, getlist(myconfig, "InstarCam2", NULL)); 220 addchoicebox(typCam2, "0", "0"); 221 addchoicebox(typCam2, "1", "1"); 222 setchoiceboxselection(typCam2, getconfigint("instar_2", NULL)); 211 223 changemask(ipCam2, "abcdefghijklmnopqrstuvwxyz"); 212 224 changeinput(ipCam2, getlist(myconfig, "InstarCam2IP", NULL)); … … 243 255 addlist(myconfig, "InstarCam2Pass", passCam2->ret); 244 256 writelist(myconfig, instarconf); 257 addconfig("instar_1", typCam1->ret); 258 addconfig("instar_2", typCam2->ret); 245 259 if(rcret == getrcconfigint("rcblue", NULL)) 246 260 { -
titan/skins/instar/skin.xml
r29532 r33179 8 8 <node name="autoCam" type="choicebox" parent="listbox" valign="top" posx="0" text="direkter Start" bordercol="bordercol" bordersize="2" width="100%" height="30"> 9 9 <node name="onCam1" type="choicebox" parent="listbox" valign="middle" posx="0" text="Kamera 1" bordercol="bordercol" bordersize="2" width="100%" height="25"> 10 <node name="typCam1" type="choicebox" parent="listbox" valign="middle" posx="0" text="Typ" bordercol="bordercol" bordersize="2" width="100%" height="25"> 10 11 <node name="ipCam1" type="inputbox" parent="listbox" valign="middle" posx="0" text="IP-Kamera 1" bordercol="bordercol" bordersize="2" width="100%" height="25"> 11 12 <node name="portCam1" type="inputboxnum" parent="listbox" valign="middle" posx="0" text="Port-Kamera 1" bordercol="bordercol" bordersize="2" width="100%" height="25"> … … 14 15 <node name="s1" type="inputbox" parent="listbox" valign="middle" posx="0" text=" " bordercol="bordercol" bordersize="2" width="100%" height="15"> 15 16 <node name="onCam2" type="choicebox" parent="listbox" valign="middle" posx="0" text="Kamera 2 (Umschalten mit Rot)" bordercol="bordercol" bordersize="2" width="100%" height="25"> 17 <node name="typCam2" type="choicebox" parent="listbox" valign="middle" posx="0" text="Typ" bordercol="bordercol" bordersize="2" width="100%" height="25"> 16 18 <node name="ipCam2" type="inputbox" parent="listbox" valign="middle" posx="0" text="IP-Kamera 2" bordercol="bordercol" bordersize="2" width="100%" height="25"> 17 19 <node name="portCam2" type="inputboxnum" parent="listbox" valign="middle" posx="0" text="Port-Kamera 2" bordercol="bordercol" bordersize="2" width="100%" height="25">
Note: See TracChangeset
for help on using the changeset viewer.