# JSON Fetch from Domoticz

**URL:** <https://community.homey.app/t/json-fetch-from-domoticz/129745>\
**Category:** Questions & Help\
**Tags:** homeyscript, domoticz\
**Created:** [February 4, 2025, 12:00pm UTC](https://community.homey.app/t/json-fetch-from-domoticz/129745 "2025-02-04T12:00:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [February 4, 2025, 12:29pm UTC](https://community.homey.app/t/json-fetch-from-domoticz/129745/2 "2025-02-04T12:29:46Z")

</div>

Maybe this is helpful (open these posts to view the shared scripts):

> [@Omlet Smart Automatic Chicken Coop Door: Automation using Homey Script](https://community.homey.app/t/omlet-smart-automatic-chicken-coop-door-automation-using-homey-script/115988):
>
> I faced the issue of not being able to control this door through automation since it is only controlled by Google Home normally, and since Google Home wont allow any sort of automation for device type “Door” for security reasons, we simply cannot open/close the door through flows or even Google Home routines, we are stuck with manually opening/closing the door, which kinda sucks. Luckily, Omlet provides an API (Open API 3.0) that we can use inside Homey Scripts to open/close the door and fetch …

> [@Homeyscript for bearer token](https://community.homey.app/t/homeyscript-for-bearer-token/47819/6):
>
> It looks like the issue is with fetch() behaving differently. Here’s a fixed version: // -------- o - Configure these parameters -------- o -------- o let email = 'REPLACEME' let password = 'REPLACEME' let client\_id = REPLACEME let client\_secret = 'REPLACEME' let redirect\_url = 'http://localhost' let cloudid = 'REPLACEME' // -------- o -------- o -------- o -------- o -------- o const between = function(str, strf, strt) { return str.split(strf).pop().split(strt)[0].trim(); } const auth…

I just used this search phrase:

 ![1000042682](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/7/f763f363d07d6c03a348ea6f0fee481d1ef6fd88.jpeg)

---

_[View the full topic](https://community.homey.app/t/json-fetch-from-domoticz/129745)._
