Spanish Abertis DTT Sat @ Hispasat 30W - Chat & How to guides

Adam792

Registered
Messages
101

Have you created a user in TVHeadend (it might need admin ticked, and access via network 127.0.0.1/32)? I have one called 'json' and then a password in passwords set also to 'json' for user 'json'. Then on line 27 and 28 in tvh-json.py you need to put that user/pass -

Code:
 TVH_USER=env('TVH_USER', 'json')
TVH_PASS=env('TVH_PASS', 'json')

You might need to change the line below from ('TVH_AUTH', 'digest') to ('TVH_AUTH', 'plain') depending on your TVHeadend version/settings too if it still doesn't work.
 

Oskar3

Registered
Messages
88
Have you created a user in TVHeadend (it might need admin ticked, and access via network 127.0.0.1/32)? I have one called 'json' and then a password in passwords set also to 'json' for user 'json'. Then on line 27 and 28 in tvh-json.py you need to put that user/pass -

Code:
 TVH_USER=env('TVH_USER', 'json')
TVH_PASS=env('TVH_PASS', 'json')

You might need to change the line below from ('TVH_AUTH', 'digest') to ('TVH_AUTH', 'plain') depending on your TVHeadend version/settings too if it still doesn't work.
Yes, I had all that since yesterday. The v. of tvh is 4.3-2000~g462c76ec1 and is configured as both plain and digest, although I tested the two separately. The user also put it as admin.
with 127.0.0.1/32
Traceback (most recent call last):
File "./tvh-json.py", line 187, in <module>
main(sys.argv)
File "./tvh-json.py", line 182, in main
globals()[cmd](*argv[2:])
File "./tvh-json.py", line 126, in do_export
body = do_get0('raw/export', {'uuid':args[0]})
File "./tvh-json.py", line 112, in do_get0
resp = TVHeadend(path).post(query)
File "./tvh-json.py", line 97, in post
return self._push(data, method='POST')
File "./tvh-json.py", line 88, in _push
r = Response(opener.open(request))
File "/usr/lib/python2.7/urllib2.py", line 429, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 447, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1235, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1205, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [Errno 111] Connection refused>
 
Last edited:

EnoSat

Senior Member
Messages
1,952
root@zgemmah9combo:~# astra --analyze http://localhost:8001/1:0:1:70A:EA7E:1:CE4AAAA:0:0:0: Nov 24 11:40:55: INFO: Starting Astra SM 0.2 Nov 24 11:40:56: INFO: Bitrate: 0 Kbit/s
If you have ZERO, check your Service reference in the menu box
 

EnoSat

Senior Member
Messages
1,952
I also agree I would like to lean what each of the Hex numbers mean so I can troubleshoot this myself plus help others.
-this ?
001a0000:07d2:0002
s 12303000:30000000:1:4:282:2:0:1:1:0:2:30:0:1:0:4096
----------------------------------------------------------
namespace - XXXXxxxx /XXXX-position , xxxx-frequency
transponder_stream_id - TID
original_network_id - NID
mode - s-Satellite , t-Terestrial , c-Cable
frequency - kHz
symbol_rate -
polarization - 0-Horizontal, 1-Vertical, 2-Left, 3-Right
fec_inner - FEC - 0-Auto, 1-1/2, 2-2/3, 3-3/4, 4-5/6, 5-7/8, 6-, 7-, 8-, 9-9/10
orbital_position - + = East , - = West
inversion - 0-Off, 1-On, 2-Auto
flags
system - 0-DVB-S, 1-DVB-S2, 2-None(crash e2)
modulation - 0-Auto, 1-QPSK, 2-8PSK, 3-QAM16, 4-16APSK, 5-32APSK, 6-None(crash e2)
roll_off - 0-0.35, 1-0.25, 2-0,20, 3-Auto, 4-None
pilot - 0-Off, 1-On, 2-Auto, 3-None
is_id - Multistream number (max.255)
pls_code - Psychical Layer Stream number (max.262141)
pls_mode - 0-Gold, 1-Gold, 2-Combo, 3-unknown
t2mi_plp_id - T2-MI number
t2mi_pid - T2-MI pid

