Hi,
i don't know how, but i still need to ask, is it possible to make a script to delete readers where the Status is 'OFF' or 'ERROR'.
Thanks,
chapas
There are 4 replies in this Thread which was already clicked 1,456 times. The last Post () by chapas5400.
Hi,
i don't know how, but i still need to ask, is it possible to make a script to delete readers where the Status is 'OFF' or 'ERROR'.
Thanks,
chapas
Hi,
of course ... in Linux you can do everything ... ha ha ... really anything. But after deleting broken readers, you also need to restart Oscam and if you own an Oscam server it can be a problem for connected clients (frequent reboot).
For example, the Bash script could test for three days, the operation of all Oscam readers, and if one is always offline for three days, the entire configuration block will be deleted (can be deleted directly in the "oscam.server" file but also via interface / OscamWebif using the "wget" command, but the latter is more complicated to send "OK" confirmation by POST HTTP, when deleting the reader).
Thanks for your answer,
basically, that's it! Just don't know how to.
Thanks,
chapas
Sorry, but you have to write what you want first, because I'm not a fortune teller. :-/ Do you want to assign a button on the RCU to a bash script with deleting inactive readers? Do you want to schedule (into CRON daemon for example) as I mentioned above, auto-scan every 3 days of inactive readers and delete them from the oscam.server file? Do you want to do this (delete invalid readers) only at your instruction, manually, once a week for example?
Of course, it would be a good idea to add an Oscam restart to the CRON scheduler. Alternatively, after checking inactive inactive Oscam readers every 3 days, for example, they will also be deleted + Oscam will restart.
There are indeed many possibilities to do this. If I don't know what you intend, I can't even help you.
Hi,
returning to this topic to offer some help if someone in need like i was, I've made a small .net Core application to update the oscam readers file.
It is working on my raspberry pi 4, you can find the code here:
https://github.com/chapas/OsCamMaintainer
Any questions please let me know,
chapas
Don’t have an account yet? Register yourself now and be a part of our community!