From 29292d4d65b081ae18076f042686e0df81bdb359 Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 10:37:31 +0200 Subject: [PATCH 01/51] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 8e2c31478..272e59b61 100644 --- a/README.md +++ b/README.md @@ -100,3 +100,5 @@ Lors de vos développements, vous serez peut-être confronté à des erreurs sys Les causes d'erreurs sont quasi illimitées. **Vous devez donc vous tourner vers les logs de votre système pour comprendre d'où vient le problème** : Voici une vidéo pour accéder aux logs de vos Actions GitHUB : [Vidéo Log GitHUB](https://youtu.be/rhGrDLSFH7Y) Voici une vidéo pour vous expliquer comment accéder au logs de votre serveur Alwaysdata : [Vidéo Log Alwaysdata](https://youtu.be/URWMWqVMS2U) + +Test From 29887cc9f5c2fc0f206a2c7fe6c46d7b06cffc5e Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 10:50:03 +0200 Subject: [PATCH 02/51] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 272e59b61..8e4d5ede0 100644 --- a/README.md +++ b/README.md @@ -101,4 +101,3 @@ Les causes d'erreurs sont quasi illimitées. **Vous devez donc vous tourner vers Voici une vidéo pour accéder aux logs de vos Actions GitHUB : [Vidéo Log GitHUB](https://youtu.be/rhGrDLSFH7Y) Voici une vidéo pour vous expliquer comment accéder au logs de votre serveur Alwaysdata : [Vidéo Log Alwaysdata](https://youtu.be/URWMWqVMS2U) -Test From 46be6e71bd27fd01e369103ec3e08e57e2aad445 Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 10:57:36 +0200 Subject: [PATCH 03/51] Update hello.html --- templates/hello.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/hello.html b/templates/hello.html index f2fedac0d..d49ae792e 100644 --- a/templates/hello.html +++ b/templates/hello.html @@ -1,7 +1,7 @@ Evaluation

Bienvenue sur votre projet Métriques

-

Ceci est le projet de : Prénom Nom

+

Ceci est le projet de : Angélique Bidot

Si vous avez mis en ligne votre solution et si cette page d'accueil s'affiche dans votre navigateur alors vous avez déjà gagné 4 points sur votre note d'évaluation.

Notions acquises lors de cette étape : Vous avez lors cette première étape apris à créer votre hébergement en ligne sur Alwaydata, installer une application, Forker un projet GitHUB et créer des Secrets qui seront utilisés lors de vos Commits pour mettre à jour votre site en ligne

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

From 2319e25adfef791254927ed807b51e3b2088eed4 Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 11:00:36 +0200 Subject: [PATCH 04/51] Update __init__.py --- __init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/__init__.py b/__init__.py index 78202edfa..700e7844b 100644 --- a/__init__.py +++ b/__init__.py @@ -10,6 +10,9 @@ @app.route('/') def hello_world(): return render_template('hello.html') +@app.route("/contact/") +def MaPremiereAPI(): + return "

Ma page de contact

" if __name__ == "__main__": app.run(debug=True) From d73e1324c615fbffce9587ff3f24123c23661493 Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 11:06:53 +0200 Subject: [PATCH 05/51] Update __init__.py --- __init__.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/__init__.py b/__init__.py index 700e7844b..87122f4a8 100644 --- a/__init__.py +++ b/__init__.py @@ -13,6 +13,18 @@ def hello_world(): @app.route("/contact/") def MaPremiereAPI(): return "

Ma page de contact

" + +@app.route('/tawarano/') +def meteo(): + response = urlopen('https://samples.openweathermap.org/data/2.5/forecast?lat=0&lon=0&appid=xxx') + raw_content = response.read() + json_content = json.loads(raw_content.decode('utf-8')) + results = [] + for list_element in json_content.get('list', []): + dt_value = list_element.get('dt') + temp_day_value = list_element.get('main', {}).get('temp') - 273.15 # Conversion de Kelvin en °c + results.append({'Jour': dt_value, 'temp': temp_day_value}) + return jsonify(results=results) if __name__ == "__main__": app.run(debug=True) From 4856fb17b1b9c58bae136048b671d44f9e48ec66 Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 11:15:12 +0200 Subject: [PATCH 06/51] Create graphique --- templates/graphique | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 templates/graphique diff --git a/templates/graphique b/templates/graphique new file mode 100644 index 000000000..7326be6e0 --- /dev/null +++ b/templates/graphique @@ -0,0 +1,9 @@ + + + + Graphique + + +

Mon Graphique

+ + From 778edb4f4f40c3ecd78a9834e188fb3cd87344b7 Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 11:15:36 +0200 Subject: [PATCH 07/51] Rename graphique to graphique.html --- templates/{graphique => graphique.html} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename templates/{graphique => graphique.html} (100%) diff --git a/templates/graphique b/templates/graphique.html similarity index 100% rename from templates/graphique rename to templates/graphique.html From 08b58af19e54fd6418a50497c58a9ad868ace4e5 Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 11:16:12 +0200 Subject: [PATCH 08/51] Update __init__.py --- __init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/__init__.py b/__init__.py index 87122f4a8..22ce19a7e 100644 --- a/__init__.py +++ b/__init__.py @@ -25,6 +25,10 @@ def meteo(): temp_day_value = list_element.get('main', {}).get('temp') - 273.15 # Conversion de Kelvin en °c results.append({'Jour': dt_value, 'temp': temp_day_value}) return jsonify(results=results) + +@app.route("/rapport/") +def mongraphique(): + return render_template("graphique.html") if __name__ == "__main__": app.run(debug=True) From f7bed6c844b102610b45b380def46284a7f2f210 Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 11:17:34 +0200 Subject: [PATCH 09/51] Update and rename --- templates/{ => templates}/graphique.html | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename templates/{ => templates}/graphique.html (100%) diff --git a/templates/graphique.html b/templates/templates/graphique.html similarity index 100% rename from templates/graphique.html rename to templates/templates/graphique.html From ea8d463c0c713e5439f5a07d6f282d8aac6b3aef Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 11:20:54 +0200 Subject: [PATCH 10/51] Update graphique.html --- templates/templates/graphique.html | 41 ++++++++++++++++++++++++++---- 1 file changed, 36 insertions(+), 5 deletions(-) diff --git a/templates/templates/graphique.html b/templates/templates/graphique.html index 7326be6e0..8485bee20 100644 --- a/templates/templates/graphique.html +++ b/templates/templates/graphique.html @@ -1,9 +1,40 @@ - Graphique - - -

Mon Graphique

- + Metrique + + + +
+ + From 5f8e1b5b510f068d68395d39ed19b843ccaf5693 Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 11:22:44 +0200 Subject: [PATCH 11/51] Update graphique.html From 2b11075e44c9b24f500c64c373df8d43d1f8b118 Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 11:31:12 +0200 Subject: [PATCH 12/51] Update graphique.html From 654eb1f166db09dffc9f9d4b60d2fd9e23c1c6f7 Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 11:36:26 +0200 Subject: [PATCH 13/51] Update graphique.html --- templates/templates/graphique.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/templates/graphique.html b/templates/templates/graphique.html index 8485bee20..182738a56 100644 --- a/templates/templates/graphique.html +++ b/templates/templates/graphique.html @@ -1,7 +1,7 @@ - Metrique + Metriques From 6b6b4c5508389977e8ce34566dfbf64035101a65 Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 11:37:41 +0200 Subject: [PATCH 14/51] Update graphique.html --- templates/templates/graphique.html | 41 ++++-------------------------- 1 file changed, 5 insertions(+), 36 deletions(-) diff --git a/templates/templates/graphique.html b/templates/templates/graphique.html index 182738a56..87dda2d02 100644 --- a/templates/templates/graphique.html +++ b/templates/templates/graphique.html @@ -1,40 +1,9 @@ - Metriques - - - -
- - + Graphique + + +

Mes Graphiques

+ From 6aa2a64d4846c6868a9daa8ec5f1a419ab6b0b53 Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 11:42:27 +0200 Subject: [PATCH 15/51] Delete templates/templates directory --- templates/templates/graphique.html | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 templates/templates/graphique.html diff --git a/templates/templates/graphique.html b/templates/templates/graphique.html deleted file mode 100644 index 87dda2d02..000000000 --- a/templates/templates/graphique.html +++ /dev/null @@ -1,9 +0,0 @@ - - - - Graphique - - -

Mes Graphiques

- - From c76f320853d2c721f44eaa1dbfa5a9fdf4b4bca9 Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 11:42:52 +0200 Subject: [PATCH 16/51] Create graphique.html --- templates/graphique.html | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 templates/graphique.html diff --git a/templates/graphique.html b/templates/graphique.html new file mode 100644 index 000000000..87dda2d02 --- /dev/null +++ b/templates/graphique.html @@ -0,0 +1,9 @@ + + + + Graphique + + +

Mes Graphiques

+ + From 7755be5cc6cb710b414ff135b6da87796418c9c5 Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 11:44:29 +0200 Subject: [PATCH 17/51] Update graphique.html --- templates/graphique.html | 41 +++++++++++++++++++++++++++++++++++----- 1 file changed, 36 insertions(+), 5 deletions(-) diff --git a/templates/graphique.html b/templates/graphique.html index 87dda2d02..8485bee20 100644 --- a/templates/graphique.html +++ b/templates/graphique.html @@ -1,9 +1,40 @@ - Graphique - - -

Mes Graphiques

- + Metrique + + + +
+ + From c554117848300c2f3e21d71de731220babbb5984 Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 11:53:58 +0200 Subject: [PATCH 18/51] Update graphique.html --- templates/graphique.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/graphique.html b/templates/graphique.html index 8485bee20..762280c8a 100644 --- a/templates/graphique.html +++ b/templates/graphique.html @@ -7,9 +7,9 @@
+ + + +
+ + + + From df37643f13e93325fc6a0aef33d1f2aa463bddb0 Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 13:16:37 +0200 Subject: [PATCH 26/51] Update __init__.py --- __init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 095b85729..f051f6ee4 100644 --- a/__init__.py +++ b/__init__.py @@ -32,7 +32,7 @@ def mongraphique(): @app.route("/histogramme/") def mongraphique(): - return render_template("graphique.html") + return render_template("histogramme.html") if __name__ == "__main__": app.run(debug=True) From 5236ad1abe6797c55504536647d10811357a8025 Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 13:17:46 +0200 Subject: [PATCH 27/51] Update __init__.py --- __init__.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/__init__.py b/__init__.py index f051f6ee4..22ce19a7e 100644 --- a/__init__.py +++ b/__init__.py @@ -29,10 +29,6 @@ def meteo(): @app.route("/rapport/") def mongraphique(): return render_template("graphique.html") - -@app.route("/histogramme/") -def mongraphique(): - return render_template("histogramme.html") if __name__ == "__main__": app.run(debug=True) From 88ae4629c4fbe9b2f12c0abfeabce8d202b16755 Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 13:20:05 +0200 Subject: [PATCH 28/51] Update __init__.py --- __init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 22ce19a7e..edfc637d8 100644 --- a/__init__.py +++ b/__init__.py @@ -26,9 +26,13 @@ def meteo(): results.append({'Jour': dt_value, 'temp': temp_day_value}) return jsonify(results=results) +@app.route("/histogramme/") +def monhisto(): + return render_template("histogramme.html") + @app.route("/rapport/") def mongraphique(): - return render_template("graphique.html") + return render_template("histogramme.html") if __name__ == "__main__": app.run(debug=True) From 2b2e05c93bb539e9585a823f94a1a61a498d90ab Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 13:28:57 +0200 Subject: [PATCH 29/51] Create contact.html --- templates/contact.html | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 templates/contact.html diff --git a/templates/contact.html b/templates/contact.html new file mode 100644 index 000000000..8490cba62 --- /dev/null +++ b/templates/contact.html @@ -0,0 +1,9 @@ + + + + Contact + + +

Mon Graphique

+ + From 457eef38207043f9220bb7f6a55ff02a87524307 Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 13:31:12 +0200 Subject: [PATCH 30/51] Update contact.html --- templates/contact.html | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/templates/contact.html b/templates/contact.html index 8490cba62..9349e13c7 100644 --- a/templates/contact.html +++ b/templates/contact.html @@ -1,9 +1,27 @@ - - Contact - + + Contact + -

Mon Graphique

+ +

Formulaire de contact

+ +
+
+

+ +
+

+ +
+

+ +
+

+ + +
+ From 609b35e63e82a4fed9bf66fafee66d6937c89f4f Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 13:33:08 +0200 Subject: [PATCH 31/51] Update __init__.py --- __init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index edfc637d8..c25a26d7d 100644 --- a/__init__.py +++ b/__init__.py @@ -10,9 +10,10 @@ @app.route('/') def hello_world(): return render_template('hello.html') + @app.route("/contact/") def MaPremiereAPI(): - return "

Ma page de contact

" + return render_template("contact.html") @app.route('/tawarano/') def meteo(): From f5ead32c596bc57f14beb696bc1d5a82d56509a8 Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 13:35:16 +0200 Subject: [PATCH 32/51] Update contact.html --- templates/contact.html | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/templates/contact.html b/templates/contact.html index 9349e13c7..cab4d10f5 100644 --- a/templates/contact.html +++ b/templates/contact.html @@ -1,13 +1,13 @@ - Contact + Formulaire de contact

Formulaire de contact

-
+


@@ -20,8 +20,35 @@

Formulaire de contact




- +
+

+ + + From a3cad9676f04621c72fff4fa6e21ae785b33cbf7 Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 13:40:49 +0200 Subject: [PATCH 33/51] Update contact.html --- templates/contact.html | 107 +++++++++++++++++++++++++++++------------ 1 file changed, 77 insertions(+), 30 deletions(-) diff --git a/templates/contact.html b/templates/contact.html index cab4d10f5..d4b91043a 100644 --- a/templates/contact.html +++ b/templates/contact.html @@ -1,13 +1,87 @@ - Formulaire de contact + Contact +

Formulaire de contact

-
+


@@ -20,35 +94,8 @@

Formulaire de contact




- +
-

- - - From 50b4ea318ac7862aa425e75c773323b4d6196a75 Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 13:48:15 +0200 Subject: [PATCH 34/51] Create commits.html --- templates/commits.html | 48 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 templates/commits.html diff --git a/templates/commits.html b/templates/commits.html new file mode 100644 index 000000000..38eadac46 --- /dev/null +++ b/templates/commits.html @@ -0,0 +1,48 @@ + + + + + Commits + + + +

Répartition des commits par minute (0–59)

+

Source: API GitHub → commit.author.date. Chaque barre = nombre de commits dont la minute correspond.

+
+ + + + From 2c7a62cc41b6df60be6ee9d95cb49d5e707a6eef Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 13:49:00 +0200 Subject: [PATCH 35/51] Update __init__.py --- __init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/__init__.py b/__init__.py index c25a26d7d..c6e10a000 100644 --- a/__init__.py +++ b/__init__.py @@ -34,6 +34,12 @@ def monhisto(): @app.route("/rapport/") def mongraphique(): return render_template("histogramme.html") + +@app.route('/extract-minutes/') +def extract_minutes(date_string): + date_object = datetime.strptime(date_string, '%Y-%m-%dT%H:%M:%SZ') + minutes = date_object.minute + return jsonify({'minutes': minutes}) if __name__ == "__main__": app.run(debug=True) From 9ae561a5d5b0439f9c992a0b8678d01318e11afc Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 13:49:52 +0200 Subject: [PATCH 36/51] Update __init__.py --- __init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/__init__.py b/__init__.py index c6e10a000..ec0f5e65a 100644 --- a/__init__.py +++ b/__init__.py @@ -40,6 +40,10 @@ def extract_minutes(date_string): date_object = datetime.strptime(date_string, '%Y-%m-%dT%H:%M:%SZ') minutes = date_object.minute return jsonify({'minutes': minutes}) + +@app.route('/commits/') +def commits_page(): + return render_template('commits.html') if __name__ == "__main__": app.run(debug=True) From d7ad8808e57a37f3d59762666341b0c0ade699cf Mon Sep 17 00:00:00 2001 From: Angel <74504015+Gigique@users.noreply.github.com> Date: Fri, 10 Oct 2025 13:59:14 +0200 Subject: [PATCH 37/51] Update commits.html --- templates/commits.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/commits.html b/templates/commits.html index 38eadac46..90ffa1ce0 100644 --- a/templates/commits.html +++ b/templates/commits.html @@ -2,12 +2,16 @@ - Commits + Commits par minute +

Répartition des commits par minute (0–59)

-

Source: API GitHub → commit.author.date. Chaque barre = nombre de commits dont la minute correspond.