Saved in:
Bibliographic Details
Main Author: Efthymios Chrysanthopoulos
Format: Recurso digital
Language:
Published: Zenodo 2025
Online Access:https://doi.org/10.5281/zenodo.17140894
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866901769843376128
author Efthymios Chrysanthopoulos
author_facet Efthymios Chrysanthopoulos
contents <h1>Passive Sampler Timer Map</h1> <p>This repository hosts a dynamic, interactive map that displays and updates passive samplers installation data using a Python script and an automated workflow via GitHub Actions. The map shows countdowns for each sampling point, with markers that adapt based on sampling type and date, removing points marked as collected and starting or restarting timers for installations.</p> <p>Methodology</p> <ol> <li><p>Data Preparation and Python Script</p> <p>Data Input: Data are automatically downloaded through Kobotoolbox API from the python script.</p> <p>Date Calculations: The Python script calculates days remaining until the end of each sampling based on installation dates, using the datetime and pandas libraries for accurate time calculations.</p> <p>Map Creation: The folium library creates an HTML map: Sampling points are marked on the map with color-coded markers. Timers are displayed for each point, and points are removed if marked as "Collection" Countdown calculations adjust based on the type (e.g., CPS, VPS) and most recent installation or collection dates.</p> </li> <li><p>Automating Map Updates with GitHub Actions</p> <p>An automation workflow in the .github/workflows/update_map.yml file allows the map to update at regular intervals. Key steps include:</p> <ul> <li>Triggering the Workflow: The .yml file sets up a cron job to run the script every 6 hours, checking for updated data.</li> <li>Running the Python Script: Each run executes the map generation script in the repository, outputting an updated index.html file.</li> <li>Committing Changes: If changes to the map are detected, GitHub Actions commits and pushes the updated HTML to the main branch.</li> </ul> </li> </ol> <h2>Python Package Versions</h2> <p>The project uses the following versions for key Python packages:</p> <ul> <li><code>folium==0.14.0</code></li> <li><code>pandas==2.1.4</code></li> <li><code>koboextractor==0.2.1</code></li> </ul> <p>For a complete list, refer to the <a href="requirements.txt">requirements.txt</a> file.</p> <h2>Dynamic Interactive Passive Samplers Map</h2> <p>Link: https://efthymios19.github.io/Passive-Sampler-Timer-Map/</p>
format Recurso digital
id zenodo_https___doi_org_10_5281_zenodo_17140894
institution Zenodo
language
publishDate 2025
publisher Zenodo
record_format zenodo
spellingShingle efthymios19/Passive-Sampler-Timer-Map: Passive-Sampler-Timer-Map
Efthymios Chrysanthopoulos
<h1>Passive Sampler Timer Map</h1> <p>This repository hosts a dynamic, interactive map that displays and updates passive samplers installation data using a Python script and an automated workflow via GitHub Actions. The map shows countdowns for each sampling point, with markers that adapt based on sampling type and date, removing points marked as collected and starting or restarting timers for installations.</p> <p>Methodology</p> <ol> <li><p>Data Preparation and Python Script</p> <p>Data Input: Data are automatically downloaded through Kobotoolbox API from the python script.</p> <p>Date Calculations: The Python script calculates days remaining until the end of each sampling based on installation dates, using the datetime and pandas libraries for accurate time calculations.</p> <p>Map Creation: The folium library creates an HTML map: Sampling points are marked on the map with color-coded markers. Timers are displayed for each point, and points are removed if marked as "Collection" Countdown calculations adjust based on the type (e.g., CPS, VPS) and most recent installation or collection dates.</p> </li> <li><p>Automating Map Updates with GitHub Actions</p> <p>An automation workflow in the .github/workflows/update_map.yml file allows the map to update at regular intervals. Key steps include:</p> <ul> <li>Triggering the Workflow: The .yml file sets up a cron job to run the script every 6 hours, checking for updated data.</li> <li>Running the Python Script: Each run executes the map generation script in the repository, outputting an updated index.html file.</li> <li>Committing Changes: If changes to the map are detected, GitHub Actions commits and pushes the updated HTML to the main branch.</li> </ul> </li> </ol> <h2>Python Package Versions</h2> <p>The project uses the following versions for key Python packages:</p> <ul> <li><code>folium==0.14.0</code></li> <li><code>pandas==2.1.4</code></li> <li><code>koboextractor==0.2.1</code></li> </ul> <p>For a complete list, refer to the <a href="requirements.txt">requirements.txt</a> file.</p> <h2>Dynamic Interactive Passive Samplers Map</h2> <p>Link: https://efthymios19.github.io/Passive-Sampler-Timer-Map/</p>
title efthymios19/Passive-Sampler-Timer-Map: Passive-Sampler-Timer-Map
url https://doi.org/10.5281/zenodo.17140894