https://labs.waterdata.usgs.gov/sta/v1.1/Locations?$filter=properties/mainstemURL%20eq%20%27https://geoconnex.us/ref/mainstems/29559%27&$expand=Things($select=id)/Datastreams($filter=properties/ParameterCode%20eq%20%2700065%27)/Observations($top=1)&$resultFormat=GeoJSON"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
library(dplyr) | |
library(lubridate) | |
# Load libraries and functions needed to create SQLite databases. | |
library(RSQLite) | |
library(RSQLite.extfuns) | |
saveSQLite <- function(data, name){ | |
path <- dplyr:::db_location(filename=paste0(name, ".sqlite")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(mapview) | |
library(urltools) | |
library(nhdplusTools) | |
library(sf) | |
convert <- function(x) { | |
for(n in names(x)) { | |
if(is.character(x[[n]])) { | |
test <- grepl("^http", x[[n]]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.4' | |
services: | |
chill-import: | |
image: fraunhoferiosb/chillimport:latest | |
ports: | |
- "8000:8000" | |
environment: | |
- configPath="/data" | |
volumes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(readr) | |
library(dplyr) | |
csv_directory <- "." | |
output_directory <- "./results" | |
filenames <- list.files(csv_directory,pattern="*.csv") | |
all_files <- Reduce(bind_rows, lapply(filenames, read_csv, col_types = cols(.default = "c"))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.4' | |
services: | |
caddy: | |
image: caddy:2.4.6-alpine | |
container_name: webserver | |
ports: | |
- 80:80 | |
- 443:443 | |
volumes: | |
- ./nc-water-supply:/srv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
r.boerne-water-dashboard.internetofwater.app { | |
reverse_proxy rstudio:8787 | |
} | |
boerne-water-dashboard.internetofwater.app { | |
root * /srv | |
file_server | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": [{ | |
"schema": "http://schema.org/", | |
"skos": "https://www.w3.org/TR/skos-reference/", | |
"sosa": "http://www.w3.org/ns/sosa/", | |
"hyf": "https://www.opengis.net/def/schema/hy_features/hyf/", | |
"gsp": "http://www.opengeospatial.org/standards/geosparql/", | |
"name": "schema:name", | |
"sameAs": "schema:sameAs", | |
"related": "skos:related", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##packages used | |
require(sf) | |
require(SPARQL) | |
# remotes::install_github("cran/SPARQL") this is archived by cran grrrr | |
require(mapview) | |
require(dplyr) | |
library(stringi) | |
# start gage | |
gage_uri <- "https://geoconnex.us/ref/gages/1118104" |
OlderNewer