Package: wasserportal 0.7.0

Michael Rustler

wasserportal: R Package with Functions for Scraping Data of Wasserportal Berlin

R Package with Functions for Scraping Data of Wasserportal Berlin (https://wasserportal.berlin.de), which contains real-time data of surface water and groundwater monitoring stations.

Authors:Hauke Sonnenberg [aut], Michael Rustler [aut, cre], AD4GD [fnd], DWC [fnd], IMPETUS [fnd], PROMISCES [fnd], Kompetenzzentrum Wasser Berlin gGmbH [cph]

wasserportal_0.7.0.tar.gz
wasserportal_0.7.0.zip(r-4.7)wasserportal_0.7.0.zip(r-4.6)wasserportal_0.7.0.zip(r-4.5)
wasserportal_0.7.0.tgz(r-4.6-any)wasserportal_0.7.0.tgz(r-4.5-any)
wasserportal_0.7.0.tar.gz(r-4.7-any)wasserportal_0.7.0.tar.gz(r-4.6-any)
wasserportal_0.7.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
wasserportal/json (API)

# Install 'wasserportal' in R:
install.packages('wasserportal', repos = c('https://kwb-r.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/kwb-r/wasserportal/issues

On CRAN:

Conda:

groundwaterproject-dwcproject-geosalzproject-impetusproject-promiscesreal-time-datasurface-waterwasserportal-berlin

3.90 score 6 scripts 39 exports 47 dependencies

Last updated from:c8965aa7fb. Checks:7 WARNING, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64WARNING256
source / vignettesOK2098
linux-release-x86_64WARNING276
macos-release-arm64WARNING169
macos-oldrel-arm64WARNING167
windows-develWARNING207
windows-releaseWARNING197
windows-oldrelWARNING200
wasm-releaseOK150

Exports:%>%base_url_downloadcolumns_to_labelsget_api_tablesget_daily_surfacewater_dataget_groundwater_dataget_groundwater_optionsget_overview_optionsget_station_variablesget_stationsget_surfacewater_qualitiesget_surfacewater_qualityget_surfacewater_variablesget_wasserportal_master_dataget_wasserportal_masters_dataget_wasserportal_stationsget_wasserportal_stations_tableget_wasserportal_variablesinspect_gh_pages_zipslist_data_to_csv_or_ziplist_masters_data_to_csvlist_timeseries_data_to_zipreadread_wasserportalread_wasserportal_rawread_wasserportal_raw_gwreadPackageFiletb_delete_device_telemetrytb_get_device_idtb_list_device_telemetry_keystb_logintb_plan_defaultstb_push_latest_telemetrytb_push_station_attributestb_push_station_telemetrytb_setup_deviceswasserportal_base_urlwp_masters_data_to_listwp_timeseries_data_to_list

Dependencies:archiveaskpassbitbit64clicliprcpp11crayoncurldata.tabledplyrfsgenericsgluehmshttrhttr2jsonlitekwb.datetimekwb.utilslifecyclemagrittrmimeopensslpillarpkgconfigprettyunitsprogresspurrrR6rappdirsreadrrlangrvestselectrstringistringrsystibbletidyrtidyselecttzdbutf8vctrsvroomwithrxml2

ThingsBoard Demo (Free Tier)
1. Prerequisites | 2. Inspect What Will Be Pushed | 3. Create Devices in ThingsBoard | 4. Push Station Master Data as Attributes | 5. Push Time Series (Level + Quality) | 6. Plan-Aware Tuning | 7. Visualise -- Import the Demo Dashboard | 8. Operational Helpers | 9. Production Push via GitHub Actions | 10. Re-Running and Idempotency | 11. Surface Water as an Alternative | 12. Switching to Self-Hosted CE

Last update: 2026-06-19
Started: 2026-06-17

Groundwater
Define URLs and Helper Functions | Master Data | Get Groundwater Data | Do Your Own Analysis! | Data Availability | GW Quality | Export

Last update: 2026-06-17
Started: 2021-03-10

Surface Water
Define Helper Functions | Master Data | Daily Surface Water Data & Overall Surface Water Quality | Daily Surface Water Levels

Last update: 2026-06-17
Started: 2022-06-09

Tutorial
Install the Package | Overview on Monitoring Stations and Parameters | Provide Pipe Operator and Helper Functions | Groundwater Level Data | Master data | Trend Classification | 1. Trend Classification Histogram | 2. Trend Classification Map | Groundwater Levels: One Station | Groundwater Levels: Multiple Stations | Groundwater Quality Data | Groundwater Quality: One Station | Groundwater Quality: Multiple Stations

Last update: 2026-06-17
Started: 2021-03-04

Readme and manuals

Help Manual

Help pageTopics
Helper function: base url for downloadbase_url_download
Create Text Labels from Data Frame Columnscolumns_to_labels
Provide Tables of Wasserportal API Documentationget_api_tables
Get Daily Surfacewater Data: wrapper to scrape daily surface water dataget_daily_surfacewater_data
Get Groundwater Dataget_groundwater_data
Helper function: get groundwater optionsget_groundwater_options
Wasserportal Berlin: get overview options for stationsget_overview_options
Helper function: get available station variablesget_station_variables
Get Stationsget_stations
Get Surface Water Quality for Multiple Monitoring Stationsget_surfacewater_qualities
Get Surface Water Quality for One Monitoring Stationget_surfacewater_quality
Helper function: get surface water variablesget_surfacewater_variables
Wasserportal Berlin: get master data for a single stationget_wasserportal_master_data
Wasserportal Berlin: get master data for a multiple stationsget_wasserportal_masters_data
Get Names and IDs of the Stations of wasserportal.berlin.deget_wasserportal_stations
Wasserportal Berlin: get stations overview tableget_wasserportal_stations_table
Get Names and IDs of the Variables of wasserportal.berlin.deget_wasserportal_variables
Download and Inspect Wasserportal ZIP Files Hosted on gh-pagesinspect_gh_pages_zips
Helper function: list data to csv or ziplist_data_to_csv_or_zip
Helper function: list masters data to csvlist_masters_data_to_csv
Helper function: list timeseries data to ziplist_timeseries_data_to_zip
Helper function to read CSVread
Download and Read Data from wasserportal.berlin.deread_wasserportal
Read Wasserportal Rawread_wasserportal_raw
read_wasserportal_raw_gwread_wasserportal_raw_gw
Read CSV File from Package's "extdata" FolderreadPackageFile
Delete All Time-Series Data for Selected Keys on a ThingsBoard Devicetb_delete_device_telemetry
Look Up a ThingsBoard Device's UUID by Nametb_get_device_id
List the Telemetry Keys Currently Stored for a ThingsBoard Devicetb_list_device_telemetry_keys
Obtain a JWT Bearer Token from ThingsBoard (Username / Password Login)tb_login
Recommended Push Defaults per ThingsBoard Subscription Plantb_plan_defaults
Push a Single "Latest" Telemetry Record (no Timestamp)tb_push_latest_telemetry
Push Static Attributes of one Wasserportal Station to ThingsBoardtb_push_station_attributes
Push Time Series of one Wasserportal Station to ThingsBoardtb_push_station_telemetry
Create ThingsBoard Devices and Return their Access Tokenstb_setup_devices
Helper function: Base Url of Berlin Wassersportalwasserportal_base_url
Wasserportal Master Data: download and Import in R Listwp_masters_data_to_list
Wasserportal Time Series Data: download and Import in R Listwp_timeseries_data_to_list