https://github.com/cemac/livinglabdataapp

Repository for the Living Lab Data website

https://github.com/cemac/livinglabdataapp

Science Score: 20.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
    7 of 10 committers (70.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.9%) to scientific vocabulary

Keywords

air-quality python-flask sustainability university-of-leeds
Last synced: 5 months ago · JSON representation

Repository

Repository for the Living Lab Data website

Basic Info
  • Host: GitHub
  • Owner: cemac
  • License: mit
  • Language: Python
  • Default Branch: master
  • Size: 197 KB
Statistics
  • Stars: 2
  • Watchers: 3
  • Forks: 3
  • Open Issues: 10
  • Releases: 0
Topics
air-quality python-flask sustainability university-of-leeds
Created almost 8 years ago · Last pushed over 4 years ago
Metadata Files
Readme License

README.md


Living Lab Data App

GitHub release GitHub top language GitHub issues GitHub last commit GitHub All Releases DOI HitCount


Description

This web app has been created that can read in the data files from the CPC instruments used by volunteers walking around Campus, retrieve the relevant geolocation data from the Strava servers, and plot the resulting concentrations on a google base map. The website is currently live at https://cemac.leeds.ac.uk/living-lab/.

Requirements

Installation

  • git clone https://github.com/cemac/LivingLabDataApp.git
  • Obtain or set AppSecretKey.txt and StravaTokens.txt
  • conda env create -f livinglab.yaml
  • python app.py

USAGE

Before running this web app, build the sqlite3 database from the ASCII dump file. (The database file is binary, so the ASCII file is better for version control). This is done by typing the following (assumes sqlite3 is installed): $ sqlite3 LivingLabDataApp.db < LivingLabDataApp.sql

Similarly, to update the dump file before committing to the git repo, type: $ sqlite3 LivingLabDataApp.db .dump > LivingLabDataApp.sql

Note that in order for the app to run successfully, the files AppSecretKey.txt and StravaTokens.txt must be in the app's root directory. These files are not version-controlled as they contains sensitive data.

To run the app in development mode (on localhost), do the following:

  • In app.py, change the subdomain variable (subd) near the top of the script from "/living-lab" to "" (i.e. an empty string)
  • In app.py, add "debug=True" inside the parentheses in the call to app.run near the bottom of the script
  • If on the FOE system, load the appropriate python modules by typing: $ module load python3 python-libs
  • Run the application by typing: $ python3 app.py
  • Open up a web browser and navigate to localhost:5000

Don't forget to reset subd and remove from debug mode before committing to GitHub (production mode)

To make changes to the GitHub repo:

  • If you are a collaborator, you can simply push local changes to the main repo
  • If you are not a collaborator, follow these instructions:
    • Fork and clone the main repo
    • Configure your local forked repo to sync with the main repo: $ git remote add upstream https://github.com/cemac/LivingLabDataApp.git
    • You can then keep your local forked repo up-to-date with any changes to the main repo using: $ git fetch upstream; git merge upstream OR $ git pull upstream master\
    • Make a new branch for a particular new development/bug fix: $ git checkout -b branchName
    • Commit changes locally as normal, and push to the remote forked repo using: $ git push origin branchName
    • Once happy with your changes, open a pull request (PR) from your remote forked repo's GitHub page
    • This PR will be reviewed by one of the code owners and, once any follow-up changes are made, pulled into the main repo
    • It is then good practice to delete the branch in both the remote forked repo (can be done via GitHub) and the local forked repo: $ git branch -d branchName

To make any code changes take effect on the server, ssh into it, update the git repo, and perform a restart:

bash $ ssh -Y cemac-ll-01 $ cd /www/living_lab/ $ git pull $ sudo systemctl restart httpd

All Secret Key are not version controlled.

License Information

This App is licensed is currently licensed under the MIT license. Subject to change on request

Acknowledgements

Owner

  • Name: Centre for Environmental Modelling And Computation
  • Login: cemac
  • Kind: organization
  • Location: Leeds

software to support environmental science

GitHub Events

Total
Last Year

Committers

Last synced: about 2 years ago

All Time
  • Total Commits: 127
  • Total Committers: 10
  • Avg Commits per committer: 12.7
  • Development Distribution Score (DDS): 0.488
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Nick n****r@u****a 65
hlburns H****s@l****k 25
James O'Neill e****o@l****k 22
Nick n****r@g****m 5
helen h****s@l****k 3
Mark Richardson e****r@c****k 2
Mark Richardson m****n@l****k 2
Tamora James T****1@l****k 1
Nick Tabler 3****r 1
cemac-tech 3****h 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: about 2 years ago

All Time
  • Total issues: 24
  • Total pull requests: 15
  • Average time to close issues: about 1 month
  • Average time to close pull requests: 9 days
  • Total issue authors: 3
  • Total pull request authors: 2
  • Average comments per issue: 0.54
  • Average comments per pull request: 0.07
  • Merged pull requests: 13
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • jjocemac (15)
  • nicktblr (8)
  • wolfiex (1)
Pull Request Authors
  • nicktblr (14)
  • jjocemac (1)
Top Labels
Issue Labels
enhancement (11) bug (4)
Pull Request Labels