voacap - Enabled maidenhead grid square service

This commit is contained in:
thetechprepper
2025-08-17 03:32:06 -07:00
parent 414fe78907
commit 7ab2c4c343
@@ -20,14 +20,11 @@ lookup_station() {
fi fi
;; ;;
grid) grid)
echo "Grid not support not yet implemented" curl -f -s "http://localhost:1981/api/geo/grid?gridSquare=${value}" | jq '{lat: .position.lat, lon: .position.lon}' > "$json_file"
exit 1 if [[ $? -ne 0 ]]; then
echo "Error converting grid to lat/lon: ${value}. Exiting."
#curl -f -s "http://localhost:1981/api/geo/grid=${value}" > "$json_file" exit 1
#if [[ $? -ne 0 ]]; then fi
# echo "Location not found for grid: ${value}. Exiting."
# exit 1
#fi
;; ;;
latlon) latlon)
# Write directly to JSON for consistency # Write directly to JSON for consistency
@@ -59,6 +56,7 @@ if [[ ! -e ${ET_SSN} ]]; then
echo -e "${YELLOW}Try running the following to fetch the sunspot numbers (requires Internet):${NC}" echo -e "${YELLOW}Try running the following to fetch the sunspot numbers (requires Internet):${NC}"
echo -e "${WHITE}cd ${HOME}/.local/share/emcomm-tools/voacap${NC}" echo -e "${WHITE}cd ${HOME}/.local/share/emcomm-tools/voacap${NC}"
echo -e "${WHITE}./fetch-ssn.sh${NC}" echo -e "${WHITE}./fetch-ssn.sh${NC}"
exit 1 exit 1
fi fi