Map questions for selfhosted instance #64

Closed
opened 2025-10-21 17:08:19 +00:00 by W1CDN · 2 comments

Love this software!

I have a spothole instance set up at https://spothole.w1cdn.net. Just updated it from the main branch.

I can get spots into it via the API, but they do not show up on the map. They do have location information according to https://spothole.w1cdn.net/api/v1/spots. Example copied below.

I have other spotting services turned off, and do not have any login information included in config.yml.

So my questions are

[
  {
    "id": "64dd995ac5f3aebdd0c3e56242ea1835a9d03d7eff92df0ca92fef752fa1b789",
    "dx_call": "KB5YZB",
    "dx_name": null,
    "dx_country": "United States",
    "dx_flag": "🇺🇸",
    "dx_continent": "NA",
    "dx_dxcc_id": 291,
    "de_dxcc_id": 291,
    "dx_cq_zone": 4,
    "dx_itu_zone": 7,
    "dx_aprs_ssid": null,
    "dx_grid": "EM11UU43",
    "dx_latitude": 31.85,
    "dx_longitude": -96.3,
    "dx_location_source": "DXCC",
    "dx_location_good": false,
    "de_call": "W1CDN",
    "de_country": "United States",
    "de_flag": "🇺🇸",
    "de_continent": "NA",
    "de_grid": "FN42EJ11",
    "de_latitude": 42.38,
    "de_longitude": -71.65,
    "mode": "PKT",
    "mode_type": "DATA",
    "mode_source": "SPOT",
    "freq": 14105000,
    "band": "20m",
    "comment": " 1:Fm KB5YZB-7 To ID Via KB9PVH,KB9KC-7 <UI pid=F0 Len=224 >[16:59:57]\rKB5YZB-7 Node, -1 BBS, -11 Chat, DM79pq\r  Buckley AFB Airport @ 9:58 AM MDT\r  Temp: 59.0 F (15.0 C), RH: 16%\r  Wind: Calm\r  Dew Point: 12.9 F (-10.6 C)\r  Sky: clear, Visibility: 10 mile(s)\r  Pressure (altimeter): 30.23 in.\r",
    "qrt": false,
    "sig": null,
    "sig_refs": null,
    "sig_refs_names": null,
    "sig_refs_urls": null,
    "activation_score": null,
    "icon": "desktop",
    "band_color": "#f2c40c",
    "band_contrast_color": "black",
    "time": 1761065997,
    "time_iso": "2025-10-21T16:59:57+00:00",
    "received_time": 1761065997.753539,
    "received_time_iso": "2025-10-21T16:59:57.753539+00:00",
    "source": "API",
    "source_id": null
  },
  {
    "id": "50574c7d4ff700e3db291fd151342de85e0336ea10f987c9f691fe7ecfb32ced",
    "dx_call": "W1CDN",
    "dx_name": "MATTHEW E BURTON-KELLY",
    "dx_country": "United States",
    "dx_flag": "🇺🇸",
    "dx_continent": "NA",
    "dx_dxcc_id": 291,
    "de_dxcc_id": 291,
    "dx_cq_zone": 5,
    "dx_itu_zone": 8,
    "dx_aprs_ssid": null,
    "dx_grid": "FN42EJ11",
    "dx_latitude": 42.38,
    "dx_longitude": -71.65,
    "dx_location_source": "DXCC",
    "dx_location_good": false,
    "de_call": "W1CDN",
    "de_country": "United States",
    "de_flag": "🇺🇸",
    "de_continent": "NA",
    "de_grid": "FN42EJ11",
    "de_latitude": 42.38,
    "de_longitude": -71.65,
    "mode": "PKT",
    "mode_type": "DATA",
    "mode_source": "SPOT",
    "freq": 14105000,
    "band": "20m",
    "comment": " 1:Fm W1CDN-7 To BEACON <UI pid=F0 Len=50 >[16:59:39]\r!4756.48N/09701.61WB -1/B -7/N EN17lw Net105&FARPN\r",
    "qrt": false,
    "sig": null,
    "sig_refs": null,
    "sig_refs_names": null,
    "sig_refs_urls": null,
    "activation_score": null,
    "icon": "desktop",
    "band_color": "#f2c40c",
    "band_contrast_color": "black",
    "time": 1761065979,
    "time_iso": "2025-10-21T16:59:39+00:00",
    "received_time": 1761065980.123227,
    "received_time_iso": "2025-10-21T16:59:40.123227+00:00",
    "source": "API",
    "source_id": null
  },
  {
    "id": "c28e53616d304bd5796a7be9795a9d84442c43f7bcf1f457255b5293cf337e38",
    "dx_call": "N4QMI",
    "dx_name": null,
    "dx_country": "United States",
    "dx_flag": "🇺🇸",
    "dx_continent": "NA",
    "dx_dxcc_id": 291,
    "de_dxcc_id": 291,
    "dx_cq_zone": 5,
    "dx_itu_zone": 8,
    "dx_aprs_ssid": null,
    "dx_grid": "EM83VC58",
    "dx_latitude": 33.12,
    "dx_longitude": -82.2,
    "dx_location_source": "DXCC",
    "dx_location_good": false,
    "de_call": "W1CDN",
    "de_country": "United States",
    "de_flag": "🇺🇸",
    "de_continent": "NA",
    "de_grid": "FN42EJ11",
    "de_latitude": 42.38,
    "de_longitude": -71.65,
    "mode": "PKT",
    "mode_type": "DATA",
    "mode_source": "SPOT",
    "freq": 14105000,
    "band": "20m",
    "comment": " 1:Fm N4QMI-7 To BEACON <UI pid=F0 Len=55 >[16:59:35]\r Memphis, TN\rN4QMI-1/BBS, N4QMI-7/Node, N4QMI-11/Chat\r",
    "qrt": false,
    "sig": null,
    "sig_refs": null,
    "sig_refs_names": null,
    "sig_refs_urls": null,
    "activation_score": null,
    "icon": "desktop",
    "band_color": "#f2c40c",
    "band_contrast_color": "black",
    "time": 1761065975,
    "time_iso": "2025-10-21T16:59:35+00:00",
    "received_time": 1761065975.953155,
    "received_time_iso": "2025-10-21T16:59:35.953155+00:00",
    "source": "API",
    "source_id": null
  },
  {
    "id": "023c360bbe32fbcfa844f7d82681ac7ccf9fea7ce6023b47829e2be9698397cb",
    "dx_call": "KB9PVH",
    "dx_name": null,
    "dx_country": "United States",
    "dx_flag": "🇺🇸",
    "dx_continent": "NA",
    "dx_dxcc_id": 291,
    "de_dxcc_id": 291,
    "dx_cq_zone": 4,
    "dx_itu_zone": 8,
    "dx_aprs_ssid": null,
    "dx_grid": "EN61AN32",
    "dx_latitude": 41.55,
    "dx_longitude": -87.97,
    "dx_location_source": "DXCC",
    "dx_location_good": false,
    "de_call": "W1CDN",
    "de_country": "United States",
    "de_flag": "🇺🇸",
    "de_continent": "NA",
    "de_grid": "FN42EJ11",
    "de_latitude": 42.38,
    "de_longitude": -71.65,
    "mode": "PKT",
    "mode_type": "DATA",
    "mode_source": "SPOT",
    "freq": 14105000,
    "band": "20m",
    "comment": " 1:Fm KB9PVH-3 To APWW11 <UI pid=F0 Len=63 >[16:58:54]\r/211150z4320.55N/08849.40W_307/000g007t047r000p001P015h79b10057\r",
    "qrt": false,
    "sig": null,
    "sig_refs": null,
    "sig_refs_names": null,
    "sig_refs_urls": null,
    "activation_score": null,
    "icon": "desktop",
    "band_color": "#f2c40c",
    "band_contrast_color": "black",
    "time": 1761065934,
    "time_iso": "2025-10-21T16:58:54+00:00",
    "received_time": 1761065935.204833,
    "received_time_iso": "2025-10-21T16:58:55.204833+00:00",
    "source": "API",
    "source_id": null
  }
]
Love this software! I have a spothole instance set up at https://spothole.w1cdn.net. Just updated it from the main branch. I can get spots into it via the API, but they do not show up on the map. They *do* have location information according to https://spothole.w1cdn.net/api/v1/spots. Example copied below. I have other spotting services turned off, and do not have any login information included in `config.yml`. So my questions are - am I doing something wrong to get spots on the map? - where are the location data coming from anyway? - OK, I see https://git.ianrenton.com/ian/spothole/src/branch/main/core/lookup_helper.py `dx_location_source` is `DXCC`. ``` [ { "id": "64dd995ac5f3aebdd0c3e56242ea1835a9d03d7eff92df0ca92fef752fa1b789", "dx_call": "KB5YZB", "dx_name": null, "dx_country": "United States", "dx_flag": "🇺🇸", "dx_continent": "NA", "dx_dxcc_id": 291, "de_dxcc_id": 291, "dx_cq_zone": 4, "dx_itu_zone": 7, "dx_aprs_ssid": null, "dx_grid": "EM11UU43", "dx_latitude": 31.85, "dx_longitude": -96.3, "dx_location_source": "DXCC", "dx_location_good": false, "de_call": "W1CDN", "de_country": "United States", "de_flag": "🇺🇸", "de_continent": "NA", "de_grid": "FN42EJ11", "de_latitude": 42.38, "de_longitude": -71.65, "mode": "PKT", "mode_type": "DATA", "mode_source": "SPOT", "freq": 14105000, "band": "20m", "comment": " 1:Fm KB5YZB-7 To ID Via KB9PVH,KB9KC-7 <UI pid=F0 Len=224 >[16:59:57]\rKB5YZB-7 Node, -1 BBS, -11 Chat, DM79pq\r Buckley AFB Airport @ 9:58 AM MDT\r Temp: 59.0 F (15.0 C), RH: 16%\r Wind: Calm\r Dew Point: 12.9 F (-10.6 C)\r Sky: clear, Visibility: 10 mile(s)\r Pressure (altimeter): 30.23 in.\r", "qrt": false, "sig": null, "sig_refs": null, "sig_refs_names": null, "sig_refs_urls": null, "activation_score": null, "icon": "desktop", "band_color": "#f2c40c", "band_contrast_color": "black", "time": 1761065997, "time_iso": "2025-10-21T16:59:57+00:00", "received_time": 1761065997.753539, "received_time_iso": "2025-10-21T16:59:57.753539+00:00", "source": "API", "source_id": null }, { "id": "50574c7d4ff700e3db291fd151342de85e0336ea10f987c9f691fe7ecfb32ced", "dx_call": "W1CDN", "dx_name": "MATTHEW E BURTON-KELLY", "dx_country": "United States", "dx_flag": "🇺🇸", "dx_continent": "NA", "dx_dxcc_id": 291, "de_dxcc_id": 291, "dx_cq_zone": 5, "dx_itu_zone": 8, "dx_aprs_ssid": null, "dx_grid": "FN42EJ11", "dx_latitude": 42.38, "dx_longitude": -71.65, "dx_location_source": "DXCC", "dx_location_good": false, "de_call": "W1CDN", "de_country": "United States", "de_flag": "🇺🇸", "de_continent": "NA", "de_grid": "FN42EJ11", "de_latitude": 42.38, "de_longitude": -71.65, "mode": "PKT", "mode_type": "DATA", "mode_source": "SPOT", "freq": 14105000, "band": "20m", "comment": " 1:Fm W1CDN-7 To BEACON <UI pid=F0 Len=50 >[16:59:39]\r!4756.48N/09701.61WB -1/B -7/N EN17lw Net105&FARPN\r", "qrt": false, "sig": null, "sig_refs": null, "sig_refs_names": null, "sig_refs_urls": null, "activation_score": null, "icon": "desktop", "band_color": "#f2c40c", "band_contrast_color": "black", "time": 1761065979, "time_iso": "2025-10-21T16:59:39+00:00", "received_time": 1761065980.123227, "received_time_iso": "2025-10-21T16:59:40.123227+00:00", "source": "API", "source_id": null }, { "id": "c28e53616d304bd5796a7be9795a9d84442c43f7bcf1f457255b5293cf337e38", "dx_call": "N4QMI", "dx_name": null, "dx_country": "United States", "dx_flag": "🇺🇸", "dx_continent": "NA", "dx_dxcc_id": 291, "de_dxcc_id": 291, "dx_cq_zone": 5, "dx_itu_zone": 8, "dx_aprs_ssid": null, "dx_grid": "EM83VC58", "dx_latitude": 33.12, "dx_longitude": -82.2, "dx_location_source": "DXCC", "dx_location_good": false, "de_call": "W1CDN", "de_country": "United States", "de_flag": "🇺🇸", "de_continent": "NA", "de_grid": "FN42EJ11", "de_latitude": 42.38, "de_longitude": -71.65, "mode": "PKT", "mode_type": "DATA", "mode_source": "SPOT", "freq": 14105000, "band": "20m", "comment": " 1:Fm N4QMI-7 To BEACON <UI pid=F0 Len=55 >[16:59:35]\r Memphis, TN\rN4QMI-1/BBS, N4QMI-7/Node, N4QMI-11/Chat\r", "qrt": false, "sig": null, "sig_refs": null, "sig_refs_names": null, "sig_refs_urls": null, "activation_score": null, "icon": "desktop", "band_color": "#f2c40c", "band_contrast_color": "black", "time": 1761065975, "time_iso": "2025-10-21T16:59:35+00:00", "received_time": 1761065975.953155, "received_time_iso": "2025-10-21T16:59:35.953155+00:00", "source": "API", "source_id": null }, { "id": "023c360bbe32fbcfa844f7d82681ac7ccf9fea7ce6023b47829e2be9698397cb", "dx_call": "KB9PVH", "dx_name": null, "dx_country": "United States", "dx_flag": "🇺🇸", "dx_continent": "NA", "dx_dxcc_id": 291, "de_dxcc_id": 291, "dx_cq_zone": 4, "dx_itu_zone": 8, "dx_aprs_ssid": null, "dx_grid": "EN61AN32", "dx_latitude": 41.55, "dx_longitude": -87.97, "dx_location_source": "DXCC", "dx_location_good": false, "de_call": "W1CDN", "de_country": "United States", "de_flag": "🇺🇸", "de_continent": "NA", "de_grid": "FN42EJ11", "de_latitude": 42.38, "de_longitude": -71.65, "mode": "PKT", "mode_type": "DATA", "mode_source": "SPOT", "freq": 14105000, "band": "20m", "comment": " 1:Fm KB9PVH-3 To APWW11 <UI pid=F0 Len=63 >[16:58:54]\r/211150z4320.55N/08849.40W_307/000g007t047r000p001P015h79b10057\r", "qrt": false, "sig": null, "sig_refs": null, "sig_refs_names": null, "sig_refs_urls": null, "activation_score": null, "icon": "desktop", "band_color": "#f2c40c", "band_contrast_color": "black", "time": 1761065934, "time_iso": "2025-10-21T16:58:54+00:00", "received_time": 1761065935.204833, "received_time_iso": "2025-10-21T16:58:55.204833+00:00", "source": "API", "source_id": null } ] ```
Owner

