A new feature is planned for a future DVBStreamExplorer release. This feature will allow a user defined Python script to be invoked at certain points during 'Multiple DVB-x MUX scanning'. User script will be called on events like:
- Starting a new scan session.
- Starting scan of new satellite. This is only applicable for DVB-S scanning.
- Starting scan of new MUX. Tuner parameters.
- Scanning of MUX completed.
- Scanning of satellite completed. This is only applicable for DVB-S scanning.
- Scan session completed.
In example below user script is handling the start scanning of new DVB-S MUX event.
This code causes scanning of horisontal transponders only. Scanning of vertical transponders will be skipped.While this might not represent an interesting case for a real production system, it does demonstrate the possibilities. Note that 'self.count=self.count+1' statement is to keep track of the number of times script was called. This is for debugging purposes only.def StartScanMuxDvbS(self,frequency, symbolrate, polarisation, fec):print(self.count,frequency, symbolrate, polarisation, fec)self.count=self.count+1if polarisation == "H":return 0else:return 1
A more realistic case for a real production system: If you are scanning multiple satellites on a regular basis, you might have certain expectations about hove many transponders should be scanned and how many services should be found. If scan result differs too much from your expectations you could send a notification, i.e. email, to a user to alert about this.
The work on this is still in progress. I now have a working prototype. But there is still some way before it's ready for public release.
Please feel free to provide feedback on this, i.e. if you have any suggestion about information that should be passed on to user script. You can provide feedback either by commenting on this post or send to email@example.com.