![]() ![]() if you need one for a dreambox let me now step 1. If = 'p' or = eįor i in xml:ĬardsGood = sum(1 for x in filtered. Oscam start script and check script every 2 sec this version is for ubuntu/debian/. Warn = '4' # service is WARN if greather or equal than n bad cardĭata = requests.get(url, auth=HTTPDigestAuth(username, password)).content State = 2 print '%d oscam_cards count=%d|good=%d|bad=%d %d cards, %d bad, %d good' % (state, cardsTotal, cardsGood, cardsBad, cardsTotal, cardsBad, cardsGood ) ![]() PLi Core member 63,924 posts Search for jobs related to Oscam script. State = 0 if cardsTotal - cardsGood >= warn: Attention: Here is updated tutorial 2019: OScam installation on Raspberry Pi. values ( ) if x = 'CARDOK' or x = 'CONNECTED' ) parse (data ) return dataįiltered ] = e xml = receive ( ) for i in xml :ĬardsGood = sum ( 1 for x in filtered. get (url, auth =HTTPDigestAuth (username, password ) ). Warn = '4' # service is WARN if greather or equal than n bad cardĭata = requests. Password = '' # define service status by "bad" cards ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |