ok - I built a vagrant vm and got my script to run. I think you want to copy in a replacement for the file ~/go/src/github.com/lheijst/rtldavis/protocol/protocol.go before running the 'go1.15 install -v .' command in the sequence you quoted.
Just a thought - but Luc using go to download sources and his use of git submodules is super complex and (to me) confusing. It would be great if you could figure out how to put up a simple more traditional repo that has all the sources that uses a more common build process. This rtldavis/librtlsdr stuff is sooooo complicated. Anyway - try dropping in your new file in the middle after the git submodule update and before the go1.15 install steps and see if that does the trick. On Saturday, July 5, 2025 at 7:40:59 PM UTC-7 Graham Eddy wrote: > hello vince, > pinning to the older version of go will almost certainly help, and i will > give that a try > > my extra complication is that between download and compile, i have to edit > prototocol/protocol.go to insert the AU frequencies table. > any idea where in the command sequence > > /home/pi/go/bin/go1.15 get -v github.com/lheijst/rtldavis > cd go/src/github.com/lheijst/rtldavis/ > git submodule init > git submodule update > /home/pi/go/bin/go1.15 install -v . > > that i would do that? > > when i bumbled forward using latest go version and a git clone of > rtldavis, i managed to rebuild the rtldavis binary, same size but byte > differences from the unedited version, but it did not use my new AU switch > so presumably the original protocol.go won out (my version not compiled). > cheers > *⊣GE⊢* > > On 6 Jul 2025, at 1:56 am, vince <[email protected]> wrote: > > Graham - I have a scripted install of weewx and rtldavis at > https://github.com/vinceskahan/weewx-rtldavis if you wanted to poke > around the script there. I found it 'very' confusing to say the least. I > think (hope) the script still works end to end, but I haven't run it in a > long time, but the rtlsdr and rtl-davis pieces should hopefully still work. > > On Saturday, July 5, 2025 at 12:44:59 AM UTC-7 Graham Eddy wrote: > >> new question: how do i modify and recompile a go package? >> >> i did a ‘go install rtlsdavis@latest’ to get the latest module. >> i am probably supposed to do something else to fetch in an editable >> format, but i don’t know what it is. >> i updated the module source directly [no doubt the wrong thing to do] but >> no idea how to re-make the rtldavis binary from that >> *⊣GE⊢* >> >> On 5 Jul 2025, at 12:58 pm, Graham Eddy <[email protected]> wrote: >> >> to answer my own question, i think they can be found at >> https://github.com/RandomEskimo/DavisSi1000/blob/origin/Firmware/radio/freq_hopping.c >> . >> as written they are unsorted, so hopefully they are in skip sequence. >> next is updating rtldavis and trying it. >> cheers >> *⊣GE⊢* >> >> On 4 Jul 2025, at 7:24 pm, Graham Eddy <[email protected]> wrote: >> >> i see rtldavis has the skip frequencies for EU, US and NZ. does anyone >> have AU? >> cheers >> >> -- >> You received this message because you are subscribed to the Google Groups >> "weewx-user" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion visit >> https://groups.google.com/d/msgid/weewx-user/561b0adb-912f-4b5a-a775-013534872862n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/weewx-user/561b0adb-912f-4b5a-a775-013534872862n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> >> >> > -- > You received this message because you are subscribed to the Google Groups > "weewx-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > > To view this discussion visit > https://groups.google.com/d/msgid/weewx-user/3e14ad31-653b-4b3e-8861-26c05a9e4eden%40googlegroups.com > > <https://groups.google.com/d/msgid/weewx-user/3e14ad31-653b-4b3e-8861-26c05a9e4eden%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/weewx-user/9a9c374b-624f-4cd0-927e-0a10b98c2ec2n%40googlegroups.com.