0fa1:011a0000:07d2:0002:25:0
Sky Sports 1 HD
p:BSkyB,c:050001
-------------------
service_id - SID
namespace - XXXXxxxx /XXXX - position , xxxx - frequency/
transport_stream_id - TID
original_network_id - NID
service_type -
flags/ATSC_source_id // source_id 0 = not use
name
 

EnoSat

Senior Member
Messages
1,952
i' Want to build for AArch64 in enigma
but astra-sm support only ARM & MIPS
 

Adam792

Registered
Messages
101
Yes, I had all that since yesterday. The v. of tvh is 4.3-2000~g462c76ec1 and is configured as both plain and digest, although I tested the two separately. The user also put it as admin.
with 127.0.0.1/32
Traceback (most recent call last):
File "./tvh-json.py", line 187, in <module>
main(sys.argv)
File "./tvh-json.py", line 182, in main
globals()[cmd](*argv[2:])
File "./tvh-json.py", line 126, in do_export
body = do_get0('raw/export', {'uuid':args[0]})
File "./tvh-json.py", line 112, in do_get0
resp = TVHeadend(path).post(query)
File "./tvh-json.py", line 97, in post
return self._push(data, method='POST')
File "./tvh-json.py", line 88, in _push
r = Response(opener.open(request))
File "/usr/lib/python2.7/urllib2.py", line 429, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 447, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1235, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1205, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [Errno 111] Connection refused>

Hmm how do you have the user set-up in TVHeadend? This is mine, everything is default below this. Everything is ticked in 'change parameters':



I find the user access in TVH to be the hardest to get my head around, it never quite works like I'm expecting. :D

I'm on 4.3-2027 so not too much different.
 

Oskar3

Registered
Messages
88
Hmm how do you have the user set-up in TVHeadend? This is mine, everything is default below this. Everything is ticked in 'change parameters':



I find the user access in TVH to be the hardest to get my head around, it never quite works like I'm expecting. :D

I'm on 4.3-2027 so not too much different.
Don’t let it, it’s narrow. :p
Traceback (most recent call last):
File "./tvh-json.py", line 187, in <module>
main(sys.argv)
File "./tvh-json.py", line 182, in main
globals()[cmd](*argv[2:])
File "./tvh-json.py", line 126, in do_export
body = do_get0('raw/export', {'uuid':args[0]})
File "./tvh-json.py", line 112, in do_get0
resp = TVHeadend(path).post(query)
File "./tvh-json.py", line 97, in post
return self._push(data, method='POST')
File "./tvh-json.py", line 88, in _push
r = Response(opener.open(request))
File "/usr/lib/python2.7/urllib2.py", line 429, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 447, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1235, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1205, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [Errno 111] Connection refused>
 

chelo71

Super VIP
Messages
1,652
Works on Octagon SF 4008 and Edition OS mio 4K. I was finally able to set the channel correctly in lamedb and have it not disappear. I had everything fine except the channels in userbouquet, I put them as always before. I copied the channels from the clief list, then I saw the difference. I was not able to see that these should be written differently.
I can't, the channels always disappear, can I have a backup octagon sf4008?
 

EnoSat

Senior Member
Messages
1,952
You can't try mine if you have completely different references
root@zgemmah9combo:~# astra --analyze http://localhost:8001/1:0:1:70A:EA7E:1:CE4AAAA:0:0:0: Nov 24 11:40:55: INFO: Starting Astra SM 0.2 Nov 24 11:40:56: INFO: Bitrate: 0 Kbit/s
 

Adam792

Registered
Messages
101
Don’t let it, it’s narrow. :p
Traceback (most recent call last):
File "./tvh-json.py", line 187, in <module>
main(sys.argv)
File "./tvh-json.py", line 182, in main
globals()[cmd](*argv[2:])
File "./tvh-json.py", line 126, in do_export
body = do_get0('raw/export', {'uuid':args[0]})
File "./tvh-json.py", line 112, in do_get0
resp = TVHeadend(path).post(query)
File "./tvh-json.py", line 97, in post
return self._push(data, method='POST')
File "./tvh-json.py", line 88, in _push
r = Response(opener.open(request))
File "/usr/lib/python2.7/urllib2.py", line 429, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 447, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1235, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1205, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [Errno 111] Connection refused>

Still seems like TVHeadend is blocking it in some way if the connection is refused (the error comes from the Python code inside the script trying to do the API request to TVHeadend).

