ruodk and kobotoolbox

Hello
I would like to use ruODK to export data from a kobotoolbox form, api for researchers (not humanitarian associations)
what is the URL?
I run this code

Sys.setenv(ODKC_URL="url")
Sys.setenv(ODKC_UN="..")
Sys.setenv(ODKC_PW="..")
ruODK::ru_setup(
    url = Sys.getenv("ODKC_URL"), 
    un = Sys.getenv("ODKC_UN"), 
    pw = Sys.getenv("ODKC_PW"),
    tz = "Europe/Rome",
    verbose = TRUE
)
ruODK::project_list()

https://kf.kobotoolbox.org/” doesn’t work at all
while “kf.kobotoolbox.org” tells me

Blockquote
Error in curl::curl_fetch_memory(url, handle = handle): Protocol “” not supported or disabled in libcurl

Thank you

@florianm are you able to help?

Maybe the kobotoolbox server is ODK Aggregate, so not ODK Central???

Hi @bonushenricus,

KoboToolbox is running a different server IIRC.

They have their own forum at https://community.kobotoolbox.org/ and hopefully some API documentation.

There’s an R package called koboloader (see also ruODK vignette comparison) A Metapackage for Survey Data Crunching • koboloadeR

ODK Briefcase seems to work with Kobo too, so that tells us that the Kobo API supports the OpenRosa endpoints like Aggregate and Central, but likely not the other Central endpoints which ruODK relies on.

Hope that helps!

1 Like

Hi Florian
koboloader has a lot of dependencies, it takes a long time to install, and it has a lot of features that don’t interest me
version 0.1.2 might be for me, but it has a problem (see here https://github.com/mrdwab/koboloadeR/issues/13)
Finally I found the karpi package https://github.com/nyuglobalties/karpi

Good to hear. Since Kobo is not ODK Central, ruODK definitely won’t work.