minisatip icon indicating copy to clipboard operation
minisatip copied to clipboard

RFE: read config from file

Open 3PO opened this issue 9 years ago • 5 comments

Hi,

is it possible to implement a Parameter for reading the confings from a file?

Example:

minisatip -c /etc/minisatip/minisatip.conf

minisatip.conf --> https://bpaste.net/show/6f0f1bb66f90

3PO avatar Apr 12 '15 08:04 3PO

I will keep this enhancement in mind, probably soon I will need conf file...

catalinii avatar Apr 14 '15 09:04 catalinii

I solved this by a config file like this:

# /etc/conf.d/minisatip: config file for /etc/init.d/minisatip


MINISATIP_OPTS=""


# remote_rtp_host:
# send remote rtp to remote_rtp_host
# MINISATIP_OPTS="${MINISATIP_OPTS} -r 192.168.0.5"


# specify the device id (in case there are multiple SAT>IP servers in the network)
# MINISATIP_OPTS="${MINISATIP_OPTS} -d 1"


# http_server[:port]
# specify the host and the port where the xml file can be downloaded from
# MINISATIP_OPTS="${MINISATIP_OPTS} -w 192.168.0.20:8080"


# port: 
# port for listening on http
# MINISATIP_OPTS="${MINISATIP_OPTS} -w 4321"


# force to get signal from the DVB hardware every 200ms:
# (use with care, only when needed)
# MINISATIP_OPTS="${MINISATIP_OPTS} -s"


# x:y:z simulate x DVB-S2, y DVB-T2 and z DVB-C adapters on this box (0 means autodetect)
# MINISATIP_OPTS="${MINISATIP_OPTS} -a 0"


# simulate local mac address, generates UUID based on mac
# MINISATIP_OPTS="${MINISATIP_OPTS} -m 001122334455"


# list_of_enabled adapters:
# enable only specified adapters, example 0-2,5,7 (no spaces between parameters)
# MINISATIP_OPTS="${MINISATIP_OPTS} -e 0-2,5,7"


# bandwidth capping for the output to the network (default: unlimited)
# MINISATIP_OPTS="${MINISATIP_OPTS} -c 25"


# set the DVR buffer to X KB (default: XX KB)
# MINISATIP_OPTS="${MINISATIP_OPTS} -b 100"


# increases the log verbosity (you can use multiple -l),
# logging to stdout in foreground mode or in /tmp/log when a daemon
# MINISATIP_OPTS="${MINISATIP_OPTS} -l -l -l -l"


# specify playlist url using X_SATIPM3U header:
# MINISATIP_OPTS="${MINISATIP_OPTS} -p 192.168.0.33"


# unicable_string:
# defines the unicable adapters (A) and their slot (S) and frequency (F):
# The format is: A1:S1-F1[,A2:S2-F2[,...]]
# MINISATIP_OPTS="${MINISATIP_OPTS} -u"


# jess_string:
# same format as unicable_string 
# MINISATIP_OPTS="${MINISATIP_OPTS} -j"


# use syslog instead stdout for logging,
# multiple -g - print to stderr as well:
MINISATIP_OPTS="${MINISATIP_OPTS} -g"


# specify the hostname and port for the dvbapi server (oscam) host:port 
# MINISATIP_OPTS="${MINISATIP_OPTS} -o 192.168.0.10:9000"

But im not sure with the Parameters -c, -b, -u and -j. Maybe someone of the experts can me explain this and give me some examples? ;)

3PO avatar May 02 '15 16:05 3PO

Hi,

-j and -u have the same syntax: 2:0-1284[-111] where 2 - adapter number 2 (/dev/dvb/adapter2) 0 - switch slot 1284 - switch frequency 111 - pin for the switch - optional

If you send -j or -u, minisatip will consider the adapter as using jess/unicable and tuning will fail if you do not have a switch installed.

-c 2000 limit the bandwidth sent to all streams to 2000 KB/s

-b 18800:189188 18800 - is the adapter buffer, how much data should the app cache before processing 189188 - is the buffer on the kernel side (before getting E_OVERFLOW).

Thanks

catalinii avatar May 03 '15 13:05 catalinii

+1 for a config file. :-)

hargut avatar Oct 17 '15 15:10 hargut

Will this be implemented?

Saentist avatar May 14 '23 16:05 Saentist