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

Did you try deleting cached images and files in Firefox?

I just redeployed the stack in Portainer and refreshed the Firefox browser tab. Working now.

1 Like

Is it possible to add the value of this variable CHANNELS_DVR_HOST to the Olive Tin alerts ?.

I have 2 DVR's running but don't know which one the Alert came from ...

(OliveTin Log Alert) The following CDVR log lines match your filters:

2024/04/22 07:50:40.587317 <ERR> Error during stream M3U-Cameras c

Example (OliveTin Log Alert (value of CHANNELS_DVR_HOST))

Absolutely. I'll make sure it's in stdout and in the e-mails.

1 Like

Just installed OliveTin for Channels and it rocks! I love the ability to send messages to the ChannelsDVR clients.

Is it possible to generate a message elsewhere, like a home automation system and push it to OliveTin for Channels? Our HA computer gets weather alert emails and generally sends us an iMessage/text and runs a shell script to send a message to a few LaMetric Time units around the house about a minute before the weather radio sounds off. It'd be cool to throw something up on Channels too.

Disregard, found the API info for messaging the clients!

Pushed a new version of OliveTin-for-Channels this morning under :latest (aka :2024.05.01) that hopefully addresses the following:

E-mail subject and first line of the body now include the name of the DVR the alert is coming from.

Copy-and-paste fail fixed, as the vlc-bridge-pbs script now creates CDVR Custom Channels for the container in question rather than Tubi.

The API approach is the way to go if you want to curl a URL for a single client. Another approach, if you want to message all clients, as defined in OliveTin, and you have ssh access to the Docker host:

docker exec -it olivetin /config/notifications.sh "messageTitle" "messageContent" "messageRepeats"

The first two arguments are self-explanatory, the third is the number of 5 second message blocks you want sent. E.G., "12" would send a message that would display for 60 seconds. This same message would be sent to all defined Channels clients.

2 Likes

I finally was able to sit down and spend the time to redo the whole installation from scratch. I have OliveTin running now, I can see it in the browser but it seems that I must have an incorrect mapping somewhere because it is not seeing my Channels DVR folders.

Environment: single Windows 11 computer that runs both Channels DVR and Portainer. Static IP address of this computer: 192.168.0.155.

Here is the result of the post check:

Checking your OliveTin installation...
(extended_check=false)

----------------------------------------

Checking that your selected Channels DVR server (192.168.0.155:8089) is reachable by URL:
HTTP Status: 200 indicates success...

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  1276  100  1276    0     0   415k      0 --:--:-- --:--:-- --:--:--  415k
HTTP Status: 200
Effective URL: http://192.168.0.155:8089/

----------------------------------------

Checking that your selected Channels DVR server's data files (/mnt/192.168.0.155-8089) are accessible:
Folders with the names Database, Images, Imports, Logs, Movies, Streaming and TV should be visible...

total 4
drwxr-xr-x 2 root root   40 May  1 23:21 .
drwxr-xr-x 1 root root 4096 May  1 23:21 ..

----------------------------------------

Checking that your selected Channels DVR server's log files (/mnt/192.168.0.155-8089_logs) are accessible:
Folders with the names data and latest should be visible...

total 4
drwxr-xr-x 2 root root   40 May  1 23:21 .
drwxr-xr-x 1 root root 4096 May  1 23:21 ..

----------------------------------------

Here's a list of your current OliveTin-related settings:

HOSTNAME=olivetin
CHANNELS_DVR=192.168.0.155:8089
CHANNELS_DVR_ALTERNATES=
CHANNELS_CLIENTS=
ALERT_SMTP_SERVER=smtp.gmail.com:587
ALERT_EMAIL_FROM=[Redacted]@yahoo.com
ALERT_EMAIL_PASS=[Redacted]
ALERT_EMAIL_TO=[Redacted]@vtext.com
UPDATE_YAMLS=true
UPDATE_SCRIPTS=true
PORTAINER_TOKEN=[Redacted]
PORTAINER_HOST=192.168.0.155

----------------------------------------

Here's the contents of /etc/resolv.conf from inside the container:

# Generated by Docker Engine.
# This file can be edited; Docker Engine will not make further changes once it
# has been modified.

nameserver 127.0.0.11
search localhost
options ndots:0

# Based on host file: '/etc/resolv.conf' (internal resolver)
# ExtServers: [192.168.65.7]
# Overrides: [search]
# Option ndots from: internal

