XMLTV grabber for Schedules Direct JSON

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

User avatar
bill6502
Developer
Posts: 2299
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: XMLTV grabber for Schedules Direct JSON

Post by bill6502 »

In addition to the above location of ScheulesDirect.DB, you have the
<source name>.xmltv file(s) under ~mythtv/.mythtv too right?

Need to look at the mythfilldatabase.log. Should be in /var/log/mythtv.

If it doesn't offer any clues, pastebin it or attach it here.
dragonflyoh
Newcomer
Posts: 8
Joined: Mon Nov 03, 2014 11:07 pm
United States of America

Re: XMLTV grabber for Schedules Direct JSON

Post by dragonflyoh »

My computer quit so I will be away for a while.
dragonflyoh
Newcomer
Posts: 8
Joined: Mon Nov 03, 2014 11:07 pm
United States of America

Re: XMLTV grabber for Schedules Direct JSON

Post by dragonflyoh »

Reinstalling MYTHTV should I make a mythtv user and login as it before setting up MYTHTV?
User avatar
bill6502
Developer
Posts: 2299
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: XMLTV grabber for Schedules Direct JSON

Post by bill6502 »

You can, but, honestly I don't see why it isn't happening automatically
Here's the packaging script that I would expect to add the user (if it
doesn't exist.)

https://github.com/MythTV/packaging/blo ... ostinst#L8

I think I'm seriously missing something. But won't have time to spin up
a new host.
wesnewell
Senior
Posts: 731
Joined: Mon Jun 23, 2014 6:54 pm
Location: Wylie TX, USA
United States of America

Re: XMLTV grabber for Schedules Direct JSON

Post by wesnewell »

dragonflyoh wrote:
Sat Aug 22, 2020 2:41 am
Reinstalling MYTHTV should I make a mythtv user and login as it before setting up MYTHTV?
from a terminal type ls /home. it will list all users. You should already have a mythtv user. exp:
wes@mythfe0:~$ ls /home
mythtv wes
If you don't know the password for the mythtv user then do this.
sudo passwd mythtv
Enter a password, remember it.
now type this
su mythtv
enter the pw you just created above.
you should now be user mythtv. you can verify this by the change in the prompt to just a $ sign.
You can now run mythtv-setup as user mythtv. Or you can log out, and log back in as user mythtv. At login select mythtv or other if mythtv isn't an option. Depending on distro you run. Once you login as user mythtv you should go to the default desktop. from there, select mythv backend setup from the menu.
BE/FE-Asrock AB350 Pro Ryzen 3 3200G, 6 atsc tuners. FE's-GF8200's Athlon II, Ryzen 3 2200G. Mythtv user since 2005.
User avatar
heyted
Senior
Posts: 301
Joined: Sun Jun 08, 2014 2:14 am
Location: South Florida
Contact:
United States of America

Re: XMLTV grabber for Schedules Direct JSON

Post by heyted »

When I use Mythbuntu Control Panel to install MythTV, the mythtv user is created automatically. I have used MCP on Ubuntu and Xubuntu, so I'm not sure it will work on Mint.

MCP wiki: https://www.mythtv.org/wiki/Mythbuntu_Control_Panel
wesnewell wrote:
Sat Aug 22, 2020 2:03 pm
su mythtv
enter the pw you just created above.
you should now be user mythtv. you can verify this by the change in the prompt to just a $ sign.
You can now run mythtv-setup as user mythtv.
Need to use xhost if doing it this way without logging out and back in as mythtv:
xhost +SI:localuser:mythtv

Edit: MCP cannot be used with Mint unless it is modified.
Last edited by heyted on Sat Sep 12, 2020 7:35 pm, edited 1 time in total.
Ted | My blog
User avatar
heyted
Senior
Posts: 301
Joined: Sun Jun 08, 2014 2:14 am
Location: South Florida
Contact:
United States of America

Re: XMLTV grabber for Schedules Direct JSON

Post by heyted »

Just another way to do it -- run as mythtv user without creating password for mythtv:
xhost +SI:localuser:mythtv
sudo --login --user=mythtv mythtv-setup
Ted | My blog
wesnewell
Senior
Posts: 731
Joined: Mon Jun 23, 2014 6:54 pm
Location: Wylie TX, USA
United States of America

Re: XMLTV grabber for Schedules Direct JSON

Post by wesnewell »

The mythtv user is created if you just install the mythtv package from the repo too. That's never been the problem here. Running mythtv-setup as a regular user is the problem. it creates all the SD files in the regular users home instead of the mythtv home so the grabber doesn't work when run by user mythtv. That's easy to fix manually in a couple of minutes.
BE/FE-Asrock AB350 Pro Ryzen 3 3200G, 6 atsc tuners. FE's-GF8200's Athlon II, Ryzen 3 2200G. Mythtv user since 2005.
dragonflyoh
Newcomer
Posts: 8
Joined: Mon Nov 03, 2014 11:07 pm
United States of America

Re: XMLTV grabber for Schedules Direct JSON

Post by dragonflyoh »

Having pains with installing MYTHTV. Decided to remove and try a clean install and after removal, using the command line, I reinstall and all of the old settings are still there. Thinking of quitting as I do not want to reinstall Mint to start over. Thanks for all of the help.
User avatar
bill6502
Developer
Posts: 2299
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: XMLTV grabber for Schedules Direct JSON

Post by bill6502 »

"settings" is an actual table name in the mythconverg DB. I'm not sure if that's
what you're referring to above. When the package is removed, the DB isn't, so
everything, not just the settings table remains.

My experience has been that removing/reinstalling doesn't always solve issues.
While it can be useful, it isn't always.

If the only reason to doing it is getting XMLTV to work, I wouldn't reinstall.

A fresh mythfilldatabase.log may point to the issue or full command lines
with the resulting output are frequently of value.
User avatar
AnalogBill
Junior
Posts: 29
Joined: Fri Feb 10, 2017 2:11 am
United States of America

Re: XMLTV grabber for Schedules Direct JSON

Post by AnalogBill »

wesnewell wrote:
Wed Aug 19, 2020 8:25 pm
...Boot the install CD/DVD/USB stick. When asked for user name, most people will use their name. The system sets them up as the main user. There is no mythtv user at this time. And now the user does sudo apt-get install mythtv (or rpm or whatever depending on distro or from package manager) and the system installs all the stuff required to run a mythtv system including creating a user mythtv, but I'm user xyz.
Exactly what I did (years ago). Are you recommending to make mythtv the main user on the OS, or to use my username as the admin account on the OS but create a mythtv user before running the install and BE setup?
User avatar
heyted
Senior
Posts: 301
Joined: Sun Jun 08, 2014 2:14 am
Location: South Florida
Contact:
United States of America

Re: XMLTV grabber for Schedules Direct JSON

Post by heyted »

I'm sad to say Wes passed away. With Ubuntu, it is okay to install MythTV from multiverse or the Mythbuntu PPA without creating the mythtv user. The mythtv user will automatically be created during the install. BE setup (mythtv-setup) is most often run after switching the active user to mythtv. If using BE setup to configure the grabber with Schedules Direct, switching the user to mythtv must be done to get the files in the right place without having to move them later.
Ted | My blog
williamatwood
Junior
Posts: 63
Joined: Sun Feb 12, 2017 8:08 pm
Canada

Re: XMLTV grabber for Schedules Direct JSON

Post by williamatwood »

bill6502 wrote:
Sun Aug 16, 2020 11:40 pm
To answer the above, you really need to know which grabber you've selected.
You can use mythtv-setup or from a browser, go to <yourBackendHostNameOrIP>:6544/Channel/GetVideoSourceList
If tv_grab_zz_sdjson_sqlite was selected, then after running the four configuration commands in
the Wiki,
1. For those of us who end up on this page in the forum because our problem matches the problem you describe, and who find it very hard to locate anything that they want in the wiki, it would be extremely helpful if the phrase "the four configuration commands in the wiki" were followed by a link to the appropriate page (or code listing) in the wiki itself.
2. I believe that you are talking about the page https://www.mythtv.org/wiki/XMLTV. I believe that "Step 4" of this page is wrong. How do I make a suggestion and bring it to the attention of the person or people who can judge the merit of my suggestion?
User avatar
bill6502
Developer
Posts: 2299
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: XMLTV grabber for Schedules Direct JSON

Post by bill6502 »

It's the four grabber commands here: https://www.mythtv.org/wiki/XMLTV#Setup ... son_sqlite .
Unique to the SQLite version.
Post Reply