# In der Lage sein, eine Variable in HTTP-Anfrage zu injizieren + Gerät zu steuern

**URL:** <https://community.gladysassistant.com/t/etre-capable-dinjecter-une-variable-dans-requete-http-controler-un-appareil/7045>\
**Category:** Demandes livrées\
**Tags:** feature-integration, scene, scene-action\
**Created:** [9. März 2022 um 18:14 UTC](https://community.gladysassistant.com/t/etre-capable-dinjecter-une-variable-dans-requete-http-controler-un-appareil/7045 "2022-03-09T18:14:03Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [23. Mai 2022 um 22:32 UTC](https://community.gladysassistant.com/t/etre-capable-dinjecter-une-variable-dans-requete-http-controler-un-appareil/7045/22 "2022-05-23T22:32:10Z")

</div>

Es wäre auch gut, das Problem mit den Variablen in den Abfragen beheben zu können

> [@Neues Video: Gladys Assistant bei Ihnen zu Hause #5, Cyril und sein morgendlicher Kaffee dank Gladys!](https://community.gladysassistant.com/t/nouvelle-video-gladys-assistant-chez-vous-5-cyril-et-son-cafe-pret-tous-les-matins-grace-a-gladys/7183/27):
>
> Merci à vous deux pour cette super vidéo claire et bien documentée, elle apporte encore de nouveaux horizons, bravo !

> [@Will\_71](#):
>
> @cicoub13, ich habe versucht, deine Szene für das Senden des Wetters mit der HTTP-Anfrage an die OpenWeather-API nachzubilden. Cool, ich habe gelernt, dass Gladys die Möglichkeit hat, Variablen automatisch aus den JSON-Rückgaben zu erstellen.  
> Aber hast du Probleme, wenn du die Temperaturvariablen min und max lesen möchtest?
> 
> Denn nach dem Speichern der Szene werden die \_min und \_max jeder Variable entfernt
> 
> ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/a/af4f196a7978daa7136ea214d9e0dc53b9562729.png)
> 
> Trotzdem erscheinen diese Variablen in der Liste
> 
> ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/b/bebbea0cfe4c1d87519ef44c42cd70995571b874.png)
> 
> Daher erhalte ich, wenn ich die Nachricht erhalte, stattdessen die Variable data.main.temp, die nicht den min und max entspricht  
> ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/5/56fd06092b4442627d96b682abbd12cce0676d89.png)

@cicoub13 hat einen PR vorgeschlagen, aber ich weiß nicht, ob er seine Tests abgeschlossen hat

> <https://github.com/GladysAssistant/Gladys/pull/1504>
>
> Fix #1503
> 
> \### Pull Request check-list
> 
> To ensure your Pull Request can be a…ccepted as fast as possible, make sure to review and check all of these items:
> 
> \- \[x\] If your changes affects code, did your write the tests?
> \- \[x\] Are tests passing? (\`npm test\` on both front/server)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[x\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[x\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to \[the community\](https://community.gladysassistant.com/) for testing before merging.
> \- \[x\] If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)
> \- \[x\] If you are adding a new features/services which needs explanation, did you modify the user documentation? See \[the GitHub repo\](https://github.com/GladysAssistant/v4-website) and the \[website\](https://gladysassistant.com).
> \- \[x\] Did you add fake requests data for the demo mode (\`front/src/config/demo.js\`) so that the demo website is working without a backend? (if needed) See \[https://demo.gladysassistant.com\](https://demo.gladysassistant.com).
> 
> NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
> 
> \### Description of change
> 
> Please provide a description of the change here. It's always best with screenshots, so don't hesitate to add some!

---

_[View the full topic](https://community.gladysassistant.com/t/etre-capable-dinjecter-une-variable-dans-requete-http-controler-un-appareil/7045)._