----------------------------------------

Here's the contents of /etc/hosts from inside the container:

127.0.0.1	localhost
::1	localhost ip6-localhost ip6-loopback
fe00::0	ip6-localnet
ff00::0	ip6-mcastprefix
ff02::1	ip6-allnodes
ff02::2	ip6-allrouters
172.18.0.3	olivetin

Kind of a confounding problem, no? Maybe try using your Windows paths, as I think that's the way @Edwin_Perez configured his. Hopefully he'll post the paths he used for DVR_SHARE and LOGS_SHARE here.

I wonder if this could be some sort of permissions issue related to user names? Are you using the same user name for both Windows and your Debian distro?

Also, you'll need to use the Yahoo SMTP server here.

Indeed. :thinking:

Yes, I think the /mnt path is missing the link to my Windows folders.
I will see what @Edwin_Perez says. :slightly_smiling_face:

Yes, I am.

Yes, I did see the problem after I posted my message and it's already fixed. :slightly_smiling_face:

Thank you for your help.

Data logs and latest home folder

Drive and folder that contain recordings ...

1 Like

Thanks! I'm in the office today so I will try this in the evening when I'm back home.

1 Like

Thank you, @bnhf and @Edwin_Perez.

Checking your OliveTin installation...
(extended_check=false)

----------------------------------------

Checking that your selected Channels DVR server (192.168.0.155:8089) is reachable by URL:
HTTP Status: 200 indicates success...

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  1276  100  1276    0     0   415k      0 --:--:-- --:--:-- --:--:--  623k
HTTP Status: 200
Effective URL: http://192.168.0.155:8089/

----------------------------------------

Checking that your selected Channels DVR server's data files (/mnt/192.168.0.155-8089) are accessible:
Folders with the names Database, Images, Imports, Logs, Movies, Streaming and TV should be visible...

total 180
drwxrwxrwx 1 root root   4096 Apr 28 21:22 .
drwxr-xr-x 1 root root   4096 May  2 23:16 ..
drwxrwxrwx 1 root root   4096 May  2 22:37 Database
-rwxrwxrwx 1 root root  19301 Feb 24  2023 DirecTV.m3u8
drwxrwxrwx 1 root root   4096 May  2 21:05 Images
drwxrwxrwx 1 root root   4096 Mar 17  2022 Imports
drwxrwxrwx 1 root root   4096 May 13  2023 Logs
drwxrwxrwx 1 root root   4096 Apr 28 21:22 Movies
drwxrwxrwx 1 root root   4096 Oct 18  2022 PlayOn
drwxrwxrwx 1 root root   4096 May  2 21:05 Streaming
drwxrwxrwx 1 root root   4096 May  2 17:03 TV
-rwxrwxrwx 1 root root   4730 Feb 19  2023 localbtv.m3u8
-rwxrwxrwx 1 root root 148228 Jan 30  2023 samsung_tv_plus_us.m3u8

----------------------------------------

Checking that your selected Channels DVR server's log files (/mnt/192.168.0.155-8089_logs) are accessible:
Folders with the names data and latest should be visible...

total 8
drwxrwxrwx 1 root root  512 May  2 22:37 .
drwxr-xr-x 1 root root 4096 May  2 23:16 ..
drwxrwxrwx 1 root root  512 Mar 29 18:42 2024.03.27.1935
drwxrwxrwx 1 root root  512 Apr  6 19:39 2024.04.04.1838
drwxrwxrwx 1 root root  512 Apr 22 09:41 2024.04.21.2105
drwxrwxrwx 1 root root  512 Apr 24 17:13 2024.04.24.2033
drwxrwxrwx 1 root root  512 Apr 27 09:29 2024.04.25.2349
drwxrwxrwx 1 root root  512 Apr 29 23:03 2024.04.29.2037
-rwxrwxrwx 1 root root  837 May  2 22:37 Channels DVR Server.lnk
drwxrwxrwx 1 root root  512 May  2 22:06 data
drwxrwxrwx 1 root root  512 May  2 22:37 latest

----------------------------------------

Here's a list of your current OliveTin-related settings:

HOSTNAME=olivetin
CHANNELS_DVR=192.168.0.155:8089
CHANNELS_DVR_ALTERNATES=
CHANNELS_CLIENTS=
ALERT_SMTP_SERVER=smtp.mail.yahoo.com:587
ALERT_EMAIL_FROM=[Redacted]@yahoo.com
ALERT_EMAIL_PASS=[Redacted]
ALERT_EMAIL_TO=[Redacted]@vtext.com
UPDATE_YAMLS=true
UPDATE_SCRIPTS=true
PORTAINER_TOKEN=[Redacted]
PORTAINER_HOST=192.168.0.155

