Déplacement de la configuration des outils
This commit is contained in:
101
tools/config/config.json
Normal file
101
tools/config/config.json
Normal file
@@ -0,0 +1,101 @@
|
||||
{
|
||||
"rebrickable": {
|
||||
"apiKey": null
|
||||
},
|
||||
"externalLinks": {
|
||||
"cacheDir": "tools/cache",
|
||||
"cacheFile": "external_links.yaml",
|
||||
"hostDelayMs": 2000,
|
||||
"retryDelayMs": 5000,
|
||||
"requestTimeoutSeconds": 5,
|
||||
"cacheTtlSuccessDays": 30,
|
||||
"cacheTtlClientErrorDays": 7,
|
||||
"outputFormat": "markdown",
|
||||
"outputFile": "tools/cache/external_links_report.md",
|
||||
"userAgent": null,
|
||||
"enableCookies": true,
|
||||
"cookieJar": "tools/cache/curl_cookies.txt"
|
||||
},
|
||||
"weather": {
|
||||
"timezone": "Europe/Paris",
|
||||
"defaultHour": 12,
|
||||
"defaultMinute": 0,
|
||||
"windowMinutes": 60,
|
||||
"precipitationThreshold": 0.1,
|
||||
"providers": {
|
||||
"influxdb": {
|
||||
"url": null,
|
||||
"org": "Dern",
|
||||
"bucket": "weather",
|
||||
"token": null,
|
||||
"windowMinutes": 60,
|
||||
"precipitationThreshold": 0.1,
|
||||
"sensors": {
|
||||
"temperature": {
|
||||
"measurement": "°C",
|
||||
"field": "value",
|
||||
"tags": {
|
||||
"entity_id": "station_meteo_bresser_exterieur_temperature"
|
||||
}
|
||||
},
|
||||
"humidity": {
|
||||
"measurement": "%",
|
||||
"field": "value",
|
||||
"tags": {
|
||||
"entity_id": "station_meteo_bresser_exterieur_humidite_relative"
|
||||
}
|
||||
},
|
||||
"pressure": {
|
||||
"measurement": "hPa",
|
||||
"field": "value",
|
||||
"tags": {
|
||||
"entity_id": "station_meteo_bresser_exterieur_pression_atmospherique"
|
||||
}
|
||||
},
|
||||
"illuminance": {
|
||||
"measurement": "lx",
|
||||
"field": "value",
|
||||
"tags": {
|
||||
"entity_id": "station_meteo_bresser_exterieur_luminance"
|
||||
}
|
||||
},
|
||||
"precipitations": {
|
||||
"measurement": "mm/h",
|
||||
"field": "value",
|
||||
"threshold": 0.1,
|
||||
"tags": {
|
||||
"entity_id": "station_meteo_bresser_exterieur_precipitations"
|
||||
}
|
||||
},
|
||||
"wind_speed": {
|
||||
"measurement": "km/h",
|
||||
"field": "value",
|
||||
"unit": "km/h",
|
||||
"tags": {
|
||||
"entity_id": "station_meteo_bresser_exterieur_vitesse_du_vent"
|
||||
}
|
||||
},
|
||||
"wind_direction": {
|
||||
"measurement": "°",
|
||||
"field": "value",
|
||||
"tags": {
|
||||
"entity_id": "station_meteo_bresser_exterieur_direction_du_vent"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"openMeteo": {
|
||||
"latitude": null,
|
||||
"longitude": null,
|
||||
"timezone": "Europe/Paris",
|
||||
"pressureOffset": 40,
|
||||
"illuminanceToLuxFactor": 126.7,
|
||||
"windowMinutes": 90,
|
||||
"precipitationThreshold": 0.1
|
||||
}
|
||||
}
|
||||
},
|
||||
"goaccess": {
|
||||
"url": null
|
||||
}
|
||||
}
|
||||
107
tools/config/stats.json
Normal file
107
tools/config/stats.json
Normal file
@@ -0,0 +1,107 @@
|
||||
{
|
||||
"config": {
|
||||
"dataOutput": "content/stats/data/stats.json",
|
||||
"defaultImageDir": "content/stats/images"
|
||||
},
|
||||
"sections": [
|
||||
{
|
||||
"title": "Habitudes d'écriture",
|
||||
"statistics": [
|
||||
{
|
||||
"key": "most_prolific_month",
|
||||
"title": "Mois le plus prolifique",
|
||||
"type": "variable",
|
||||
"script": "tools/stats/most_prolific_month.js"
|
||||
},
|
||||
{
|
||||
"key": "weekday_activity",
|
||||
"title": "Articles et mots par jour",
|
||||
"type": "graphic",
|
||||
"script": "tools/stats/weekday_activity.py",
|
||||
"image": "content/stats/images/weekday_activity.png"
|
||||
},
|
||||
{
|
||||
"key": "articles_avg_per_month",
|
||||
"title": "Moyenne d'articles par mois",
|
||||
"type": "variable",
|
||||
"script": "tools/stats/articles_avg_per_month.js"
|
||||
},
|
||||
{
|
||||
"key": "articles_per_month",
|
||||
"title": "Articles par mois",
|
||||
"type": "graphic",
|
||||
"script": "tools/stats/articles_per_month.py",
|
||||
"image": "content/stats/images/articles_per_month.png"
|
||||
},
|
||||
{
|
||||
"key": "articles_per_year",
|
||||
"title": "Articles par an",
|
||||
"type": "graphic",
|
||||
"script": "tools/stats/articles_per_year.py",
|
||||
"image": "content/stats/images/articles_per_year.png"
|
||||
},
|
||||
{
|
||||
"key": "cumulative_articles",
|
||||
"title": "Cumul articles / mots",
|
||||
"type": "graphic",
|
||||
"script": "tools/stats/cumulative_articles.py",
|
||||
"image": "content/stats/images/cumulative_articles.png"
|
||||
},
|
||||
{
|
||||
"key": "articles_per_section",
|
||||
"title": "Articles par section",
|
||||
"type": "graphic",
|
||||
"script": "tools/stats/articles_per_section.py",
|
||||
"image": "content/stats/images/articles_per_section.png"
|
||||
},
|
||||
{
|
||||
"key": "words_per_article",
|
||||
"title": "Nombre de mots par article",
|
||||
"type": "graphic",
|
||||
"script": "tools/stats/words_per_article.py",
|
||||
"image": "content/stats/images/words_per_article.png"
|
||||
},
|
||||
{
|
||||
"key": "words_histogram",
|
||||
"title": "Distribution des longueurs",
|
||||
"type": "graphic",
|
||||
"script": "tools/stats/words_histogram.py",
|
||||
"image": "content/stats/images/words_histogram.png"
|
||||
},
|
||||
{
|
||||
"key": "weather_hexbin",
|
||||
"title": "Conditions météo à la publication",
|
||||
"type": "graphic",
|
||||
"script": "tools/stats/weather_hexbin.py",
|
||||
"image": "content/stats/images/weather_hexbin.png"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Visites",
|
||||
"statistics": [
|
||||
{
|
||||
"key": "pageviews_per_month",
|
||||
"title": "Pages vues (mois courant)",
|
||||
"type": "variable",
|
||||
"script": "tools/stats/goaccess_monthly.js",
|
||||
"metric": "hits"
|
||||
},
|
||||
{
|
||||
"key": "unique_visitors_per_month_value",
|
||||
"title": "Visiteurs uniques (mois courant)",
|
||||
"type": "variable",
|
||||
"script": "tools/stats/goaccess_monthly.js",
|
||||
"metric": "visitors"
|
||||
},
|
||||
{
|
||||
"key": "top_requests",
|
||||
"title": "Top requêtes (30 jours)",
|
||||
"type": "graphic",
|
||||
"script": "tools/stats/top_requests.py",
|
||||
"image": "content/stats/images/top_requests.png"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user