OliveTin for Channels: An Interface for Misc Channels DVR Scripts & Tricks

Let's move this to a Tailscale thread if you want to keep working on it, and here's what we'd need focus on:

  • Whether or not MagicDNS would benefit you. I personally think Tailscale and MagicDNS are game changing -- which they are for me, but that's certainly not true for everyone.

  • Determine what parameters are being used to launch Tailscale, when installed from your package store. And in particular, why your resolv.conf wasn't modified -- which could be as simple as you weren't using MagicDNS at the time.

  • Publishing subnet routes and exit nodes can factor in to, based on your overall desired outcome.

Thanks. Tailscale MagicDNS is very useful for me now but it is not worth it for you or me to troubleshoot this issue any further with regards to using it in Olivetin. Tailscale has some excellent documentation about Synology that I have not dived into to investigate why my configuration does not work with Docker instances.

Thank you for this great tool. With the feature to find a Gracenote stationID, what do we put in the "station" input box? That station call letters? And after it is run, where do we find the output? I looked in the data folder, and I can't find it there. Thank you.

1 Like

Whatever you think will match what you're looking for, such as:

HBO
HBO Signature
USAP
KABC
WCBS

Output is found under the "Logs" button, then "stdout".

Ah, thanks. For the last part, I didn't realize each part of the breadcrumb would reveal different info. I was only clicking the "stderr" portion.

Not sure why I'm getting NUL (0x00) characters in the log files.
Maybe because I'm editing the log files?
192.168.1.4-8489_monitor_channels.log


I edit them to remove the checks where nothing changed and the next run fills the file with NUL characters.

Interesting. What editor are you using, and on what OS?

Using Notepad++ on Windows and accessing the log file on my Synology NAS through SMB.
I can also copy the log file in linux on my Synology to another shared SMB folder and see the same thing.

I only get the NUL characters when I modify the log file (remove some lines) and they get added on the next run.

I'll try using a text editor on my NAS and see if I see the same behavior. Doubt that it's Notepad++ causing the issue as I use it extensively to modify scripts and other files on my NAS.

The Synology Text Editor doesn't show all characters.
It omits the first blank line (initial LF character) and doesn't show NUL characters.
I edited this log file in the Synology Text Editor
Capture2

Here it is displayed in Notepad++

I'll look at this tomorrow in VS Code and see if I can duplicate. As I recall, I'm redirecting console output to create this file in the first place.

Yep. I see that in channels_dvr_monitor_channels.sh

nohup python3 -u /config/$foregroundScript.py -i $channelsHost -p $channelsPort -f $frequency $optionalArguments > /config/"$channelsHost"-"$channelsPort"_monitor_channels.log 2>&1 &

Possibly NUL characters are coming from std_error?
Or changing the output redirect from > to >> might fix it?

Thanks for posting that command, as I'm not at my computer atm. Seeing it though, I bet it's the -u flag (buffer flush), which is required for this particular redirection.

I'll see what can be done to cleanup the output.

Getting this error in the logs when trying to create a manual recording. Any ideas?

exit status 2

sh: -c: line 1: unexpected EOF while looking for matching `''

Have you pulled the most recent bnhf/olivetin:latest image, with UPDATE_SCRIPTS and UPDATE_YAMLS both set to true?

I just pulled the latest image and tried again and it errored out with the same error. And yes both are set to true.

Are you seeing the added requirement to specify a recording as a TV Show or Movie in the dropdown at the bottom?

Yes.

And which are option are you using?

TV Show.

Ok, thanks. I'll try to set a manual recording myself, and see what I get. Could you post a screenshot of the parameters you're using?

EDIT: Working here. No error, and the recording shows in the DVR calendar. This is what I used for values: