From 74e06069d056f55ed698951ce400332a379d744b Mon Sep 17 00:00:00 2001 From: wytch Date: Fri, 27 Feb 2026 21:00:35 -0600 Subject: [PATCH] Debugging stuff --- pub_event[rungame,endgame](sync).ash | 4 +++- savesync.conf | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pub_event[rungame,endgame](sync).ash b/pub_event[rungame,endgame](sync).ash index fae5e19..6ded79a 100644 --- a/pub_event[rungame,endgame](sync).ash +++ b/pub_event[rungame,endgame](sync).ash @@ -19,7 +19,9 @@ log() { PAYLOAD=$(cat "$EVENT_FILE") # 4. Check Connection quickly (1 second max) -nc -z -w 1 "$RCLONE_ENDPOINT" "$RCLONE_PORT" || { log "ERROR" "Offline"; exit 1; } +#nc -z -w 1 "$RCLONE_ENDPOINT" "$RCLONE_PORT" || { log "ERROR" "Offline"; exit 1; } +log "DEBUG" "Checking connection to: ${RCLONE_ENDPOINT}:${RCLONE_PORT}" +nc -zv -w 1 "$RCLONE_ENDPOINT" "$RCLONE_PORT" 2>&1 | log "DEBUG" "$(cat)" # 5. Publish Request if mosquitto_pub -h 127.0.0.1 -p 1883 -t "$TOPIC" -m "$PAYLOAD"; then diff --git a/savesync.conf b/savesync.conf index 3368103..81963b7 100644 --- a/savesync.conf +++ b/savesync.conf @@ -7,3 +7,5 @@ export REMOTE_BASE="saves:gamepi-tv" export TOPIC="/Recalbox/SaveSync/Event" export LOG_TOPIC="/Recalbox/SaveSync/Service" export RESPONSE_TOPIC="/Recalbox/SaveSync/Response" +export RCLONE_ENDPOINT="192.168.88.11" +export RCLONE_PORT="22"