Shiny webapp for visualizing light sensor data
The simplest way to run our app is with docker:
docker pull acsquared/lenss:latest
docker run -p 1897:1897 acsquared/lenss:latest- Write mag/arcsecond^2 about section
- Moon phase library
- Set up skyfield for twilight calculation times at -18° angle
- Pipe data through scripts to automatically create .csv files
- Create website
- Integrate open-meteo.com weather API
- Filter out <4.8 volts
- Implement categorization of data according to bortle scale
- Make interactive graphs with R shiny
- Redo X scale to reference actual time (instead of fixed numbers) to account for daylight savings
- Improve efficiency
- Use Google API to automatically grab new data files when updated
- "What is twilight?" section
- Map of light pollution in US
Given a start and end date, data can be visualized in both image and gif format as shown below:
This function is the heart of the shiny app. It takes various interactive parameters to make graphs with LENSS data.
buildGraph(date, midLine = FALSE, sqm = FALSE, bortle = FALSE, cloud = FALSE, phase = FALSE, save = FALSE, size = c(3201,1800))Outputs from changing parameters are shown in the following section.
Plot with max SQM reading and midnight both labeled:
buildGraph("2023-10-23", sqm = TRUE, midLine = TRUE)Plot with moon phase displayed:
buildGraph("2023-10-23", phase = TRUE)Plot with Bortle scale overlaid:
buildGraph("2023-10-10", bortle = TRUE)Plot with cloud cover overlaid:
buildGraph("2023-10-23", cloud = TRUE)This code is under the GNU AGPL 3.0 open source license. Our light data is provided by GLAS Education under the ODbL open database license, and our weather data is provided by open meteo under the CC-BY 4.0 license.





