{"id":21029501,"url":"https://github.com/lostsh/hen-temp","last_synced_at":"2025-10-29T14:02:58.875Z","repository":{"id":138697448,"uuid":"331912635","full_name":"lostsh/hen-temp","owner":"lostsh","description":"Node MCU based IoT Hen Temperature \u0026 Humidity remote monitor","archived":false,"fork":false,"pushed_at":"2021-01-27T15:38:19.000Z","size":339,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T11:09:05.690Z","etag":null,"topics":["animals","arduino","chicken","dht11","environment","humidity","humidity-monitoring","humidity-sensor","iot","node-mcu","pets","temperature","temperature-monitoring","temperature-sensor"],"latest_commit_sha":null,"homepage":"https://lostsh.github.io/hen-temp/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lostsh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-22T10:29:39.000Z","updated_at":"2024-01-23T14:58:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"fe6aef58-ade3-4419-abba-4824cd86540b","html_url":"https://github.com/lostsh/hen-temp","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostsh%2Fhen-temp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostsh%2Fhen-temp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostsh%2Fhen-temp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostsh%2Fhen-temp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lostsh","download_url":"https://codeload.github.com/lostsh/hen-temp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243466985,"owners_count":20295309,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["animals","arduino","chicken","dht11","environment","humidity","humidity-monitoring","humidity-sensor","iot","node-mcu","pets","temperature","temperature-monitoring","temperature-sensor"],"created_at":"2024-11-19T12:12:55.595Z","updated_at":"2025-10-29T14:02:58.870Z","avatar_url":"https://github.com/lostsh.png","language":"JavaScript","readme":"# Hen Project\n\n## Site web\nAffiche simplement les donées contenues dans le fichier `data.csv` avec un sympatique script `js`\n\n## NodeMCU\nRécupère les donées atmosphériques, et les envoie periodiquement sur github via une requette http\n\n## Action\n**Pour récuperer les donées, ici j'utilise directement github Actions, avec un tache qui reçoie les requettes par une requette HTTP**\n\nCréation d'un workflow github pour récuperer les requettes : \n\n- Créer un Token\n- Créer un workflow, par exemple celui ci :\n```yml\nname: Manual workflow\n\n# Controls when the action will run. Workflow runs when manually triggered using the UI\n# or API.\non:\n  workflow_dispatch:\n    # Inputs the workflow accepts.\n    inputs:\n      name:\n        # Friendly description to be shown in the UI instead of 'name'\n        description: 'Person to greet'\n        # Default value if no value is explicitly provided\n        default: 'World'\n        # Input has to be provided for the workflow to run\n        required: true\n\n# A workflow run is made up of one or more jobs that can run sequentially or in parallel\njobs:\n  # This workflow contains a single job called \"greet\"\n  greet:\n    # The type of runner that the job will run on\n    runs-on: ubuntu-latest\n\n    # Steps represent a sequence of tasks that will be executed as part of the job\n    steps:\n    # Runs a single command using the runners shell\n    - name: Send greeting\n      run: echo \"Hello ${{ github.event.inputs.name }}\"\n    \n    - name: Print Hello \n      run: echo Hello world\n```\n\n- Envoyer une requette `HTTP` pour faire tourner la tache :\n    - Remplacez:\n        - le [token] par votre token personnel\n        - `lostsh` -\u003e votre nom d'utilisateur\n        - `node-time` -\u003e le nom de votre repos\n        - `manual.yml` -\u003e le nom du fichier yml de votre tache\n```bash\ncurl \\\n-X POST \\\n-H \"Accept: application/vnd.github.v3+json\" \\\n-H \"Authorization: token [token]\" \\\nhttps://api.github.com/repos/lostsh/node-time/actions/workflows/manual.yml/dispatches \\\n-d '{\"ref\":\"master\", \"inputs\":{\"name\":\"OMG IT WORKS\"}}'\n```\n\n### Pour envoyer une requette\nPour envoyer une requette a la github Action qui se trouve chez github api, le programme embarqué nécécite un fichier `secret.h` placé dans le même dossier que `nodemcu.ino` contenant, le *token* ainsi que les informations relatives au wifi.\n\nContenu du fichier :\n\n```c\n#define TOKEN \"40XXXXXXXXXX1c20dfbaaaXXXXXXXXXXhdd7XXXX\"\n\n#ifndef STASSID\n#define STASSID \"[nom de votre wifi]\"\n#define STAPSK  \"[mot de passe de votre wifi]\"\n#endif\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostsh%2Fhen-temp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flostsh%2Fhen-temp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostsh%2Fhen-temp/lists"}