You might need to adjust the 'allowed networks' setting for the user you're using, and adjust line 26 in tvh-json.py until it lets you do it -

Code:
TVH_API=env('TVH_API_URL', 'http://localhost:9981/api')

(Maybe try "http://127.0.0.1:9981/api"?)

For me it works with allowed networks as 127.0.0.1/32, and the default line above in tvh-json.py, running on the same machine of course.
 

Oskar3

Registered
Messages
88
Still seems like TVHeadend is blocking it in some way if the connection is refused (the error comes from the Python code inside the script trying to do the API request to TVHeadend).

You might need to adjust the 'allowed networks' setting for the user you're using, and adjust line 26 in tvh-json.py until it lets you do it -

Code:
TVH_API=env('TVH_API_URL', 'http://localhost:9981/api')

(Maybe try "http://127.0.0.1:9981/api"?)

For me it works with allowed networks as 127.0.0.1/32, and the default line above in tvh-json.py, running on the same machine of course.
This is what initially gave me this mistake.
I’m testing all kinds of possibilities.
Thank you Adán792


HTTP ERROR "http://127.0.0.1:9981/api/raw/export" 403 Forbidden
 

Ramboide

Registered
Messages
202
All what is necessary for PID 802 in a Enigma2 receiver compiled here. Thanks to all the people who have made this great work.

- lamedb:
Code:
transponders
0ce4aaaa:ea7e:0001
    s 10922000:16400000:1:3:-300:2:0:1:2:0:2

If in lamedb is created transponder without services like this, then edit as seen above:
0ce40000:ea7e:0001
                  s 10922000:16400000:1:3:-300:2:0:1:2:0:2
Remeber deactivate Enigma 2 with "init 4" and reactivate with "init 3"

services
070a:0ce4aaaa:ea7e:0001:1:0:0
Abertis PID 802
p:ABERTIS:c:031fff,c:150322,C:2600,f:4

- userbouquet:
Code:
#SERVICE 1:64:4E6:0:0:0:0:0:0:0::(TV) 10922 V 16400 3/4 802
#DESCRIPTION (TV) 10922 V 16400 3/4 802
#SERVICE 1:0:1:30D5:A:22D4:0:0:0:0:http%3a//0.0.0.0%3a9999/abertis/pid802plp0:TVE UHD [802]
#DESCRIPTION TVE UHD [802]
#SERVICE 1:0:1:30D6:A:22D4:0:0:0:0:http%3a//0.0.0.0%3a9999/abertis/pid802plp0:UHD-2 [802]
#DESCRIPTION UHD-2 [802]

- astra.conf:
Code:
make_channel({
  name = "Abertis PID 802",
  input = {
    "http://localhost:8001/1:0:1:70A:EA7E:1:CE4AAAA:0:0:0:",
  },
  transform = {{
    format = "pipe",
      command = "/etc/astra/scripts/abertis 802",
  }},
  output = {
    "http://0.0.0.0:9999/abertis/pid802",
  },
})

f10992abertis0 = make_t2mi_decap({
        name = "Abertis PID 802",
        input = "http://0.0.0.0:9999/abertis/pid802",
        plp = 0,
        pnr = 0,
        pid = 4096,
})

make_channel({                                               
  name = "10992plp0",
  input = {
    "t2mi://f10992abertis0",
  },
  output = {
    "http://0.0.0.0:9999/abertis/pid802plp0",
  },   
})

Keys:
Code:
F 070A1FFF 00 xxxxxxxxxxxxxxxx ;ABERTIS HS200.1 0322_802 (30W/10922V) TVE 4K
F 070A1FFF 01 xxxxxxxxxxxxxxxx ;ABERTIS HS200.1 0322_802

Adding these lines makes it work well on receivers where it doesn't work well:
Code:
net.core.rmem_default = 16777216
net.core.rmem_max = 16777216
net.core.wmem_default = 16777216
net.core.wmem_max = 16777216
net.ipv4.udp_mem = 8388608 12582912 16777216
net.ipv4.tcp_rmem = 4096 87380 8388608
net.ipv4.tcp_wmem = 4096 65536 8388608
net.ipv4.tcp_tw_recycle = 0
 
Last edited:

lordgothic

Registered
Messages
136
i have octagon sf8008 works fine
also i have edision os mio 4k and not work any help? i put into edision the same files that octagon
 
Top