Skip to content

Commit

Permalink
Post-tutorial clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Zimmerman committed Oct 2, 2023
1 parent 17d325d commit 34def90
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 25 deletions.
12 changes: 6 additions & 6 deletions .Rproj.user/7D780DDE/pcs/windowlayoutstate.pper
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"left": {
"splitterpos": 277,
"splitterpos": 209,
"topwindowstate": "NORMAL",
"panelheight": 672,
"windowheight": 710
"panelheight": 530,
"windowheight": 568
},
"right": {
"splitterpos": 418,
"splitterpos": 330,
"topwindowstate": "NORMAL",
"panelheight": 672,
"windowheight": 710
"panelheight": 530,
"windowheight": 568
}
}
6 changes: 3 additions & 3 deletions .Rproj.user/7D780DDE/rmd-outputs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
C:/Users/zimmer43/Sync/Github/AAAR2023-tutorial/part2.html
C:/Users/zimmer43/Sync/Github/AAAR2023-tutorial/part3.html
C:/Users/zimmer43/Sync/Github/AAAR2023-tutorial/index.html
C:/Users/zimmer43/Sync/Github/AAAR2023-tutorial/index.html
C:/Users/zimmer43/Documents
C:/Users/zimmer43/Sync/Github/AAAR2023-tutorial/index.html
C:/Users/zimmer43/Sync/Github/AAAR2023-tutorial/index.html
C:/Users/zimmer43/Sync/Github/AAAR2023-tutorial/index.html



Expand Down
6 changes: 3 additions & 3 deletions .Rproj.user/7D780DDE/sources/prop/2B3954DB
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"tempName": "Untitled1",
"source_window_id": "",
"Source": "Source",
"cursorPosition": "415,286",
"scrollLine": "401",
"last_setup_crc32": "c81a759d7253cc"
"cursorPosition": "332,17",
"scrollLine": "331",
"last_setup_crc32": "af74675e7253cc"
}

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"chunk_definitions":[{"row":92,"row_count":1,"visible":true,"expansion_state":0,"options":{"engine":"r","label":"setup","include":true},"document_id":"39657677","chunk_id":"csetup_chunk","chunk_label":"setup"},{"row":120,"row_count":1,"visible":true,"expansion_state":0,"options":{"engine":"r","label":"SQL-connect","include":true},"document_id":"39657677","chunk_id":"cq967pbat00cb","chunk_label":"SQL-connect"},{"row":129,"row_count":1,"visible":true,"expansion_state":0,"options":{"engine":"r","label":"ex1-intro","include":true},"document_id":"39657677","chunk_id":"clz1mzd7euuco","chunk_label":"ex1-intro"},{"row":168,"row_count":1,"visible":true,"expansion_state":0,"options":{"engine":"r","label":"SQL-createtables","include":true},"document_id":"39657677","chunk_id":"ckkwmiadqs1le","chunk_label":"SQL-createtables"},{"row":266,"row_count":1,"visible":true,"expansion_state":0,"options":{"engine":"r","label":"ex1-query","include":true,"warning":false},"document_id":"4AD29E2A","chunk_id":"cpadi71xiqxau","chunk_label":"ex1-query"},{"row":317,"row_count":1,"visible":true,"expansion_state":0,"options":{"engine":"r","label":"ex2-load"},"document_id":"39657677","chunk_id":"cboxbdeiz8x79","chunk_label":"ex2-load"},{"row":343,"row_count":1,"visible":true,"expansion_state":0,"options":{"engine":"r","label":"ex2-ship"},"document_id":"39657677","chunk_id":"crqlfydod6ri6","chunk_label":"ex2-ship"},{"row":411,"row_count":1,"visible":true,"expansion_state":0,"options":{"engine":"r","label":"ex2-new files"},"document_id":"39657677","chunk_id":"cfeikrrsaqnyf","chunk_label":"ex2-new files"}],"doc_write_time":1696262647,"working_dir":null,"default_chunk_options":{}}
{"chunk_definitions":[{"row":92,"row_count":1,"visible":true,"expansion_state":0,"options":{"engine":"r","label":"setup","include":true},"document_id":"39657677","chunk_id":"csetup_chunk","chunk_label":"setup"},{"row":120,"row_count":1,"visible":true,"expansion_state":0,"options":{"engine":"r","label":"SQL-connect","include":true},"document_id":"39657677","chunk_id":"cq967pbat00cb","chunk_label":"SQL-connect"},{"row":129,"row_count":1,"visible":true,"expansion_state":0,"options":{"engine":"r","label":"ex1-intro","include":true},"document_id":"39657677","chunk_id":"clz1mzd7euuco","chunk_label":"ex1-intro"},{"row":168,"row_count":1,"visible":true,"expansion_state":0,"options":{"engine":"r","label":"SQL-createtables","include":true},"document_id":"39657677","chunk_id":"ckkwmiadqs1le","chunk_label":"SQL-createtables"},{"row":268,"row_count":1,"visible":true,"expansion_state":0,"options":{"engine":"r","label":"ex1-query","include":true,"warning":false},"document_id":"4AD29E2A","chunk_id":"cpadi71xiqxau","chunk_label":"ex1-query"},{"row":319,"row_count":1,"visible":true,"expansion_state":0,"options":{"engine":"r","label":"ex2-load"},"document_id":"39657677","chunk_id":"cboxbdeiz8x79","chunk_label":"ex2-load"},{"row":345,"row_count":1,"visible":true,"expansion_state":0,"options":{"engine":"r","label":"ex2-ship"},"document_id":"39657677","chunk_id":"crqlfydod6ri6","chunk_label":"ex2-ship"},{"row":413,"row_count":1,"visible":true,"expansion_state":0,"options":{"engine":"r","label":"ex2-new files"},"document_id":"39657677","chunk_id":"cfeikrrsaqnyf","chunk_label":"ex2-new files"}],"doc_write_time":1696270469,"chunk_rendered_width":554}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"1",""
"1","MySQLResult:"
"1",""
"1","1998154584,2,12"
"1","0,0,12"
"1",""
"1",">
"
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"0",""
"0","# Check for pacman and load"
"0","if (!require(""pacman"")) install.packages(""pacman""); library(pacman)"
"0",""
"2","Loading required package: pacman
"
"0","# Install / load required packages"
"0","p_load(DBI,RODBC,odbc,dbplyr,RMySQL,tidyverse,keyring,con2aqi,lubridate, stringr)"
2 changes: 0 additions & 2 deletions index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,6 @@ ggplot(no2_july, aes(x=ymd_hms(date), y=concentration, color=Grouping)) +

Some of the figures we just generated are fine, or might be useful for a publication, but say we are routinely collecting and downloading data and we want to track our data as it is coming in (maybe we are routinely collecting data and want a quick / dynamic way to visualize). We can leverage our same SQL databases into the open-source Grafana dashboarding tool. Let's check it out!

![Having fun at the AAAAR tutorial](celebrate.png)

## Create a read-only user in MySQL to interface with Grafana

There's no reason Grafana needs to be able to write new data, it's just visualizing what we already collected, so let's make a restricted version.
Expand Down
6 changes: 1 addition & 5 deletions index.html

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions loaded_cpc_files.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@


data/example 2/WCPC raw/2023-09-13 154229_1 Hz.csv
data/example 2/WCPC raw/2023-09-14 154229_1 Hz.csv
data/example 2/WCPC raw/2023-09-15 154229_1 Hz.csv
Expand Down

0 comments on commit 34def90

Please sign in to comment.