Repeaterbook CSV creation Outside of North America

OpenGD77CPS
Post Reply
User avatar
DO3THM
Posts: 9
Joined: Wed Jun 19, 2024 1:06 pm
Location: JO64je

Repeaterbook CSV creation Outside of North America

Post by DO3THM » Wed Jun 26, 2024 1:19 pm

Hi, after trying different Codeplugs from other OMs I decided to create my own channels and zones. Its hard to do this manually, so I created a Python script doing the job based on the repeaterbook API. It is mainly for my (German = Outside of North America) needs and based on this locale. Feel free to download the code and customize it for your requirements.

I want to have zones for different locations where I often stay. The script expects these locations as YAML input, here is an example:

Code: Select all

Mode: Load               # Should be 'Default', 'Load' or 'Dump'
Country: Germany
Zones:
  Berlin:
    Latitude: 52.5069386
    Longitude: 13.2599274
    MaxDistance: 100
  Muenchen:
    Latitude: 48.1549958
    Longitude: 11.4594357
    MaxDistance: 150
  Frankfurt:
    Latitude: 50.1210147
    Longitude: 8.3247634
    MaxDistance: 100
You will get two zones (Analog / Digital) for each location and the channels in the zone are sorted with ascending distance.

DG3NAB
Posts: 5
Joined: Wed Jul 24, 2024 6:36 am

Re: Repeaterbook CSV creation Outside of North America

Post by DG3NAB » Thu Jul 25, 2024 7:37 pm

Thanks a lot. Very helpful!

N7DSB
Posts: 1
Joined: Wed Aug 21, 2024 2:48 am

Re: Repeaterbook CSV creation Outside of North America

Post by N7DSB » Thu Aug 22, 2024 12:44 am

This is awesome! I started a fork to to support North America and went down a rabbit hole with it.

Changes:
  • Supports North America and Rest of World (In Theory)
  • Added the ability to choose states. Just choosing United States has a max limit and may not include your locations.
  • Limits Channel import to 80 channels, which is the max per zone
  • Changed the PL/TSQL and Squelch to match the official OpenGD77 output from Repeaterbook.
  • Supports points and commas in output
  • Added delay in US calls to not hit the endpoint more than 2 times a minute.
  • Added some print statements so you can see the progress. Doing 2 or more states takes a few minutes to complete.
You can find it here: https://github.com/desertblade/OpenGD77-Repeaterbook

User avatar
DO3THM
Posts: 9
Joined: Wed Jun 19, 2024 1:06 pm
Location: JO64je

Re: Repeaterbook CSV creation Outside of North America

Post by DO3THM » Thu Oct 31, 2024 11:18 am

I fixed my version due to the routing problem described here. Please update to this release if you have problems to route calls.

Post Reply