# \[App\]\[Pro\] Micro Web Server

**URL:** <https://community.homey.app/t/app-pro-micro-web-server/26565>\
**Category:** Apps\
**Tags:** app, official, tools\
**Created:** [February 29, 2020, 4:12pm UTC](https://community.homey.app/t/app-pro-micro-web-server/26565 "2020-02-29T16:12:06Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![Jolink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jolink/32/3559_2.png) [@Jolink](https://community.homey.app/u/Jolink)\
**Post date:** [March 2, 2021, 1:47pm UTC](https://community.homey.app/t/app-pro-micro-web-server/26565/62 "2021-03-02T13:47:36Z")

</div>

Hi,

I recently updated to Homey V5 and noticed that soundboard in combination with Sonos Play:1 isn’t working anymore. I use it the play an mp3 (doorbell, alarm, etc.). I was directed to Micro Web Server and it is fulfilling my need, only one thing isn’t working as before -  
_there is quite a delay before the mp3 is played over my Sonos speaker_ -  
up to 8 or 9 seconds after the ‘Then’ is started and a green ✅ is placed before the card with the ‘Play an URL’ action. The mp3 file is only 30Kb.  
Anyone an idea where to look for improvement or root cause of the delay?

---

<div class="post-metadata">

**Author:** ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)\
**Post date:** [March 2, 2021, 2:00pm UTC](https://community.homey.app/t/app-pro-micro-web-server/26565/63 "2021-03-02T14:00:12Z")

</div>

> [@Jolink](#):
>
> 8 or 9 seconds after the ‘Then’

That’s quite a lot. I use it myself in combination with the Chromecast app for a doorbell thing. But there is no delay at all. Maybe it is related to the recent Sonos app update?

PS: I do not have any Sonos myself.

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [March 2, 2021, 3:15pm UTC](https://community.homey.app/t/app-pro-micro-web-server/26565/64 "2021-03-02T15:15:41Z")

</div>

Just tested this with my SonosPlaybar, delay is not more then 2 seconds (doorbel sound)

---

<div class="post-metadata">

**Author:** ![Jolink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jolink/32/3559_2.png) [@Jolink](https://community.homey.app/u/Jolink)\
**Post date:** [March 24, 2021, 9:46am UTC](https://community.homey.app/t/app-pro-micro-web-server/26565/65 "2021-03-24T09:46:26Z")

</div>

Is there a way to periodically check automated whether the FTP server in online and if not start it? Could not find an action card for that…

---

<div class="post-metadata">

**Author:** ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)\
**Post date:** [March 24, 2021, 10:18am UTC](https://community.homey.app/t/app-pro-micro-web-server/26565/66 "2021-03-24T10:18:59Z")

</div>

Hi @Jolink,  
well, the FTP server is not meant to be running automatically. It is not started automatically if the app or Homey restarts. But I guess I could add such an option if this is something needed. What’s your usecase?

---

<div class="post-metadata">

**Author:** ![Jolink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jolink/32/3559_2.png) [@Jolink](https://community.homey.app/u/Jolink)\
**Post date:** [March 24, 2021, 2:37pm UTC](https://community.homey.app/t/app-pro-micro-web-server/26565/67 "2021-03-24T14:37:56Z")

</div>

I saw that each time after a Homey update the FTP server stopped running. My conclusion was that in order for Sonos to reach the mp3 file on my Homey the ftp server needs to run. Thinking this through once more, I doubt that / don’t think it needs to run, only if you want to transfer a file to Homey. Once locally stored on Homey, the file can be reached even if the ftp server is down.  
Is that correct? If so, no need anymore to run the FTP server constantly I guess…

---

<div class="post-metadata">

**Author:** ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)\
**Post date:** [March 24, 2021, 2:45pm UTC](https://community.homey.app/t/app-pro-micro-web-server/26565/68 "2021-03-24T14:45:43Z")

</div>

> [@Jolink](#):
>
> Once locally stored on Homey, the file can be reached even if the ftp server is down.  
> Is that correct?

Yeah, the files should be reachable through the http server of course. FTP is currently meant for administration of the content only.

However, if more people would be interrested in an option to have ftp permanently enabled as well, I will of course consider giving that as option through the app settings page.

---

<div class="post-metadata">

**Author:** ![Jolink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jolink/32/3559_2.png) [@Jolink](https://community.homey.app/u/Jolink)\
**Post date:** [March 24, 2021, 3:26pm UTC](https://community.homey.app/t/app-pro-micro-web-server/26565/69 "2021-03-24T15:26:11Z")

</div>

Ok, thnx for the confirmation! No need anymore for my earlier request…

---

<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:** [March 24, 2021, 8:48pm UTC](https://community.homey.app/t/app-pro-micro-web-server/26565/70 "2021-03-24T20:48:29Z")

</div>

@Shakesbeard May I suggest to add a login when FTP service can be set to “always run”? Or is it overkill? It is and stays local, but… IDK how much extra work is involved for that.  
Just an idea, my Homey almost never reboots so for me it is fine just how it is.  
And a great app btw🍻

---

<div class="post-metadata">

**Author:** ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)\
**Post date:** [May 30, 2021, 10:25pm UTC](https://community.homey.app/t/app-pro-micro-web-server/26565/71 "2021-05-30T22:25:11Z")

</div>

> [@Shakesbeard](#):
>
> ## v1.5.0
> 
> - Added: App setting to optionally auto launch the ftp service on app startup

@Peter_Kawa @Jolink and whomever might need that feature.

---

<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:** [May 30, 2021, 11:31pm UTC](https://community.homey.app/t/app-pro-micro-web-server/26565/72 "2021-05-30T23:31:40Z")

</div>

Many thanks, Thomas!

---

<div class="post-metadata">

**Author:** ![CB83](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cb83/32/30125_2.png) [@CB83](https://community.homey.app/u/CB83)\
**Post date:** [December 11, 2021, 10:53am UTC](https://community.homey.app/t/app-pro-micro-web-server/26565/73 "2021-12-11T10:53:19Z")

</div>

Used this for playing Christmas songs outdoors last year.  
But don’t get it to work now.

Has there been any changes?

Using the cast a website with [http://192.168.x0.xxx:5080/1.mp3](http://192.168.x0.xxx:5080/1.mp3)

Any ideas why it’s not working?

My Google speaker mini is showing red dots

---

<div class="post-metadata">

**Author:** ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)\
**Post date:** [December 11, 2021, 11:08am UTC](https://community.homey.app/t/app-pro-micro-web-server/26565/74 "2021-12-11T11:08:43Z")

</div>

> [@CB83](#):
>
> Has there been any changes?

No changes on this app. Cannot tell about the chromecast app though.

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [December 11, 2021, 11:35am UTC](https://community.homey.app/t/app-pro-micro-web-server/26565/75 "2021-12-11T11:35:16Z")

</div>

[https://homey.app/f/SwihFS](https://homey.app/f/SwihFS)  
Still works fine, maybe your Homey needs a PTP.

---

<div class="post-metadata">

**Author:** ![CB83](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cb83/32/30125_2.png) [@CB83](https://community.homey.app/u/CB83)\
**Post date:** [December 11, 2021, 6:44pm UTC](https://community.homey.app/t/app-pro-micro-web-server/26565/76 "2021-12-11T18:44:30Z")

</div>

Got it working.  
For some reason, it worked after resetting the Google mini.

Thanks for the answers 👌

---

<div class="post-metadata">

**Author:** ![andreleo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andreleo/32/48219_2.png) [@andreleo](https://community.homey.app/u/andreleo)\
**Post date:** [January 4, 2022, 4:13pm UTC](https://community.homey.app/t/app-pro-micro-web-server/26565/77 "2022-01-04T16:13:29Z")

</div>

Hi, Looks like I can not customise the response of the trigger request. Is it possible to support that?

e.g. In “When” section I would like to create a card called “A WebTrigger was received temperature”, then in “Then” section there is a card called something like “A WebTrigger responds [tag:temperature]”.

In browser, GET url [http://homey-abc:5080/webTrigger?name=temperature](http://homey-abc:5080/webTrigger?name=temperature) will receive response text “21.3” which comes from a temperature sensor.

Is this feasible?

Thanks.

---

<div class="post-metadata">

**Author:** ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)\
**Post date:** [January 4, 2022, 4:29pm UTC](https://community.homey.app/t/app-pro-micro-web-server/26565/78 "2022-01-04T16:29:25Z")

</div>

> [@andreleo](#):
>
> Hi, Looks like I can not customise the response of the trigger request. Is it possible to support that?

It is not possible to get it to respond a value. This was never the intention of this feature. It mere is a lightweight webhook receiver. I am using it with Flic Hub for example.

But I am not planning to extend that feature. If you need more feature rich webhooks there are a few apps out there which specilize on that. Might be worth looking around the app store.

This prolly is not the answer you wanted, but I do not see the benefit in adding features which can be covered by already existing apps.

---

<div class="post-metadata">

**Author:** ![PV2134](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pv2134/32/16433_2.png) [@PV2134](https://community.homey.app/u/PV2134)\
**Post date:** [May 10, 2022, 3:32pm UTC](https://community.homey.app/t/app-pro-micro-web-server/26565/79 "2022-05-10T15:32:31Z")

</div>

Because I have quite old Axis camera’s that don’t have app (incl. ONVIF) sensor capabilities, I’m trying to define triggers as a separate event in the camera that will send a HTTP or TCP notification to Homey based on motion detection or PIR activation. I’ve installed the Micro Webserver app that is able to capture these http notifications. The cameras and Homey are in the same LAN.

So far I tried the following in the camera configuration:

TCP event server

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/8/b8b22fd27211a2ca68f3f1a5b6ab3cff298413e6.png)

HTTP Event server:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/8/a85132e4524c703a8d4b8dca82f2c43566a54f36.png)

Testing the connection results in “connection OK” when using TCP, but “Connection failed” in the HTTP event server. The app explanation does not show a requirement to use a username or password.

Event trigger (partly):

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/d/dddb7bbe6bc958cb0ad7070bdc1e906458e7fe24.png)

The logs of the camera used for the http notification show:

```auto
<CRITICAL> […] shttpclient[26334]: Failed opening connection to server.
<INFO> […]httpnotifywrapper: shttpclient failed with status '255', argument ' -q 0 http://homey-xxxxxxxxxxxxxxxxxxx:5080/webTrigger?name=httptest&data1=2022'

```

There is nothing in the log about the TCP notification.

It’s the first time I’m working with webhooks of this kind. On the Homey side I’ve created 2 flows that are triggered by a received webhook containing the name httptest and tcptest, but they’re not activated by these messages. I’m not even sure that the notifications are captured by Homey.

Is there any option to see what messages are received by Homey on port 5080? Are there any other (obvious) mistakes in my attempts?

Peter

---

<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:** [May 10, 2022, 3:38pm UTC](https://community.homey.app/t/app-pro-micro-web-server/26565/80 "2022-05-10T15:38:02Z")

</div>

> [@PV2134](#):
>
> `http://homey-xxxxxxxxxxxxxxxxxxx:5080/webTrigger?name=httptest&data1=2022`

First I think you should replace homey-xxxx with Homey’s IP 192.168.10.100

2nd, did you check the flow Logics card "received webhook / received http event?

You can send a webhook to Homey like this (web server app isn’t needed):  
`http://192.168.10.100/api/manager/logic/webhook/httptest?tag=2022`  
_It should be sent as GET request, otherwise the [http requests](https://homey.app/a/com.internet/) app can be of use_

---

<div class="post-metadata">

**Author:** ![PV2134](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pv2134/32/16433_2.png) [@PV2134](https://community.homey.app/u/PV2134)\
**Post date:** [May 11, 2022, 7:42am UTC](https://community.homey.app/t/app-pro-micro-web-server/26565/81 "2022-05-11T07:42:44Z")

</div>

Thx Peter!

Turns out that using the IP in stead of the homey-[id] did the trick.

I read in a HA forum that Axis uses GET (not tried it myself). But unfortunately Axis has an annoying method of parsing the request. Axis places a “?” before the custom parameters, in this case  
[http://192.168.10.100/api/manager/logic/webhook/?httptest?tag=2022](http://192.168.10.100/api/manager/logic/webhook/?httptest?tag=2022). Off course I could also use the tag, but this requires an “unparser” in Homey for using the different variables.  
The way the Micro Web Server handles these webTriggers and the easiest for me and it also allows 5 tags. Moreover, the FTP solution of this app may become useful as well.

@Shakesbeard You might want to consider to add this to the app notes, including that the local Homey IP can (also) be used in the webTrigger.

Peter

[Previous page](https://community.homey.app/t/app-pro-micro-web-server/26565.md?page=3)

[Next page](https://community.homey.app/t/app-pro-micro-web-server/26565.md?page=5)
