Cov txheej txheem:

Ntxiv Icons thiab EPG Txawv rau Tvheadend: 11 Kauj Ruam
Ntxiv Icons thiab EPG Txawv rau Tvheadend: 11 Kauj Ruam

Video: Ntxiv Icons thiab EPG Txawv rau Tvheadend: 11 Kauj Ruam

Video: Ntxiv Icons thiab EPG Txawv rau Tvheadend: 11 Kauj Ruam
Video: Yog zoo ces lawv yuav lawm 11/13/2018 2024, Kaum ib hlis
Anonim
Ntxiv Icons thiab EPG Txawv rau Tvheadend
Ntxiv Icons thiab EPG Txawv rau Tvheadend

Tshaj tawm TV hauv kuv txoj kab txiav kab siv plaub lub TV USB tau txais txuas nrog lub PC khiav ubuntu thiab tvheadend. Txhua lub TV txuas nrog Raspberry Pi khiav Kodi ntawm OSMC. Tvheadend muab ntau yam tshwj xeeb suav nrog kaw cov vis dis aus tus kheej (PVR, uas tseem hu ua digital kaw cov vis dis aus, lossis DVR).

Tvheadend los nrog cov txheej txheem tsim hluav taws xob qhia (EPG). EPG zoo li TV qhia qhia pib thiab nres lub sijhawm thiab piav qhia txog kev ua yeeb yam. Cov built-in EPG rub tawm cov ntaub ntawv hais txog yuav tshwm sim tom ntej los ntawm cov pa tshaj tawm hauv huab cua.

Kuv tsis txaus siab nrog qib ntawm cov ncauj lus qhia txog cov yeeb yam.

Tom qab qee qhov kev tshawb fawb, Teem Sijhawm Ncaj Ncees thiab zap2it zoo li yog lwm txoj hauv kev zoo tshaj rau tshaj tawm hauv TV hauv Asmeskas. Cov Sijhawm Ncaj Ncees ncaj qha them tus nqi (~ $ 20/yr), thiab zap2it yog pub dawb. Yog li, kuv xaiv zap2it, tab sis qee zaum thaum Lub Ib Hlis zap2it hloov nws lub vev xaib thiab rub tawm EPG cov ntaub ntawv tawg. Tus lej rub tawm tau hloov kho tshiab, tab sis tus lej tshiab ua tsis tiav los rub cov ntaub ntawv EPG. Tsis tas li, nplooj zap2xml muaj qhov txuas rau mc2xml, thiab qhov txuas muaj kab mob. Yog li, kuv hloov mus rau Teem Sijhawm Ncaj Ncees.

Kuv googled teeb tsa zap2it thiab zap2xml cov lus qhia ntau zaus thiab tsis txaus siab rau qhov kuv pom. Kuv paub tseeb tias cov lus qhia zoo nyob ntawd, Kuv tsuas yog nrhiav tsis tau lawv. (Saib kuv Duh Moment hauv qab no)

Los ntawm tsis txaus siab, kuv txhais tau tias zap2it cov lus qhia ci rau cov kauj ruam tseem ceeb lossis dhau sijhawm. Raws li qhov ua piv txwv, qhov kev tshaj tawm reddit no zoo heev thiab tau txais kuv txaus siab los txhim kho EPG, tab sis nws ua rau qee qhov tseem ceeb heev. Thiab nws xaus nrog:

"Cia siab tias qhov no ua rau koj nkag siab zoo, thiab hmoov zoo - nws ua tau tab sis kom txog thaum koj tau ua nws thawj zaug, cov txheej txheem yuav zoo li sib zog me ntsis!"

Kuv Duh Moment: Thaum kuv ua tiav cov lus qhia siv zap2it, Kuv tau rov qab los ntawm txhua kauj ruam kom ntseeg tau tias lawv ua haujlwm. Thiab kuv paub rocky4546's Tsis Siv Neeg Kev Txhim Kho cov kauj ruam yog qhov tseeb thiab yooj yim heev ua raws. Vim li cas los xij, Kuv tau xauv-hauv ntau yam kev teeb tsa phau ntawv qhia thiab hla nws Kev Txhim Kho Kom Zoo, uas ua haujlwm zoo kawg nkaus. Kuv tsis paub tseeb tias phau ntawv qhia no yuav pab tau, tab sis nws yog kev kawm rau kuv kom ua raws cov lus qhia.

Kuv tau hloov kho cov lus qhia kom siv Teem Sijhawm Ncaj Ncees. Teem sijhawm Qhia ncaj qha yog yooj yim dua zap2it.

Kauj Ruam 1: Sau Qhov Chaw

Sib Sau
Sib Sau

Cov lus qhia no yog kev ntxiv rau cov lus qhia no: Kuv Cord Txiav System

Qhov:

  • PC khiav tvheadend ntawm OSMC
  • Raspberry Pi khiav Kodi ntawm OSMC
  • Txij li thaum kuv tau txhim kho cov cim thiab TV Qhia, kuv kuj tau hloov pauv cov tawv nqaij. Kuv siv cov txheej txheem Kodi tawv nqaij tau ntau lub hlis. Yog li, kuv tus poj niam thiab kuv tuaj yeem txiav txim siab yam peb nyiam thiab yam peb tsis nyiam. Kuv hloov daim tawv nqaij mus rau "xperience1080"
  • Teem sijhawm ncaj qha tus account $ 19.99 toj xyoo

Sau ntawv:

Cov ntawv nyob hauv spades txhais tau tias yuav hloov los ntawm koj cov ntaub ntawv, "username"

Kauj ruam 2: Teeb Teem Sijhawm Ncaj Ncees

Teeb Teem Sijhawm Ncaj Ncees
Teeb Teem Sijhawm Ncaj Ncees

Sau npe rau Schedule Direct account

  • Ua raws qhov txuas no rau Cov Sijhawm Ncaj Ncees
  • Ua tiav nplooj ntawv sau npe (duab 2)
  • Nyem Sau npe! khawm
  • Cov Sijhawm Ncaj Ncees yuav tsum mus rau koj tus account nplooj ntawv. Yog tias tsis yog, nkag mus siv koj tus email thiab password

Kauj Ruam 3: Xaiv Koj Cov Sijhawm Ncaj Ncees ncaj qha

Xaiv Koj Cov Sijhawm Ncaj Ncees
Xaiv Koj Cov Sijhawm Ncaj Ncees

Cov tshaj tawm hauv xov tooj cua tau tshaj tawm ntau txoj hauv kev. Piv txwv, hauv kuv thaj tsam, CW (54.1) tshaj tawm LAFF (54.2) thiab Grit (54.3).

Kuv teeb kuv qhov system kom tsuas yog siv cov channel tseem ceeb hauv Central Texas: ABC (24.1), CBS (42.1), CW (54.1), Fox (7.1), NBC (36.1), PBS (18.1), thiab PBS Kids (18.4). Koj tuaj yeem xaiv cov channel twg los xij muaj. Koj tuaj yeem ib txwm ntxiv ntau txoj hauv kev tom qab.

Xaiv koj cov channel

  • Los ntawm lub neej ntawd txhua txoj hauv kev suav nrog
  • Nyem rau qhov txuas "Ntxiv Kab" (duab 1)

    • Sau koj tus zip code
    • Xaiv "Tshaj Tawm (Antenna)"
  • Ntxiv koj txoj kev nyiam (duab 3)

    Cov no yog kuv li: ABC (24.1), CBS (42.1), CW (54.1), Fox (7.1), NBC (36.1), PBS (18.1), thiab PBS Kids (18.4)

  • Nyem "Txuag"

Kauj Ruam 4: Teeb Sijhawm Ncaj Ncees ncaj qha rau ntawm koj lub Server

Teeb Sijhawm Ncaj Ncees ncaj qha rau ntawm koj lub Server
Teeb Sijhawm Ncaj Ncees ncaj qha rau ntawm koj lub Server

Tvheadend xav tau nyeem xml cov ntaub ntawv los ntawm Schedules Direct.

Nws siv/usr/bin/tv_grab_na_tvmedia. Yog tias koj tsis tau teeb tsa qhov no, tom qab ntawd khiav:

$ sudo apt-tau nruab xmltv-siv

Qhib lub davhlau ya nyob twg ntawm koj lub MacBook thiab nkag mus rau tvheadend server siv ib qho ntawm cov hauv qab no:

$ ssh ♣username♣@♣tvheadend-server-name♣.local

$ ssh ♣ username ♣@♣ tvheadend-server-ip-address ♣

Ntawm tvheadend server hauv lub qhov rai MacBook, ua cov npe/tsev/♣ username ♣/xmltv nrog cov lus txib:

$ sudo mkdir/tsev/♣ username ♣/xmltv

Thiab ua lub cim txuas los ntawm hts

$ sudo su - hts

hts $ ln -s/tsev/♣ username ♣/xmltv.xmltv hts $ tawm

Cov lus saum toj no tuaj yeem ua rau me ntsis tsis meej pem vim tias koj nkag mus li hts, thiab koj lub tsev npe yog /home /hts. Txhawm rau pom qhov no, sau $ ls ~/.

Thaum koj nkag mus $ tawm, koj tawm ntawm tus neeg siv hts. Cov cim txuas yuav tsis pom rau koj ♣ username ♣, tab sis nws yog rau cov neeg siv hts thiab ~ xmltv txuas yog xav tau rau kev ua haujlwm zoo ntawm tvheadend, uas siv hts thiab tsis paub txog koj ♣ username ♣.

Kho Cov Sijhawm Ncaj Ncees

Koj tus lej API tuaj yeem pom ntawm koj tus account nplooj ntawv (saib Duab)

Configure Schedules Direct los ntawm kev hais kom ua:

$/usr/bin/tv_grab_na_tvmedia-teeb tsa API Key pom ntawm koj tus account dashboard nplooj ntawv (https://www.xmltvlistings.com/account/) API Key: ♣ your-api-key ♣ Xaiv ib qho ntawm koj cov npe. Koj tuaj yeem ntxiv lossis hloov kho kab ntawm koj tus account nplooj ntawv (https://www.xmltvlistings.com/account/) Kab ntawv: 0: Tshaj Tawm-Cedar Park, TX Xaiv ib qho: [0 (default = 0)] 0

Kauj Ruam 5: Tvheadend Grabber Module

Tvheadend Grabber Module
Tvheadend Grabber Module

Pab kom/usr/bin/tv_grab_na_tvmedia

  • Qhib tus browser thiab mus rau koj lub tvheadend installation

    • https://tvheadend.local: 9981/extjs.html
    • Kuv khaws qhov luv rau kuv tvheadend hauv kuv tus browser thiab khaws lub npe siv thiab tus lej nkag
  • Hauv TVHeadend lub vev xaib, mus rau Configuration -> Channel / EPG -> EPG Grabber Modules

    • Rau txhua daim tshev ntsuab, (tsuas yog ua ib zaug xwb)

      • Uncheck lub Enabled box, thiab
      • Txuag
      • Tej zaum koj yuav tsum rov kho nplooj ntawv kom ntseeg tau tias daim tshev ntsuab tag nrho
    • Tam sim no, nrhiav "Sab hauv: XMLTV: North America (XMLTVListings.com los ntawm TVMedia)"

      • Hauv lub kaum sab xis sab xis, nyem rau ntawm ob npaug rau xub cim, uas qhib lub cav qhov rai
      • Xaiv kab nrog tv_grab_file
      • Kos rau lub thawv Enabled
      • Txuag
      • lub cav qhov rai yuav qhia seb nws puas ua haujlwm lossis tsis yog

Kauj Ruam 6: EPG Grabber

EPG Cov
EPG Cov
EPG Cov
EPG Cov

EPG Cov

  • Hauv TVHeadend lub vev xaib, mus rau Configuration -> Channel / EPG -> EPG Grabber
  • Txheeb xyuas "Hloov Tus Xov Tooj Tshiab"
  • Hauv Cron multiline:

    • # grabber khiav ntawm 6 teev sawv ntxov. Grabber khiav thaum 6 teev sawv ntxov, 2 teev tsaus ntuj thiab 6 teev tsaus ntuj txhua hnub
    • 
0 5 * * *
    • 
0 14 * * *
    • 
0 18 * * *
  • Nyem Txuag

EPG Raws

Cov channel yuav tsum zoo li cov hauv daim duab

Kauj ruam 7: TV Icons

TV Icons
TV Icons

Nrhiav TV Icons

  • Kuv googled: abc tv lub cim siv cov duab teeb tsa, thiab muaj peev xwm pom cov cim rau txhua ntawm cov tes hauj lwm.
  • Kuv tau xaiv ob qho ntawv png thiab-j.webp" />
  • Kuv khaws cov duab rau kuv lub MacBook

Tsim cov npe

  • Ntawm MacBook ntawm lub qhov rai davhlau ya nyob twg, nkag mus ($ ssh)
  • Tsim cov npe

$ sudo mkdir/home/♣ username ♣/xmltv/icons

$ tawm

Luam cov cim rau Raspberry Pi

Hauv lub qhov rai dav dav, luam cov cim rau Raspberry Pi

$ scp *.png ♣username♣@♣tvheadend-server-name♣.local:/home/♣ username ♣/xmltv/icons/.

Pab kom cov cim hauv tvheadend

  • Hauv browser, mus rau tvheadend thiab Configuration -> Channel / EPG -> Channels
  • Xaiv kab rau ib qho ntawm koj cov channel
  • Nyem Kho kom raug
  • Hauv User Icon teb, nkag mus rau txoj hauv kev, ib yam zoo li (Fox yog channel 7.1, thiab lub cim yog 7.1., Png)

    file: ///home/hts/~xmltv/icons/7.1.png

Kauj Ruam 8: Cov Ntawv Ntxiv: Cov neeg ua tim khawv

Teem sijhawm ncaj qha

Qhia: Yuav Ua Li Cas Teeb XMLTV rau TVHeadEnd

reddit ncej

Kauj ruam 9: Cov ntawv txuas ntxiv: Hloov kho tshiab

16 Lub Ib Hlis 2018:

zap2xml.pl tau hloov kho thiab ntau yam hloov pauv. Yog li, kuv tau hloov pauv kom haum rau cov kev hloov pauv

20 Lub Ib Hlis 2018:

  • Nyuam qhuav pib lub hlis, zap2it hloov nws lub vev xaib thiab ua cas tsoo rub cov ntaub ntawv EPG. Kuv hloov kho dua tshiab rau cov cai tshiab, tab sis qhov ntawd tsis pab thiab nws yuav yuam kev tawm ua ntej ua tiav.
  • Hloov los ntawm zap2it rau Sijhawm Ncaj Ncees, uas yog kev pabcuam them nyiaj (~ $ 20/xyoo), tab sis nws yooj yim dua rau siv.
  • Hloov kho cov lus qhia kom xav txog Schedules Direct

Kauj ruam 10: Cov ntawv txuas ntxiv: Kev daws teeb meem

Kauj Ruam 11: Cov Ntawv Ntxiv: Kev Nruab Nrab

Thaum kuv tsis tau siv qhov no, nws zoo li nws yuav tsum ua haujlwm:

tvheadend.org/attachments/5188/tvheadend_EPG.sh

Pom zoo: