Skip to content

Commit

Permalink
add url watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
mantas6 committed Jan 28, 2025
1 parent 6a79956 commit 212fa5e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mods/base/.local/share/scripts/serialprint
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,10 @@ device="${1:-/dev/ttyUSB0}"

stty -F "$device" 115200 || echo "Failed to set baud rate"

curl -so "$device" itp90015:8170/toPrint
url='itp90015:8170/toPrint'

while true; do
wait-url-changes "$url"

curl -so "$device" "$url"
done

0 comments on commit 212fa5e

Please sign in to comment.