Repeaterbook CSV creation Outside of North America

OpenGD77CPS
User avatar
DA1TH
Posts: 13
Joined: Wed Jun 19, 2024 1:06 pm
Location: JO64je

Repeaterbook CSV creation Outside of North America

Post by DA1TH » 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: 2
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
DA1TH
Posts: 13
Joined: Wed Jun 19, 2024 1:06 pm
Location: JO64je

Re: Repeaterbook CSV creation Outside of North America

Post by DA1TH » 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.

User avatar
N0JYZ
Posts: 8
Joined: Fri Feb 09, 2024 3:36 pm
Location: EN34kw

Re: Repeaterbook CSV creation Outside of North America

Post by N0JYZ » Fri Feb 07, 2025 2:37 pm

N7DSB wrote: ↑
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
Thank you for updating this on 6 Feb 25 with regards to a Repeaterbook change in the API!

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

Re: Repeaterbook CSV creation Outside of North America

Post by N7DSB » Sat Feb 08, 2025 7:24 pm

You're welcome!

Reviewing RepeaterBooks changes and adding some more logic to make sure the csv files are importable into the CPS.

Notable change are API calls will require a key. Its not implemented yet, but the now require an email in the header of the call. The APIs for US and the ROTW are different and their may be different requirements I have not looked at.

Updated my fork with @DA1TH change for supporting expected number of zone columns. Thank you for creating this. It makes it easy to manage repeaters in OpenGD77.

User avatar
DA1TH
Posts: 13
Joined: Wed Jun 19, 2024 1:06 pm
Location: JO64je

Re: Repeaterbook CSV creation Outside of North America

Post by DA1TH » Mon Feb 10, 2025 6:40 pm

N7DSB wrote: ↑
Sat Feb 08, 2025 7:24 pm
Notable change are API calls will require a key. Its not implemented yet, but the now require an email in the header of the call.
Thanks for the hint, I upgraded my repository, the user agent contains my mail address now.