or
1. Install astra
2.
chmod +x /usr/bin/astra
3. Create directory
mkdir /etc/astra/
Example testch.lua file:
#!/usr/bin/astra
-- log.set({ debug = true })
log.set({
debug = true,
filename = "testch.log",
})
pidfile("/var/run/testch.pid")
adapter_1 = dvb_tune({
type = "S2",
adapter = 1,
tp = "11995:H:25000",
lnb = "9750:10600:11700",
})
make_channel({
name = "testch",
input = {
"dvb://adapter_1#pnr=2099&cam"
},
output = {
"http://192.168.1.188:6019/testch"
}
})
make_channel({
name = "testch1",
input = {
"dvb://adapter_1#pnr=2088&cam"
},
output = {
"http://192.168.1.188:6019/testch1"
}
})
4.
chmod +x /etc/astra/testch.lua
5. Run lua file as root
./etc/astra/testch.lua
(0 time(s) working and 0 time(s) not-working in total)