NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support macOS v
1 2 3 4 Next »
Definitive (or current) procedure for macOS

 
  • 0 Vote(s) - 0 Average
Definitive (or current) procedure for macOS
davide
Offline

Junior Member

Italia
Posts: 16
Threads: 1
Joined: Jan 2025
#1
2025-05-19, 08:35 AM (This post was last modified: 2025-05-19, 08:40 AM by davide.)
Hello everyone, 
you are patient but I went from Windows to Macos (Mac Studio Ultra) and I am precisely to type what you need to do in this environment to enable the extraction of the EPG. 
On Windows it was relatively simple with the execution of a time script, but on Mac reading other themed posts I went to the confusion. As for Windows I purchased Netxpvr UI but I really don't understand how to proceed.

I add that for now I am making the usual script in the Windows environment, then manually copy the EPG.XML file to the Mac .NPVR-Data folder. Obviously so it is an almost daily punishment….

Could you help me? 
Thanks
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,082
Threads: 957
Joined: May 2006
#2
2025-05-19, 01:16 PM
I won't help with your script but maybe these tips will help.

- scripts will use .sh not .bat so the file will be UpdateEPG.sh
- ensure that the .sh file is saved with chmod +x UpdateEPG.sh to make it executable.
- make sure UpdateEPG.sh works from the command line.
- ensure the .sh file is using a Linux style editor. Do not create the file with Windows.
- the scripting language is not the same.

I leave it to you to read up on those tips.

Martin
davide
Offline

Junior Member

Italia
Posts: 16
Threads: 1
Joined: Jan 2025
#3
2025-05-28, 09:21 AM
Thanks for the suggestions.
Premise dotnet ./nextpvrserver.dll started without any problem.
Keeping User and password of default I created with the help of a friend who understands the most, the Update_epg.sh script and saved in the .npvr-Data folder

#!/bin/bash

# Configuration NextPVR
NPVR_URL="http://10.0.0.63:8866/service"
USERNAME="admin"
PASSWORD="password"
OUTPUT_FILE="./hdhomerun.xml"

# Funzione per URL encoding (usa jq)
urlencode() {
  jq -rn --arg v "$1" '$v|@uri'
}

USERNAME_ENCODED=$(urlencode "$USERNAME")
PASSWORD_ENCODED=$(urlencode "$PASSWORD")

RESPONSE=$(curl -s "$NPVR_URL?method=session.login&username=$USERNAME_ENCODED&password=$PASSWORD_ENCODED")

echo "Response login: $RESPONSE"

SID=$(echo "$RESPONSE" | sed -n 's:.*<sid>\(.*\)</sid>.*:\1:p')

if [[ -z "$SID" ]]; then
    echo "Error: NextNPVR access failed."
    exit 1
fi

echo "Login OK, SID: $SID"

curl -s "$NPVR_URL?method=channel.listings&sid=$SID" -o "$OUTPUT_FILE"

if [[ -f "$OUTPUT_FILE" ]]; then
    echo "EPG saved in $OUTPUT_FILE"
else
    echo "Error: the EPG file was not created."
fi


However, the execution of <sh Update_epg.sh> fails to log in even if it works correctly from HTML.

Login response: <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="fail">
  <err code="1" msg="Login Failed" />
</rsp>
Error: failed access to nextpvr.

Several tests suggested by AI have given the result negative. Do you think I'm wrong? Thanks
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,082
Threads: 957
Joined: May 2006
#4
2025-05-28, 02:16 PM
OK I misunderstood what you wanted. It is not import it is export. You want to use this URL https://forums.nextpvr.com/showthread.ph...#pid555681

Your script as is will never work to login.

Martin
davide
Offline

Junior Member

Italia
Posts: 16
Threads: 1
Joined: Jan 2025
#5
2025-05-28, 04:41 PM (This post was last modified: 2025-05-28, 04:44 PM by davide.)
Thanks for the suggestion but after 25 days of readings where you write everything and the opposite of everything, considering my first experience in the macOS environment, I begin to be a little confused and frustrated compared to the ease with which I obtained the Epg XML guide with Windows.

