{"id":31565657,"url":"https://github.com/correlaid/silbernetz-public","last_synced_at":"2025-10-05T07:14:31.351Z","repository":{"id":298878911,"uuid":"975612544","full_name":"CorrelAid/silbernetz-public","owner":"CorrelAid","description":"Silbernetz dashboard code","archived":false,"fork":false,"pushed_at":"2025-09-21T14:12:25.000Z","size":59869,"stargazers_count":1,"open_issues_count":8,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-21T16:15:02.502Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CorrelAid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-30T15:47:52.000Z","updated_at":"2025-08-19T16:16:32.000Z","dependencies_parsed_at":"2025-09-21T16:19:34.383Z","dependency_job_id":null,"html_url":"https://github.com/CorrelAid/silbernetz-public","commit_stats":null,"previous_names":["correlaid/silbernetz-public"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CorrelAid/silbernetz-public","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CorrelAid%2Fsilbernetz-public","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CorrelAid%2Fsilbernetz-public/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CorrelAid%2Fsilbernetz-public/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CorrelAid%2Fsilbernetz-public/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CorrelAid","download_url":"https://codeload.github.com/CorrelAid/silbernetz-public/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CorrelAid%2Fsilbernetz-public/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278421514,"owners_count":25984029,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-05T07:14:25.743Z","updated_at":"2025-10-05T07:14:31.343Z","avatar_url":"https://github.com/CorrelAid.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"Project name\n================\n\n## Basic Setup\n\nThis repository contains two main pieces of code:\n\n- the `/silbRnetz` package\n- the shiny app interface in `/shinyapp` and the setup follows this\n  order :\n\n0.  Install R and Positron or RStudio\n1.  Download/clone the repository\n2.  Install Font Open Sans\n\n\n### Data\nAll the data is obtained from the API using the authentication provided\nby the `api_spec.R`. It then gets processed to a level that preserves\nthe anonymitiy of all callers to an appropriate level and gets stored\nlocally under `/data/raw`.\n\n#### Fake data\nTo get started without accessing the data via the API, you can use the fake data provided with the repository. \n\n1. rename `data/raw/current_data_fake.csv` to `data/raw/current_data.csv`.\n2. start the app:\n\n```\nshiny::runApp(\"shinyapp/app.R\")\n```\n\nYou won't be able to use the \"Zahlen aktualisieren\" button.\n\n#### Real data\n\n1. obtain the `api_spec.R` file and place this file under `/R`. The\n    valid keys can be obtained from Inopla and the final file should\n    look like this:\n\n\u003c!-- --\u003e\n\n    url_base \u003c- \"url\"\n    api_urls \u003c- list()\n    api_urls[['Dest']] \u003c-  paste(url_base, \"hash1/Statistics/EVN/Destinations\", sep = '')\n    api_urls[['Dest_Count']] \u003c- paste(url_base, \"hash2/Statistics/EVN/Destinations/COUNT\", sep = '')\n    api_urls[['Numbers']] \u003c- paste(url_base, \"hash3/Statistics/EVN/Numbers\", sep = '')\n    api_urls[['Numbers_Count']] \u003c- paste(url_base, \"hash4/Statistics/EVN/Numbers/COUNT\", sep = '')\n    api_urls[['Callerlists']] \u003c- paste(url_base, \"hash5/Lists/Callerlists/1870/Items\", sep = '')\n\n2.  Setting up the data can be done in two ways: The first possibility\n    is just to copy an existing file called `current_data.csv` from an\n    old installation into `data/raw`. The second option is to call the\n    `create_current_data` file from the package manually and give it the\n    corresponding path where to write the `current_data.csv` file (should be `data/raw`).\n\n3. start the app:\n\n\n```\nshiny::runApp(\"shinyapp/app.R\")\n```\n\n\n### Package management\nPackages are very outdated but a (hopefully working) state has been\ncollected in an renv environment.\n\nTo install:\n\n```\ninstall(renv)\nrenv::restore()\n```\n\nTo add new packages\n\n```\nrenv::install(\"packagename\") # installs new package \nrenv::snapshot() # adds new package to the renv.lock file  \n```\n\n\nFor other potentially useful functionality (updating packages...) of `renv`, refer to the [renv documentation](https://rstudio.github.io/renv/reference/index.html).\n\n#### Working with the silbRnetz package\nThe folder `silbRnetz` contains an internal R package. \n\nit will be installed when using `renv::restore()` from the local tarball `silbRnetz_0.0.12.tar.gz`.\n\nOver the course of the project, you will potentiall write new code and/or refactor old code in the silbRnetz package. To make this available to the app, you need to load the changed functions into R. To do this, execute in the console whenever you changed something:\n\n```\ndevtools::load_all(\"silbRnetz\")\n```\n\n### Starting the app\n\n\nTo start the app, you can either use the RStudio interface in `shinyapp/app.R`\nor in the console:\n\n    shiny::runApp(\"shinyapp/app.R\")\n\n\n#### Deployment setup with bash file\n\n1.  Write a bash file that allows to start the app without having to\n    start RStudio looking something like this with the appropriate\n    paths:\n\n\u003c!-- --\u003e\n\n    \"C:/Program Files/R/R-3.6.3/bin/Rscript.exe\" -e \"shiny::runApp('C:/Users/USER/Desktop/cards', launch.browser = TRUE)\"\n\n\n### Known issues:\n\n#### OneDrive on Windows-Machines\n\nWe encountered the problem that if the default user directory is\ncompletely set up with OneDrive so that all files get synchronized, R\ncan run into problems when installing new packages and we weren’t able\nto install the silbRnetz package. The best way to work around this, was\nto make sure that R is installed in a directory not linked to OneDrive\n\n#### Fonts on Mac\n\nThe map-drawing function with the corresponding fonts still causes\ntrouble on Mac.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorrelaid%2Fsilbernetz-public","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorrelaid%2Fsilbernetz-public","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorrelaid%2Fsilbernetz-public/lists"}