BOSWatch 3
Python Script to receive and decode German BOS Information with rtl_fm and multimon-NG
 
Loading...
Searching...
No Matches
boswatch.utils.misc Namespace Reference

Functions

 addClientDataToPacket (bwPacket, config)
 Add the client information to the decoded data.
 
 addServerDataToPacket (bwPacket, config)
 Add the server information to the decoded data.
 

Detailed Description


/ __ )/ __ \/ ___/ | / /___ _/ /______/ /_ |__ / / __ / / / /__ | | /| / / __ `/ __/ ___/ __ \ /_ < / /_/ / /_/ /___/ /| |/ |/ / /_/ / /_/ /__/ / / / ___/ / /_____/____//____/ |__/|__/__,_/__/___/_/ /_/ /____/ German BOS Information Script by Bastian Schroll

Function Documentation

◆ addClientDataToPacket()

boswatch.utils.misc.addClientDataToPacket (   bwPacket,
  config 
)

Add the client information to the decoded data.

This function adds the following data to the bwPacket:
- clientName
- clientVersion
- clientBuildDate
- clientBranch
- inputSource
- frequency
23def addClientDataToPacket(bwPacket, config):
24 r"""!Add the client information to the decoded data
25
26 This function adds the following data to the bwPacket:
27 - clientName
28 - clientVersion
29 - clientBuildDate
30 - clientBranch
31 - inputSource
32 - frequency"""
33 logging.debug("add client data to bwPacket")
34 bwPacket.set("clientName", config.get("client", "name"))
35 bwPacket.set("clientVersion", version.client)
36 bwPacket.set("clientBuildDate", version.date)
37 bwPacket.set("clientBranch", version.branch)
38 bwPacket.set("inputSource", config.get("client", "inputSource"))
39 bwPacket.set("frequency", config.get("inputSource", "sdr", "frequency"))
40
41

◆ addServerDataToPacket()

boswatch.utils.misc.addServerDataToPacket (   bwPacket,
  config 
)

Add the server information to the decoded data.

This function adds the following data to the bwPacket:
- serverName
- serverVersion
- serverBuildDate
- serverBranch
42def addServerDataToPacket(bwPacket, config):
43 r"""!Add the server information to the decoded data
44
45 This function adds the following data to the bwPacket:
46 - serverName
47 - serverVersion
48 - serverBuildDate
49 - serverBranch"""
50 logging.debug("add server data to bwPacket")
51 bwPacket.set("serverName", config.get("server", "name"))
52 bwPacket.set("serverVersion", version.server)
53 bwPacket.set("serverBuildDate", version.date)
54 bwPacket.set("serverBranch", version.branch)