npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-red-contrib-uddf-to-srt

v1.2.8

Published

Convert UDDF to SRT

Downloads

13

Readme

NOTE: this node has dependance on "xml2js", make sure this one installed on you npm environment before proceeding with uddf-to-srt installation.

To submit a bug: [email protected] Curent version of this node is tested with Apple Watch Ultra and iPhone diving case (Oceanic+), as well as with generic data extraction to uddf from Subsurface app.

The node called "uddf-to-srt" converts UDDF (Unified Dive Data Format), which is essentially an XML file containing various metadata about the diver, dive, computer, dive site, and dive profile, into SRT (SubRip Subtitle) format. This conversion involves parsing the entire UDDF data into JSON format, then selecting specific parameters such as dive time, depth, temperature (converted from Kelvin to Celsius), no-decompression time, and ascent rate. Note that for other set of parameters this node will try to adjust dynamically to all available and add them. These parameters are then formatted into SRT segments on output at msg.payload like:

1 00:00:00,000 --> 00:00:15,000 Dive Time: 00:00:00,000, Depth: 0.00m, Temp: 28.93°C No Deco Time: 100 minutes, Ascent Rate: 0.0 m/s 2 00:00:15,000 --> 00:00:30,000 Dive Time: 00:00:15,000, Depth: 0.10m, Temp: 28.93°C No Deco Time: 100 minutes, Ascent Rate: 0.0 m/s...

There are two nodes in the bundle. The second one, "uddf-to-srt-mini," performs the same task but with fewer parameters included in the SRT data. For example, it only includes dive time and depth (the minimum set of parameters):

1 00:00:00,000 --> 00:00:15,000 Dive Time: 00:00:00,000, Depth: 0.00m 2 00:00:15,000 --> 00:00:30,000 Dive Time: 00:00:15,000, Depth: 0.10m...

Setting in node ui: Time Shift (seconds) will allow to shift the time in seconds +/- to synchronize the srt content actual in dive in content of the video. The output (msg.payload) of these nodes is SRT data, which can be saved with the file extension *.srt. This SRT file can then be uploaded to platforms like YouTube or video editors to attach timed subtitles to your diving video. Setting in node ui: Time Shift (seconds) will allow to shift the time in seconds +/- to synchronize the srt content actual in dive in content of the video. Note that if subtitles timing will be below 00:00:00 (like 23:59:45) it will be not added to the actual timeline of srt in the video. Other output (msg.json) give you set of {counter: counter, startTime: startTime, endTime: endTime, vdetails: jsonDetails}