----------------------------------------

Here's the contents of /etc/resolv.conf from inside the container:

# Generated by Docker Engine.
# This file can be edited; Docker Engine will not make further changes once it
# has been modified.

nameserver 127.0.0.11
search localhost
options ndots:0

# Based on host file: '/etc/resolv.conf' (internal resolver)
# ExtServers: [192.168.65.7]
# Overrides: [search]
# Option ndots from: internal

----------------------------------------

Here's the contents of /etc/hosts from inside the container:

127.0.0.1	localhost
::1	localhost ip6-localhost ip6-loopback
fe00::0	ip6-localnet
ff00::0	ip6-mcastprefix
ff02::1	ip6-allnodes
ff02::2	ip6-allrouters
172.18.0.2	olivetin

However, when I tried Project One-Click to install Frndly TV, all I got was a window with "Waiting for result..." and nothing happened. I don't see anything in the log and there are no changes in Portainer/Docker and Channels DVR.

I'm closer to having something fully functional but there is still something off.

Here are all my environment variables, to compare with yours, @Edwin_Perez:

TAG=latest
DOMAIN=localhost
HOST_PORT=1337
CHANNELS_DVR_HOST=192.168.0.155
CHANNELS_DVR_PORT=8089
CHANNELS_DVR2_HOST=
CHANNELS_DVR2_PORT=
CHANNELS_CLIENTS=
ALERT_SMTP_SERVER=smtp.mail.yahoo.com:587
ALERT_EMAIL_FROM=[Redacted]@yahoo.com
ALERT_EMAIL_PASS=[Redacted]
ALERT_EMAIL_TO=[Redacted]@vtext.com
UPDATE_YAMLS=true
UPDATE_SCRIPTS=true
TZ=US/Eastern
HOST_DIR=D:/
DVR_SHARE=D:/DVR
LOGS_SHARE=C:\ProgramData\ChannelsDVR
HOST_SFS_PORT=8080
FOLDER=/web
PORTAINER_TOKEN=[Redacted]
PORTAINER_HOST=192.168.0.155

Could DOMAIN be the problem? I was not exactly sure what to put there.

@bnhf I'm running Channel Lineup Change Notifications, I think, but the icon is not showing in green.

I did get an email and a text to notify me of all my sources since it's the first run so that worked fine.

I'm just concerned that it may not be running anymore.

1 Like

I would suggest changing your HOST_DIR back to the previous value, and that should restore your Channel Lineup Change Notifications setup. It's the DVR_SHARE and LOGS_SHARE values that were tripping us up.

If you're not using Tailscale, then local or localdomain are the most likely values. What brand of router do you use? That might give us a clue.

Also, I'm suspicious of the way you got your Portainer token -- as there's the current way, and an older way. Check here to see if there's a token with the name you used showing as created:

I changed the DOMAIN to "local" and restarted the stack. Now I have the green icon! :slight_smile:

TP-Link Deco X4300 Pro

Even though I have the expected green icon now in the actions, Project One-Click still doesn't work.

You're thinking a problem with the token?

That is the moment when I realize that I should have paid attention to what the previous value was. I don't know! :laughing: :blush:
Most likely, it was the default value because I don't remember changing it.

Is it possible you're not using the most up-to-date version of the OliveTin-for-Channels docker compose? The compose shown in the first post of this thread is current.

I reverted HOST_DIR to its default value of "/data", and I also replaced the compose with the one from the first post.
Restarted the stack and tested again.

Post check is OK.

Change Lineup Change Notifications is working.

Project One-Click: still no luck.

You were saying about the current way to create the token? What way is it?

I think you're OK, since the token shows here:

Note that it's never been used though.

Since the script is clearly hanging before even using the token, let's try running the script from the command line to see if we get anything useful:

Restart OliveTin
Exec into the OliveTin container, and change to the /config directory
Run:

./frndlytv-for-channels.sh "192.168.0.155:8089" "latest" "8183" "#" "your_frndlytv_username" "your_frndlytv_password" "10000"

You can change 8183 if you want to use a different port. Also, the last argument is the CDVR starting channel number, so change that to suit.

Post whatever output you get here.