Let's take stock: I had purchased Vers. For Mac NextPvr UI from the Apple Store, and inserting 10.0.0.63:8866 remains gray, oh well pass further, and fortunately from HTML with the same address it works except for the customer interface that remains empty http://10.0.63:8866/uiclient.html exactly like the Apple Store app.

The first thing I know in the indicated room is that to get what, at this point I think I need it, I have to do a donation. I still make a donation ($30  email davide67.....) based only on the excellent experience and ease of use in the Windows environment. But then http: // Localhost: 8866/Service? Method = Channel.xmltv here comes <RSP Stat = "fail">>
<Er Code = "8" msg = "Invalid Session"/>
</1 rSp go ahead by changing browser and same error as Estarna #51.
Suggest patch #52 of the nshared.dll file (older than that provided in the ZIP file) and the same problem.
http://localhost:8866/service?method=channel.m3u
http://localhost:8866/Service?Method=channel.xmltv
White screen, both on Firefox, Safari and Chrome.

Thinking about a Mac Ultra problem I try everything on Mac Mini but nothing to do. I don't know where to slam my head anymore. Is it possible that there is no concrete suggestion that really works for a simple export of the EPG guide in the macOS environment? Thanks again for the very fast support
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,082
Threads: 957
Joined: May 2006
#6
2025-05-28, 04:59 PM
Definitely don't apply old patches to new versions. Yes you need to be a donator to get the XMLTV

And while I am sorry I have no idea what you are trying to achieve I am not going to help with your scripting. The difference of your scripting ability on Windows and macOS really has nothing to do with NextPVR

Your problem with UI clients is going to be unrelated. Only sub supports that client but if the browse client isn't working that is another support request and logs are needed. I don't know if anyone has tested macOS with Apple Silicon. I understand it needs a codesigned version.

Martin
davide
Offline

Junior Member

Italia
Posts: 16
Threads: 1
Joined: Jan 2025
#7
2025-05-28, 05:24 PM
And in fact I donated.

What I would like to get is that through the execution of an ES: Update_epg.sh script, an XML file containing the EPG guides of the channels. Exactly what I got in the Windows environment with:

"C:\Program Files\NextPVR\HDHRGuide.exe" C:\Users\Public\NPVR-data\hdhomerun.xml

Now I seem to understand that in a macOS environment the problem is more complex.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,082
Threads: 957
Joined: May 2006
#8
2025-05-28, 06:42 PM
OK that helps a lot. This request has nothing to do with what I was expecting and since you didn't post in the Addons sub-forum for HDHRGuide it was hard to guess.


In any case none of my utilities are designed to work or get tested on macOS. Since macOS doesn't have a formal installer it is difficult to make a generic instruction but this might work, if not I will check the next time I boot macOS but I use a service not a user folder. I don't boot macOS often. Unzip the zip file into the NextPVR program folder.

Code:
export NEXTPVR_DATADIR_USERDATA=nextpvrdatafolder
cd nextpvrprogramfolder
dotnet HDHRGuide.dll "$@"

If you don't know the folder names in the logs they are show with

2025-02-26 02:59:01.764 [DEBUG][1] master file is ...
2025-02-26 02:59:01.766 [DEBUG][1] Database: ...\npvr.db3

Martin
davide
Offline

Junior Member

Italia
Posts: 16
Threads: 1
Joined: Jan 2025
#9
2025-05-28, 09:32 PM (This post was last modified: 2025-05-28, 09:41 PM by davide.)
export nextpvr_datadir_userdata=.npvr-Data
CD .npvr-Data
Dotnet HDHRGUIDE.DLL "$@"

He replies that he does not find dotnet-hdhrguide.dll

PS: Which ZIP file?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,082
Threads: 957
Joined: May 2006
#10
2025-05-28, 09:41 PM (This post was last modified: 2025-05-28, 09:49 PM by mvallevand.)
Your export is nothing like I suggested

You are supposed to cd not(CD) to the program folder where you would have unzipped the zip file.

There is no program called Dotnet it is dotnet.

You can do better than that before posting.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Location of configuration files in MacOS installation SPH_MK 2 1,876 2020-12-07, 04:34 PM
Last Post: sub
  Usb-tuner support for macOS dennis 15 7,185 2020-02-13, 04:14 AM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode