Known Bugs
If possible use the default port during setup of ws4channels. When using an alternate port the code is not correctly identifing this change in the m3u. You can setup with an alternate port but you must then edit the m3u. In Channels DVR the easiest way to do this is to select text when building the source and use the following as an example for port 9532:
#EXTM3U
#EXTINF:-1 channel-id="WS4000" tvg-id="275" tvg-chno="275" tvc-guide-placeholders="3600" tvc-guide-title="Local Weather" tvc-guide-description="Enjoy your local weather with a touch of nostalgia." tvc-guide-art="http://ip.of.machine.running.ws4channels:9532/logo/ws4000.png" tvg-logo="http://ip.of.machine.running.ws4channels:9532/logo/ws4000.png",WeatherStar 4000
http://ip.of.machine.running.ws4channels:9532/stream/stream.m3u8
Log Bug: The container logs do not correctly report the actual settings of cpu count and alloted memory. The container does respect the settings made in the enviorment variables though.
ws4channels
A Dockerized Node.js application to stream WeatherStar 4000 data into Channels DVR using Puppeteer and FFmpeg.
Prerequisites
- 850MB availabe RAM
- Docker installed
- WS4KP running (default port 8080) https://github.com/netbymatt/ws4kp
Usage
Build and run the container:
Step 1: Pull the Docker Image
First, pull the latest version of the ws4channels image from GitHub Container Registry by running:
docker pull ghcr.io/rice9797/ws4channels:latest
Step 2: Run the Container
Next, run the container using the following command. This will start the container in detached mode and set the required environment variables.
docker run -d \
--name ws4channels \
--restart unless-stopped \
--memory="1096m" \
--cpus="1.0" \
-p 9798:9798 \
-e ZIP_CODE=your_zip_code \
-e WS4KP_HOST=ws4kp_host \
-e WS4KP_PORT=ws4kp_port \
ghcr.io/rice9797/ws4channels:latest
Example:
--memory="1096m" --cpus="1.0" -p 9798:9798 -e ZIP_CODE=63101 -e WS4KP_PORT=8080 -e WS4KP_HOST=192.168.1.152
-1096m=the amount of maximum ram the container can use in mb
-1.0= maximum amount of cpu cores the container can use. Default is 1 core
-63101= enter your zip code
-WS4KP_PORT= this is the port you set up WeatherStar4000 container with if you didn’t choose another port that container defaults to 8080.
-WS4KP_HOST= the ip of the machine that WeatherStar4000 container runs on.
Environment Variables
• ZIP_CODE: Your ZIP code (default: 90210)
• WS4KP_HOST: Host running WS4KP (default: localhost)
• WS4KP_PORT: Port for WS4KP (default: 8080)
• --cpus: CPU limit (default: 1.0)
• --memory: RAM limit in MB (default: 1096)
• FRAME_RATE: Stream frame rate (default: 10)
Accessing the Stream
M3U Playlist:
http://<ip.of.pc.running.ws4channels>:9798/playlist.m3u
Example: http://192.168.1.131:9798/playlist.m3u In Channels DVR, use MPEG-TS format with this URL.
Guide Data XMLTV Guide:
http://<ip.of.pc.running.ws4channels>:9798/guide.xml
Example: http://192.168.1.131:9798/guide.xml
Latest additions
-Includes seven looping jazz tracks as background music.
-Provides an XMLTV guide with hourly “Local Weather” entries.
-Added guide logo
-Optimized cropping for a clean video feed by removing white bars.
-Changed default cpu and memory limits to 1 cpu core and 1gb ram. Adjust if your system requires.
About:
A nostalgic weather streaming solution for Channels DVR, built with Node.js, Puppeteer, and FFmpeg.