Thanks!

The map currently requires that the location source be "good", defined as either having been provided directly from the spot, or from QRZ/Clublog if the callsign isn't obviously "not home". In the example you included the location source is shown as "DXCC", i.e. it's just based on the DX having a US callsign which might be the centre of the country or the capital. To avoid having dozens of spots on e.g. Washington DC, these aren't shown.

If you add spots via the API with dx_latitude and dx_longitude set, this problem should be resolved. If not, that's a bug so please let me know!

Alternatively, if you have QRZ/Clublog credentials (and a subscription, in the case of QRZ) adding them will let it find a better location for your callsign from those services, if you have set one.

I could make the requirement for "good" location a toggleable option on the map page if that would help.

Ian

Thanks! The map currently requires that the location source be "good", defined as either having been provided directly from the spot, or from QRZ/Clublog if the callsign isn't obviously "not home". In the example you included the location source is shown as "DXCC", i.e. it's just based on the DX having a US callsign which might be the centre of the country or the capital. To avoid having dozens of spots on e.g. Washington DC, these aren't shown. If you add spots via the API with dx_latitude and dx_longitude set, this problem should be resolved. If not, that's a bug so please let me know! Alternatively, if you have QRZ/Clublog credentials (and a subscription, in the case of QRZ) adding them will let it find a better location for your callsign from those services, if you have set one. I could make the requirement for "good" location a toggleable option on the map page if that would help. Ian
Author

Got it, thanks!

Got it, thanks!
W1CDN closed this issue 2025-10-22 01:24:17 +00:00
ian added this to the 1.0 milestone 2025-11-09 07:28:41 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ian/spothole#64
No description provided.