Skip to main content

Webhook notification support

if we are moving large amount of files or if the transfer speed is really slow our option is to set pc to shutdown/sleep or hibernate. (although i have an option called pushover . ps1 - i dont remember if i attempted to setup this script at somepoint or its default.)

can you please add an option to add pushover and or ntfy api keys so we get notified on our phones when transfer is complete?

pushover https://support.pushover.net/i44-example-code-and-pushover-libraries

ntfy https://docs.ntfy.sh/

Status: Completed5 comments

Log in to comment and vote

Comments5

  • buzzword

    •

    Dec 10, 2025

    Here is a powershell script to notify via Pushover, sorry for posting as a jpeg, I could not get the formatting to work inserting as text.

  • William Rolison (Will)

    •

    Dec 25, 2024

    It's a small little bug, probably not even this, but in TeraCopy itself….

    The time that is reported in the ntfy notification is the time it took to verify the copy, if that option is enabled. Instead of the time of both copy/move and verify time together, as in the total time.

    For example, I copied a 1 large file that took over 7 hours to copy and 3 hours, 41 minutes and 19 seconds to verify. Well in the ntfy alert, it shows the time as 03:41:19, just the verified time.

    It should report the entire time it really took.

    Verified by looking at the log for the copy that reports:

    1 item - 07:04:19 @ 82 MB/s

    Verifying: completed

    1 item - 03:41:19 @ 158 MB/s

  • Code Sector

    Team•

    Jan 11, 2024

    In recent versions of TeraCopy, you can find 'Notify via Ntfy.ps1' script at this location:

    C:\Users\%USERNAME%\AppData\Roaming\TeraCopy

    If not, please use the code below and replace YOUR_TOPIC with your topic ID.

    param ($source, $target, [int64] $size, $time, [int64] $failed, [int64] $skipped)
    
    write-host "Transfer completed:"
    write-host "  Source: $source"
    write-host "  Target: $target"
    write-host "  Failed: $failed, skipped: $skipped"
    
    $fsize = "{0:N0}" -f $size
    write-host "  Size: $fsize"
    write-host "  Time: $time"
    write-host ""
    
    write-host "Sending notification..."
    
    $topic = 'YOUR_TOPIC'
    
    if ($topic -eq 'YOUR_TOPIC') {
        write-host "Please subscribe to a topic in the Ntfy mobile app or at https://ntfy.sh/app and modify this script."
    
        [void][System.Console]::ReadKey($true)
        exit
    }
    
    $url = "https://ntfy.sh/$topic"
    
    $headers = @{
        "Title" = "Transfer completed"
        "Priority" = "default"
        "Tags" = "heavy_check_mark"
    }
    
    $body = @"
    Source: $source
    Target: $target
    $size bytes, $time
    Failed: $failed, skipped: $skipped
    "@
    
    $response = Invoke-WebRequest -Method Post -Uri $url -Headers $headers -Body $body
    
    write-host $response
    
    Start-Sleep -Seconds 5
    • AnAnonymousUser123456

      •

      Jan 11, 2024

      "In recent versions of TeraCopy, you can find 'Notify via Ntfy.s1' script at this

      location."

      did you mean to say "Notify via Ntfy.ps1 ? because .s1 is wrong extension.

      as you suggested i only changed YOUR_TOPIC.

      it works but i get this "✔️ Transfer completed

      Source: Target: 0 bytes, Failed: 0, skipped: 0"

      everything is 0. its wrong.

      • Code Sector

        Team•

        Jan 13, 2024

        TeraCopy passes these parameters to PowerShell files only since version 3.16.