Auteur/autrice : admin0

  • Activité documentaire Internet

    Télécharger le document word, et compléter le à l’aide du cours papier

  • Accès WordPress — 2NDE3P1

    Adresse de connexion : https://fulgence-bienvenue.fr/wp-admin/

    ÉlèveIdentifiantMot de passe
    ABDELHAFIDH Iyada_iyadiyad
    ABER Louisa_louislouis
    ARNOULD Loukasa_loukasloukas
    BAHUAUD Flavieb_flavieflavie
    BENMEKHBI Milinab_milinamilina
    BIRON Oscarb_oscaroscar
    BOGA Yannb_yannyann
    BOSCHER Corentinb_corentincorentin
    BOUÉ Adèleb_adeleadele
    BOURNIER Lénab_lenalena
    COLLET Juliec_juliejulie
    FOESSEL-CHIEFARE Alekf_alekalek
    GANNE Elfieg_elfieelfie
    GICQUEL Nohang_nohannohan
    GONCALVES Mattg_mattmatt
    LECHLEIDER Arthurl_arthurarthur
    LORINQUER Yolanl_yolanyolan

    Consigne : ne pas communiquer son accès et se déconnecter après chaque utilisation.

  • CardioMove: simulation sons et lumière

    Etape 1 : changement son en fonction de la vitesse

    Appuie sur BP1 pour accélérer

    BP2 pour ralentire et reculer

    Code Arduino

    int buzzer = 3;

    int BP1 = 2; // augmente le niveau
    int BP2 = 4; // diminue le niveau

    int niveau = 0; // de 0 à 9

    int frequences[10] = {
    150, 220, 300, 400, 500,
    650, 800, 1000, 1300, 1600
    };

    void setup() {
    pinMode(buzzer, OUTPUT);

    pinMode(BP1, INPUT_PULLUP);
    pinMode(BP2, INPUT_PULLUP);
    }

    void loop() {

    if (digitalRead(BP1) == LOW) {
    niveau++;

    if (niveau > 9) {
      niveau = 9;
    }
    
    delay(250);

    }

    if (digitalRead(BP2) == LOW) {
    niveau–;

    if (niveau < 0) {
      niveau = 0;
    }
    
    delay(250);

    }

    if (niveau == 0) {
    noTone(buzzer);
    } else {
    tone(buzzer, frequences[niveau]);
    }
    }

  • Mots de passe PAC

    sim_idlabelrolepasswordapi_token
    defaultADMINadmin5njbmEKqLqe4b8394264cb074bbc7b4a4902677581e07c61edc848c4c7ed
    eleve01ELEVE01studentmWphvci7P307d2c641ab02bf918098a28197614d29e6b771c70a2572c7
    eleve02ELEVE02studentCAcJnUnf4Se6be08d289a6f99290109a6942c56b1ac5f1edf94b957fd7
    eleve03ELEVE03studentJur9QJdsFDcc5fd0fe1c9f8f86fa6b7fc05f9127d4d77ce03869d78dab
    eleve04ELEVE04student6DcZGtr2Xu022fd9bfe706ada0a52f8ce151f242c25acdd3a2f9f42e6a
    eleve05ELEVE05studentsdYcZoSewCd3777b7ae09a2022078ca7c832360dfe71d4aab29e40b675
    eleve06ELEVE06studentLhXPz2PC5x62d13086e91430f88006cb7b45f3cc47e42c079639eba926
    eleve07ELEVE07studentCMsQ6f9bTHe54f3be163919a4b92496356fb170884f34aa8f35f6d404f
    eleve08ELEVE08studentwNYEMQAVNZ9c18d0e1c6b3bc3a11d8c249b677786344dc2c95443b57e5
    eleve09ELEVE09studentmi2CJ9tqxt2bd8edfa2b938fa871afa20eb0b6203d9720c64eac442dd3
    eleve10ELEVE10studentZZKcQeTPbr0075073aa5c93c2a4c3cb73fedd6fd9f5f05fd618bc43a23
  • Controle de la PAC Requettes http avec curl en ligne de commande

    Accès web

    Voir sa PAC dans le navigateur

    Ouvrir :

    https://proxy-automate.latelier22.fr/pac.php?sim=eleveXX

    Exemple :

    https://proxy-automate.latelier22.fr/pac.php?sim=eleve03

    Se connecter pour piloter sa PAC

    Lien vers les mots de passe et les tokens (jetons pour connexion API)
    https://www.fulgence-bienvenue.fr/2026/05/11/mots-de-passe-pac/

    Ouvrir :

    https://proxy-automate.latelier22.fr/login.php?sim=eleveXX&redirect=/pac.php?sim=eleveXX

    Exemple :

    https://proxy-automate.latelier22.fr/login.php?sim=eleve03&redirect=/pac.php?sim=eleve03

    Après connexion, l’élève revient sur sa PAC.

    Lire l’état brut en JSON

    Ouvrir :

    https://proxy-automate.latelier22.fr/api.php?sim=eleveXX

    Commandes curl Windows

    Remplacer :

    • eleveXX par votre identifiant
    • TOKEN_ELEVE_XX par votre token

    Lire l’état

    curl "https://proxy-automate.latelier22.fr/api.php?sim=eleveXX"

    START

    curl -X POST "https://proxy-automate.latelier22.fr/control.php" -H "Content-Type: application/x-www-form-urlencoded" -H "X-Api-Token: TOKEN_ELEVE_XX" -d "action=start&sim=eleveXX"

    STOP

    curl -X POST "https://proxy-automate.latelier22.fr/control.php" -H "Content-Type: application/x-www-form-urlencoded" -H "X-Api-Token: TOKEN_ELEVE_XX" -d "action=stop&sim=eleveXX"

    Consigne +

    curl -X POST "https://proxy-automate.latelier22.fr/control.php" -H "Content-Type: application/x-www-form-urlencoded" -H "X-Api-Token: TOKEN_ELEVE_XX" -d "action=sp_plus&sim=eleveXX"

    Consigne –

    curl -X POST "https://proxy-automate.latelier22.fr/control.php" -H "Content-Type: application/x-www-form-urlencoded" -H "X-Api-Token: TOKEN_ELEVE_XX" -d "action=sp_minus&sim=eleveXX"

    Mettre une consigne directe à 22.5

    curl -X POST "https://proxy-automate.latelier22.fr/control.php" -H "Content-Type: application/x-www-form-urlencoded" -H "X-Api-Token: TOKEN_ELEVE_XX" -d "action=set_setpoint&setpoint=22.5&sim=eleveXX"

    Mettre la température ambiante à 18

    curl -X POST "https://proxy-automate.latelier22.fr/control.php" -H "Content-Type: application/x-www-form-urlencoded" -H "X-Api-Token: TOKEN_ELEVE_XX" -d "action=set_ambient&ambient_temp=18&sim=eleveXX"

    RESET

    curl -X POST "https://proxy-automate.latelier22.fr/control.php" -H "Content-Type: application/x-www-form-urlencoded" -H "X-Api-Token: TOKEN_ELEVE_XX" -d "action=reset&sim=eleveXX"

    Exemple réel pour eleve10

    Lire

    curl "https://proxy-automate.latelier22.fr/api.php?sim=eleve10"

    START

    curl -X POST "https://proxy-automate.latelier22.fr/control.php" -H "Content-Type: application/x-www-form-urlencoded" -H "X-Api-Token: 0075073aa5c93c2a4c3cb73fedd6fd9f5f05fd618bc43a23" -d "action=start&sim=eleve10"

    STOP

    curl -X POST "https://proxy-automate.latelier22.fr/control.php" -H "Content-Type: application/x-www-form-urlencoded" -H "X-Api-Token: 0075073aa5c93c2a4c3cb73fedd6fd9f5f05fd618bc43a23" -d "action=stop&sim=eleve10"

    RESET

    curl -X POST "https://proxy-automate.latelier22.fr/control.php" -H "Content-Type: application/x-www-form-urlencoded" -H "X-Api-Token: 0075073aa5c93c2a4c3cb73fedd6fd9f5f05fd618bc43a23" -d "action=reset&sim=eleve10"

    A faire

    Modifier votre application mobile

    Ajouter 2 boutons PLUS et MOINS pour augmenter / diminuer la consigne de température de la PAC

    il faudra ajouter votre token, sinon vous ne serez pas autorisé à commander la PAC à distance….

  • Tuto app inventor / arduino

    App Inventor — LED Bluetooth — anglais

    1. Elements à mettre et à nommer

    Dans User Interface

    Élément à glisserRenommer enText
    ListPickerListPicker_BTConnect Bluetooth
    ButtonButton_ONON
    ButtonButton_OFFOFF
    LabelLabel_StatusNot connected

    Dans Connectivity

    Élément à glisserRenommer en
    BluetoothClientBluetoothClient1

    2. Blocks

    Cliquer sur Blocks.


    3. Bloc connexion : liste Bluetooth

    Cliquer sur ListPicker_BT.

    Prendre :

    when ListPicker_BT.BeforePicking

    Ajouter :

    set ListPicker_BT.Elements to BluetoothClient1.AddressesAndNames

    Bloc complet :

    when ListPicker_BT.BeforePicking
    do set ListPicker_BT.Elements to BluetoothClient1.AddressesAndNames

    4. Bloc connexion : choisir HC-05

    Cliquer sur ListPicker_BT.

    Prendre :

    when ListPicker_BT.AfterPicking

    Ajouter :

    call BluetoothClient1.Connect address ListPicker_BT.Selection

    Ajouter :

    set Label_Status.Text to "Connected"

    Bloc complet :

    when ListPicker_BT.AfterPicking
    do call BluetoothClient1.Connect address ListPicker_BT.Selection
    set Label_Status.Text to "Connected"

    5. Bloc bouton ON

    Cliquer sur Button_ON.

    Prendre :

    when Button_ON.Click

    Ajouter :

    if BluetoothClient1.IsConnected
    then call BluetoothClient1.SendText text "1"

    Bloc complet :

    when Button_ON.Click
    do if BluetoothClient1.IsConnected
    then call BluetoothClient1.SendText text "1"

    6. Bloc bouton OFF

    Cliquer sur Button_OFF.

    Prendre :

    when Button_OFF.Click

    Ajouter :

    if BluetoothClient1.IsConnected
    then call BluetoothClient1.SendText text "0"

    Bloc complet :

    when Button_OFF.Click
    do if BluetoothClient1.IsConnected
    then call BluetoothClient1.SendText text "0"

    7. Résultat

    ON  → envoie 1 → LED allumée
    OFF → envoie 0 → LED éteinte