Skip to content

Commit 65c4a6a

Browse files
authored
Merge pull request #605 from accius/Staging
Staging
2 parents f48d235 + bd47c53 commit 65c4a6a

File tree

107 files changed

+5306
-1379
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+5306
-1379
lines changed

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Ensure shell scripts always use LF line endings and stay executable
2+
# (prevents "permission denied" and "/bin/bash\r: bad interpreter" errors
3+
# when cloning or pulling on Windows then deploying to Linux/Pi)
4+
*.sh text eol=lf

.github/workflows/build-rig-listener.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313

1414
jobs:
1515
build:
16+
if: github.repository == 'accius/openhamclock'
1617
strategy:
1718
matrix:
1819
include:
@@ -68,8 +69,8 @@ jobs:
6869

6970
# Attach all binaries to the GitHub release
7071
attach-to-release:
72+
if: github.repository == 'accius/openhamclock' && github.event_name == 'release'
7173
needs: build
72-
if: github.event_name == 'release'
7374
runs-on: ubuntu-latest
7475
permissions:
7576
contents: write

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
jobs:
1010
format:
11+
if: github.repository == 'accius/openhamclock'
1112
runs-on: ubuntu-latest
1213
steps:
1314
- uses: actions/checkout@v4
@@ -24,6 +25,7 @@ jobs:
2425
run: npm run format:check
2526

2627
test:
28+
if: github.repository == 'accius/openhamclock'
2729
runs-on: ubuntu-latest
2830
needs: format
2931

@@ -69,10 +71,9 @@ jobs:
6971
exit 1
7072
7173
docker:
74+
if: github.repository == 'accius/openhamclock' && github.event_name == 'push' && github.ref == 'refs/heads/main'
7275
runs-on: ubuntu-latest
7376
needs: test
74-
# Only run docker build on push to main, not PRs
75-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
7677

7778
steps:
7879
- uses: actions/checkout@v4

.github/workflows/close-issue.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,18 @@ on:
66

77
jobs:
88
close-issue:
9+
if: github.repository == 'accius/openhamclock'
910
runs-on: ubuntu-latest
1011
# Only trigger on '/close' comments on issues (not PRs)
11-
if: |
12-
github.event.comment.body == '/close' &&
13-
github.event.issue.pull_request == null
14-
permissions:
15-
issues: write
12+
# Note: Using both conditions in the same if block
1613
steps:
17-
- name: Close issue
14+
- name: Check comment body
15+
if: |
16+
github.event.comment.body == '/close' &&
17+
github.event.issue.pull_request == null
1818
uses: actions/github-script@v7
19+
permissions:
20+
issues: write
1921
with:
2022
script: |
2123
const { actor } = context;

.github/workflows/docker-image.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ env:
1212

1313
jobs:
1414
build-and-push:
15+
if: github.repository == 'accius/openhamclock'
1516
runs-on: ubuntu-latest
1617
permissions:
1718
contents: write

.github/workflows/rig-listener-build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ permissions:
2323

2424
jobs:
2525
build:
26+
if: github.repository == 'accius/openhamclock'
2627
strategy:
2728
matrix:
2829
include:
@@ -67,9 +68,9 @@ jobs:
6768
retention-days: 30
6869

6970
release:
71+
if: github.repository == 'accius/openhamclock' && startsWith(github.ref, 'refs/tags/rig-listener-v')
7072
needs: build
7173
runs-on: ubuntu-latest
72-
if: startsWith(github.ref, 'refs/tags/rig-listener-v')
7374
name: Create Release
7475

7576
steps:

.github/workflows/self-assign.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@ on:
66

77
jobs:
88
self-assign:
9+
if: github.repository == 'accius/openhamclock'
910
runs-on: ubuntu-latest
1011
# Only trigger on '/assign' comments on issues (not PRs)
11-
if: |
12-
github.event.comment.body == '/assign' &&
13-
github.event.issue.pull_request == null
14-
permissions:
15-
issues: write
1612
steps:
1713
- name: Assign commenter to issue
14+
if: |
15+
github.event.comment.body == '/assign' &&
16+
github.event.issue.pull_request == null
1817
uses: actions/github-script@v7
18+
permissions:
19+
issues: write
1920
with:
2021
script: |
2122
const { actor } = context;

AddOns/APRS-AutoPos/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# APRS Auto-Position for OpenHamClock
2+
3+
Automatically updates your station's geographic position and Maidenhead locator in OpenHamClock based on your APRS beacons from **aprs.fi**. Perfect for mobile or portable operations (e.g., in a car or while hiking).
4+
5+
## Features
6+
7+
- **Dynamic Updates**: Periodically fetches the latest coordinates for a specific SSID.
8+
- **Maidenhead Conversion**: Automatically calculates and updates your 6-digit Grid Square (Locator).
9+
- **Live UI Refresh**: Triggers an internal OpenHamClock refresh so the map and all distance calculations update instantly.
10+
- **Smart Filtering**: Only updates if the position has changed by more than ~50 meters to reduce noise.
11+
- **Drawer Integration**: Accessible via the **📍 icon** in the shared 🧩 AddOn menu.
12+
- **Persistence**: Remembers your preferred SSID and update interval.
13+
14+
## Requirements
15+
16+
1. **aprs.fi API Key**: Required to fetch data. (Shared with the APRS Newsfeed AddOn).
17+
2. **Tracked SSID**: The SSID you want to follow (e.g., `-9` for your car, `-7` for your handheld).
18+
19+
## Installation
20+
21+
1. Install a Userscript Manager (e.g., Tampermonkey or Greasemonkey).
22+
2. Install the script: [aprs_autopos.user.js](./aprs_autopos.user.js).
23+
3. Open OpenHamClock and click the 🧩 icon, then the 📍 icon.
24+
4. Open the settings (🔧) and enter your **aprs.fi API Key** and the **SSID** to track.
25+
26+
## How it works
27+
28+
The script polls the `aprs.fi` API at the configured interval. If a new position is found, it updates the `openhamclock_config` in your browser's local storage and broadcasts a change event. The app then re-centers your station marker and re-calculates all propagation paths.
29+
30+
---
31+
32+
_Developed by DO3EET_

0 commit comments

Comments
 (0)