Thanks Thanks:  3
Likes Likes:  11
Dislikes Dislikes:  0
Results 1 to 12 of 12

Thread: osmys

  1. #1

    Join Date
    02 Feb 2007
    Posts
    279
    Mentioned
    0 Post(s)
    Rep Power
    0

    Default osmys

    Pentru cei care vor sa scoata mai buna performanta din oscam poate folosi tool-ul ce am facut pentru a salva logul de la oscam in baza de date MySQL.

    http://www.streamboard.tv/wbb2/threa...threadid=45632

    Am publicat deja de o vreme pe streamboard.
    Deocamdata l-am compilat doar pentru x64 linux.

    PS. varianta cu 2 archive este versiunea noua cu toate depencencies compilat intruna.

    ---------- Post added at 21:30 ---------- Previous post was at 21:24 ----------

    Si un exemplu ce poti scoate din datele logate.
    Exemplul de mai jos este pentru ziua curenta de cacheex





    Bineinteles acesta se poate vedea si pe reader si pe user si multe alte filtre se poate scrie in SQL Query.

    ---------- Post added at 23:09 ---------- Previous post was at 21:30 ----------

    Ca sa va mai dau exemple ... desi mai am cateva




    Aici e un exemplu pe reader ... cu care puteti genera chid-uri pe caid si provid doar din cele care au fost ecm-uri bune.
    Puteti face liste services sau doar sa vedeti care sunt chid-urile care au fost bune de la un reader.

  2. #2

    Join Date
    02 Feb 2007
    Posts
    279
    Mentioned
    0 Post(s)
    Rep Power
    0

    Post

    Mai bine fac si aici upload la tool ...
    cum ca nu m-a lasat sa fac upload direct in forum aici este un link pentru descarcarea lui.

    https://ufile.io/77dcm

  3. #3
    RSP - TEAM zildan's Avatar
    Join Date
    05 Dec 2007
    Location
    Sudul Romaniei
    Posts
    8,499
    Mentioned
    93 Post(s)
    Rep Power
    100

    Default

    Mulțumim pentru suport, sper sa fim in state sa il si folosim.
    Sh40, AML, prime focus 1,5m si altele ...

  4. #4

    Join Date
    02 Feb 2007
    Posts
    279
    Mentioned
    0 Post(s)
    Rep Power
    0

    Default

    Versiune noua 1.2 cu suport pentru oscam.srvid

    https://ufile.io/hry4t

    si inca cateva SQL Queriuri scrise de mine ce te poate ajuta ...
    acestea se pot modifica usor la nevoile fiecaruia.

    Code:
    SET group_concat_max_len = 2048;
    SELECT caid, provid, GROUP_CONCAT(DISTINCT chid SEPARATOR ',') AS chids, COUNT(DISTINCT(chid)) AS totalchids, COUNT(chid) AS totalecm
    FROM oscamlog WHERE byreader='readername' AND (caid='09C4' OR caid='098C' OR caid='0B00') AND ecmtype='found' AND ecmtime <= 200
    GROUP BY caid, provid;
    Code:
    SELECT caid, provid, chid,
    SUM(if(ecmtime <= 100,1,0)) AS Tlt100,
    SUM(if(ecmtime <= 200 AND ecmtime > 100,1,0)) AS Tlt200,
    SUM(if(ecmtime <= 300 AND ecmtime > 200,1,0)) AS Tlt300,
    SUM(if(ecmtime <= 400 AND ecmtime > 300,1,0)) AS Tlt400,
    SUM(if(ecmtime <= 500 AND ecmtime > 400,1,0)) AS Tlt500,
    SUM(if(ecmtime > 500,1,0)) AS Tgt500,
    COUNT(chid) AS total,
    MAX(logtime)
    FROM oscamlog WHERE byreader='readername' AND (caid='09C4' OR caid='098C' OR caid='0B00') AND ecmtype='found'
    GROUP BY caid, provid, chid;
    Code:
    SELECT caid, provid, COUNT(caid) AS total, MIN(ecmtime) AS minT, 
    SUM(if(ecmtime <= 100,1,0)) AS Tlt100,
    SUM(if(ecmtime <= 200 AND ecmtime > 100,1,0)) AS Tlt200,
    SUM(if(ecmtime <= 300 AND ecmtime > 200,1,0)) AS Tlt300,
    SUM(if(ecmtime <= 400 AND ecmtime > 300,1,0)) AS Tlt400,
    SUM(if(ecmtime <= 500 AND ecmtime > 400,1,0)) AS Tlt500,
    SUM(if(ecmtime > 500,1,0)) AS Tgt500,
    ROUND(AVG(ecmtime)) AS average, MAX(ecmtime) AS maxT,
    MAX(logtime)
    FROM oscamlog WHERE ecmtype='cache3' AND logtime >= '2018-12-05' GROUP BY caid, provid;
    Code:
    SELECT caid, provid, COUNT(caid) AS total, SUM(if(ecmtype ='invalid' ,1,0) OR if(ecmtype='timeout',1,0)) AS notfound,
    SUM(case when(ecmtype = 'cache3') then 1 ELSE 0 END) AS cache,
    SUM(case when(ecmtype = 'cache2') OR (ecmtype = 'cache1') OR (ecmtype='found') then 1 ELSE 0 END) AS found, MIN(ecmtime) AS minT, 
    SUM(if(ecmtime <= 100 AND ecmtype ='found',1,0)) AS Tlt100,
    SUM(if(ecmtime <= 200 AND ecmtime > 100 AND ecmtype ='found',1,0)) AS Tlt200,
    SUM(if(ecmtime <= 300 AND ecmtime > 200 AND ecmtype ='found',1,0)) AS Tlt300,
    SUM(if(ecmtime <= 400 AND ecmtime > 300 AND ecmtype ='found',1,0)) AS Tlt400,
    SUM(if(ecmtime <= 500 AND ecmtime > 400 AND ecmtype ='found',1,0)) AS Tlt500,
    SUM(if(ecmtime > 500 AND ecmtype ='found',1,0)) AS Tgt500,
    ROUND(AVG(ecmtime)) AS average, MAX(if(ecmtype !='timeout',ecmtime, 0)) AS maxT,
    MAX(logtime)
    FROM oscamlog WHERE logtime>='2018-12-05' GROUP BY caid, provid;
    Code:
    SET group_concat_max_len = 2048;
    
    SELECT GROUP_CONCAT(DISTINCT concat(caid,':',provid) SEPARATOR '\n\r') AS cards 
    FROM oscamlog 
    WHERE (ecmtype='found' OR ecmtype='cache3') AND ecmtime <= 300;

  5. #5

    Join Date
    02 Feb 2007
    Posts
    279
    Mentioned
    0 Post(s)
    Rep Power
    0

    Default

    New version 1.3

    What's new in 1.3
    -b Start process in Background.
    on config.ini one new option
    Code:
    [osmys]
    readfromend=1
    readfromend=1 Start parsing log file from end of file with last line.
    readfromend=0 Start parsing log file from begin with first line.


    https://ufile.io/z1jb8

  6. #6
    Member Beginner
    Join Date
    08 Feb 2009
    Posts
    23
    Mentioned
    0 Post(s)
    Rep Power
    56

    Default

    Salut,
    vroiam sa ma joc azi cu osmys. Am urmat pas cu pas un tutorial facut de piccolo09 pe un alt forum:
    - am copiat fisierele pe un mutant hd51;
    - am dat atribut la bin;
    - am modificat config.ini;
    - am lansat osmys cu path din putty;
    - am verificat daca ruleaza;
    Pe un pc cu sistem windows am instalat heidisql dar cand vreau sa ma i la receptor imi da eroarea "Can't connect to MySQL server on 'ippadress' (10061)uery".Mentionez ca reteaua e locala.
    In config.ini:
    [mysql]
    host=ip_hd51
    port=3306
    database=oscamlog
    table=oscamlog
    username=root
    password=pass

    [osmys]
    readfromend=1.

    Unde gresesc?

  7. #7
    Member Beginner
    Join Date
    08 Feb 2009
    Posts
    23
    Mentioned
    0 Post(s)
    Rep Power
    56

    Default

    Sa înțeleg ca nu a mai folosit nimeni de aici osmys. E foarte util și simplifică mult lucrurile pentru cei care folosesc oscam și au locale. O să mai încerc zilele astea și, dacă reușesc, voi posta aici.

  8. #8
    Golden Member piccolo08's Avatar
    Join Date
    02 Sep 2010
    Location
    Earth
    Posts
    449
    Mentioned
    2 Post(s)
    Rep Power
    53

    Default

    Poate ca nu au folosit

    1-te conectezi la o baza de date? ( instalat mysql!?)
    2-esti sigur ca folosesti porturile corect?


    PS:
    Intre timp "Duster" a evoluat la stadiul de "HOȚ"si "ESCROC" de la mic gainar ce era.
    DM 800se sim 2.10 , Ibox-cloud, raspberry pi si alte rahaturi

  9. #9
    Member Beginner
    Join Date
    08 Feb 2009
    Posts
    23
    Mentioned
    0 Post(s)
    Rep Power
    56

    Default

    Am putea vorbi în privat?
    Cât despre Duster, am citit pe forumuri. Sunt puțini care știu programare și foarte mulți care se dau știutori.

  10. #10
    RSP - TEAM zildan's Avatar
    Join Date
    05 Dec 2007
    Location
    Sudul Romaniei
    Posts
    8,499
    Mentioned
    93 Post(s)
    Rep Power
    100

    Default

    Mai ușor cu acuzațiile publice.
    Chiar dacă aveți dreptate.
    Mai ales când cel acuzat nu se poate apăra.
    Sh40, AML, prime focus 1,5m si altele ...

  11. #11
    Member Beginner
    Join Date
    08 Feb 2009
    Posts
    23
    Mentioned
    0 Post(s)
    Rep Power
    56

    Default

    Nu a acuzat nimeni pe nimeni, era doar o afirmatie, scuze pentru offtopic.

  12. #12
    Member Beginner
    Join Date
    08 Feb 2009
    Posts
    23
    Mentioned
    0 Post(s)
    Rep Power
    56

    Default

    Am tot încercat zilele astea sa vad ce face osmys... Îi las pe alții să încerce, i-am scris în privat și lui piccolo09, fără răspuns... probabil că am ceva probleme la porturi (furnizorul de internet fastweb italia în cazul meu blochează multe porturi). Părerea mea este că Duster a făcut ceva superfain dar ar fi fost nevoie de un tutorial mai pe înțelesul multora. Câți dintre noi s-au jucat cu mysql?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •