# \[REQUEST\] manage timeline with flowcard

**URL:** <https://community.homey.app/t/request-manage-timeline-with-flowcard/41699>\
**Category:** Ideas & Suggestions\
**Created:** [January 24, 2021, 12:24pm UTC](https://community.homey.app/t/request-manage-timeline-with-flowcard/41699 "2021-01-24T12:24:15Z")\
**Posts on this page:** 20\
**Page:** 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:** [September 30, 2021, 8:01pm UTC](https://community.homey.app/t/request-manage-timeline-with-flowcard/41699/21 "2021-09-30T20:01:53Z")

</div>

How did you get te bearer token, Peter? @Peter_de_Vos

---

<div class="post-metadata">

**Author:** ![Peter\_de\_Vos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_de_vos/32/151925_2.png) [@Peter\_de\_Vos](https://community.homey.app/u/Peter_de_Vos)\
**Post date:** [September 30, 2021, 8:34pm UTC](https://community.homey.app/t/request-manage-timeline-with-flowcard/41699/22 "2021-09-30T20:34:53Z")

</div>

Just here in the app settings

 ![Screenshot_20210930-223328](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/a/0abae6648df31ccba23fedcf2ad7b76bacf6e3c9.jpeg)

---

<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:** [September 30, 2021, 8:36pm UTC](https://community.homey.app/t/request-manage-timeline-with-flowcard/41699/23 "2021-09-30T20:36:21Z")

</div>

Thanks, I know😁, but I’ve 2FA enabled, and I got an error.

 ![Screenshot_20210930-212036_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/1/c13acbc25030bac4e8717705454330e936ff806f.jpeg)

---

<div class="post-metadata">

**Author:** ![Peter\_de\_Vos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_de_vos/32/151925_2.png) [@Peter\_de\_Vos](https://community.homey.app/u/Peter_de_Vos)\
**Post date:** [September 30, 2021, 8:37pm UTC](https://community.homey.app/t/request-manage-timeline-with-flowcard/41699/24 "2021-09-30T20:37:58Z")

</div>

So uneanable it😀

---

<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:** [September 30, 2021, 8:38pm UTC](https://community.homey.app/t/request-manage-timeline-with-flowcard/41699/25 "2021-09-30T20:38:47Z")

</div>

Will do

---

<div class="post-metadata">

**Author:** ![Le\_Cactus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/le_cactus/32/9727_2.png) [@Le\_Cactus](https://community.homey.app/u/Le_Cactus)\
**Post date:** [September 30, 2021, 9:02pm UTC](https://community.homey.app/t/request-manage-timeline-with-flowcard/41699/26 "2021-09-30T21:02:24Z")

</div>

Weird…

Please restart the app and see if that fixes that problem. Does a ‘self-deleting-flow’ work?

---

<div class="post-metadata">

**Author:** ![Le\_Cactus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/le_cactus/32/9727_2.png) [@Le\_Cactus](https://community.homey.app/u/Le_Cactus)\
**Post date:** [September 30, 2021, 9:05pm UTC](https://community.homey.app/t/request-manage-timeline-with-flowcard/41699/27 "2021-09-30T21:05:37Z")

</div>

I’ll have a look at it, although I doubt that I can upload a new build… For now you can only disable 2FA I guess

---

<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:** [September 30, 2021, 9:13pm UTC](https://community.homey.app/t/request-manage-timeline-with-flowcard/41699/28 "2021-09-30T21:13:42Z")

</div>

Thanks,  
So I disabled 2FA, logged on, got a bearer token and restarted the app.  
I made a flow “delete messages older than 1 day”.  
It worked, but Homey got unrespinsive and the Timeline Manager got paused by Homey.  
Restarting both Homey app and Timeline app solved it for now.

And I’ve 2FA is enabled again after this.

> [@Le\_Cactus](#):
>
> Does a ‘self-deleting-flow’ work?

It works, but the notification won’t dissapear yet (set to 1min, now 5mins have passed)

> [@Peter\_de\_Vos](#):
>
> Only cant pick a category in the flowcard.

Category pick works here, but messages don’t disappear.

No hurries!

Cheers

---

<div class="post-metadata">

**Author:** ![Le\_Cactus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/le_cactus/32/9727_2.png) [@Le\_Cactus](https://community.homey.app/u/Le_Cactus)\
**Post date:** [September 30, 2021, 9:33pm UTC](https://community.homey.app/t/request-manage-timeline-with-flowcard/41699/29 "2021-09-30T21:33:48Z")

</div>

I’m afraid I made a bit of a design flaw… I don’t ‘save’ the token, just hold it in memory. Only the credentials are stored, not the token itself. So every time the app (or Homey) is restarted it needs to obtain a new token, but with 2FA enabled that will fail.

I’ll change that in the next version.

I never experienced Homey becoming unresponsive. I did experience that sometimes the deletion of flows wasn’t shown in the mobile app. After restarting the mobile at they were gone. The webapp does show the deletions immediately; I guess that does a pull, while the mobile app uses a websocket

---

<div class="post-metadata">

**Author:** ![Peter\_de\_Vos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_de_vos/32/151925_2.png) [@Peter\_de\_Vos](https://community.homey.app/u/Peter_de_Vos)\
**Post date:** [September 30, 2021, 9:53pm UTC](https://community.homey.app/t/request-manage-timeline-with-flowcard/41699/30 "2021-09-30T21:53:36Z")

</div>

The flow works

---

<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:** [October 1, 2021, 12:25am UTC](https://community.homey.app/t/request-manage-timeline-with-flowcard/41699/31 "2021-10-01T00:25:22Z")

</div>

Just fyi,  
This probably occurred when running the “remove msgs older than 1 day” flow

 ![Screenshot_20211001-022319_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/f/0fc096df04747395259aba0398981bfe6fb0a0cf.jpeg)

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [October 1, 2021, 5:25am UTC](https://community.homey.app/t/request-manage-timeline-with-flowcard/41699/32 "2021-10-01T05:25:03Z")

</div>

Perhaps I don’t understand the issue, but apps don’t require any credentials to be able to use the Web API. Only the correct permission (in `app.json`).

---

<div class="post-metadata">

**Author:** ![Le\_Cactus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/le_cactus/32/9727_2.png) [@Le\_Cactus](https://community.homey.app/u/Le_Cactus)\
**Post date:** [October 1, 2021, 8:45am UTC](https://community.homey.app/t/request-manage-timeline-with-flowcard/41699/33 "2021-10-01T08:45:10Z")

</div>

Hi,

I’m using the REST Api because otherwise I don’t seem to have the right persmission to do certain stuff. My app.json includes the homey:manager:api permission, but I can’t get it to work, but maybe I’m missing something, the documentation isn’t what one hoped for.

> this.homey.api.get(‘[http://127.0.0.1/api/manager/notifications/owner](http://127.0.0.1/api/manager/notifications/owner)’)

gives me an “missing\_permission” error, while

> ```
> var response = await fetch('https://' + cloudId + '.connect.athom.com/api/manager/notifications/owner', {
> method: 'GET',
> headers: { 'Authorization': 'Bearer ' + bearerToken }
> })
> 
> ```

gives me a a nice list. But that way I need the Bearer Token, and for that it needs the credentials.

If you know of a way to do it without the REST Api please let me know, that would make things much easier.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [October 1, 2021, 9:19am UTC](https://community.homey.app/t/request-manage-timeline-with-flowcard/41699/34 "2021-10-01T09:19:02Z")

</div>

> [@Le\_Cactus](#):
>
> If you know of a way to do it without the REST Api please let me know, that would make things much easier.

Apologies, it looks like Athom has decided that SDKv3 apps aren’t allowed to use the Web API “natively” anymore, which is still allowed for SDKv2 apps (like HomeyKit).

This is the code I’m using (in SDKv2):

```auto
const { HomeyAPI } = require('athom-api');
…
const api = await HomeyAPI.forCurrentUser();

```

---

<div class="post-metadata">

**Author:** ![Le\_Cactus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/le_cactus/32/9727_2.png) [@Le\_Cactus](https://community.homey.app/u/Le_Cactus)\
**Post date:** [October 1, 2021, 9:40am UTC](https://community.homey.app/t/request-manage-timeline-with-flowcard/41699/35 "2021-10-01T09:40:59Z")

</div>

Thanks. That’s too bad then!

After having a quick look I doubt that I will be able to get de 2FA working. Peter’s memory problem can undoubtedly be solved/prevented, but without 2FA working a lot of people can’t use it, of need to disable it every once in a while.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [October 1, 2021, 9:52am UTC](https://community.homey.app/t/request-manage-timeline-with-flowcard/41699/36 "2021-10-01T09:52:46Z")

</div>

Talking on Slack to the Athom devs, they seem to suggest that it should still work. I’ll let you know if we can solve the issue.

---

<div class="post-metadata">

**Author:** ![Le\_Cactus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/le_cactus/32/9727_2.png) [@Le\_Cactus](https://community.homey.app/u/Le_Cactus)\
**Post date:** [October 1, 2021, 10:12am UTC](https://community.homey.app/t/request-manage-timeline-with-flowcard/41699/37 "2021-10-01T10:12:12Z")

</div>

Thanks, I can really appreciate it!

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [October 1, 2021, 10:24am UTC](https://community.homey.app/t/request-manage-timeline-with-flowcard/41699/38 "2021-10-01T10:24:02Z")

</div>

I got the Web API working again from an SDKv3 app, but sadly, notifications are off-limits using it ☹

---

<div class="post-metadata">

**Author:** ![Undertaker](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/undertaker/32/53278_2.png) [@Undertaker](https://community.homey.app/u/Undertaker)\
**Post date:** [October 1, 2021, 12:49pm UTC](https://community.homey.app/t/request-manage-timeline-with-flowcard/41699/39 "2021-10-01T12:49:57Z")

</div>

Wouldn’t it be possible to make the app available in the Community Store?

---

<div class="post-metadata">

**Author:** ![Le\_Cactus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/le_cactus/32/9727_2.png) [@Le\_Cactus](https://community.homey.app/u/Le_Cactus)\
**Post date:** [October 1, 2021, 1:57pm UTC](https://community.homey.app/t/request-manage-timeline-with-flowcard/41699/40 "2021-10-01T13:57:49Z")

</div>

Hi Uwe,

That is of course a possibility, but as I am using API keys that can only be used for development purposes it doesn’t feel right.

I’ll wait for Athom to reply on my request for my own API keys. If they deny that request I might reconsider though. 😉

In the meantime I’ll look at the issues from both Peters.

[Previous page](https://community.homey.app/t/request-manage-timeline-with-flowcard/41699.md?page=1)

[Next page](https://community.homey.app/t/request-manage-timeline-with-flowcard/41699.md?page=3)
