Changeset 16102


Ignore:
Timestamp:
05/27/12 22:49:06 (12 years ago)
Author:
gost
Message:

[IP-Kammera] fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/instar/instar.h

    r16100 r16102  
    2323                tempcam = cam2;
    2424       
     25        setfbtransparent(255);
     26       
    2527        while(1)
    2628        {
     
    3941               
    4042                drawscreen(instar_screen, 0);
    41                 rcret = waitrc(instar_screen, 0, 0);
     43                rcret = waitrc(instar_screen, 500, 0);
    4244
    4345                if(rcret == getrcconfigint("rcexit", NULL)) break;
     
    8486                        free(tmpstr); tmpstr = NULL;   
    8587                        free(position); position = NULL;
    86                         sleep(1);
    8788                }
    8889        }
    8990
    9091        clearscreen(instar_screen);
     92        setosdtransparent(getskinconfigint("osdtransparent", NULL));
    9193        return rcode;
    9294}
     
    197199                while(1)
    198200                {
    199                         cam1 = ostrcat(" wget --output-document=/tmp/instar1.jpg http://gost:goetz@10.0.0.201:8081", "", 0, 0);
    200                         /*
    201201                        if(ostrcmp(getlist(ownconfig, "InstarCam1", NULL), "ein") == 0)
    202202                        {
    203                                 cam1 = ostrcat("wget --user=", getlist(ownconfig, "InstarCam1User", NULL), 0, 0);
    204                                 cam1 = ostrcat(cam1, " --password=",1, 0);
     203                                cam1 = ostrcat("wget --output-document=/tmp/instar1.jpg http://", getlist(ownconfig, "InstarCam1User", NULL), 0, 0);
     204                                cam1 = ostrcat(cam1, ":",1, 0);
    205205                                cam1 = ostrcat(cam1, getlist(ownconfig, "InstarCam1Pass", NULL), 1, 0);
    206                                 cam1 = ostrcat(cam1, " --output-document=/tmp/instar1.jpg http://",1, 0);
     206                                cam1 = ostrcat(cam1, "@",1, 0);
    207207                                cam1 = ostrcat(cam1, fixip(getlist(ownconfig, "InstarCam1IP", NULL)), 1, 0);
    208208                                cam1 = ostrcat(cam1, ":",1, 0);
    209209                                cam1 = ostrcat(cam1, getlist(ownconfig, "InstarCam1Port", NULL), 1, 0);
    210210                        }
    211                         */
     211                       
    212212               
    213213                        /*
Note: See TracChangeset for help on using the changeset viewer.