# Simplify code api call syslog and option to send log to timeline

**URL:** <https://community.homey.app/t/simplify-code-api-call-syslog-and-option-to-send-log-to-timeline/89958>\
**Category:** Apps\
**Tags:** app\
**Created:** [September 22, 2023, 8:29am UTC](https://community.homey.app/t/simplify-code-api-call-syslog-and-option-to-send-log-to-timeline/89958 "2023-09-22T08:29:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheKos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thekos/32/33969_2.png) [@TheKos](https://community.homey.app/u/TheKos)\
**Post date:** [September 22, 2023, 8:29am UTC](https://community.homey.app/t/simplify-code-api-call-syslog-and-option-to-send-log-to-timeline/89958/1 "2023-09-22T08:29:21Z")

</div>

Finally got the simple syslog app working from within a script as follows

let sl = await Homey.apps.getApp({ id: ‘nl.nielsdeklerk.log/’ })  
sl.apiPut(‘addlog’, {“log”: “Test 1,2,3 4,5,6”})

This has 2 lines of code, I think it could be in one line, but have not figured out how.  
Any experienced api experts who know how to do this ?

Now the logging can be read in the syslog app, would it be possible to also log it to the timeline ?  
Thanks Kind regards  
Theo

---

<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:** [September 22, 2023, 8:37am UTC](https://community.homey.app/t/simplify-code-api-call-syslog-and-option-to-send-log-to-timeline/89958/2 "2023-09-22T08:37:46Z")

</div>

> [@TheKos](#):
>
> Any experienced api experts who know how to do this ?

Not sure what’s wrong with two lines, but this is a one-liner:

```auto
(await Homey.apps.getApp({ id: 'nl.nielsdeklerk.log/' })).apiPut('addlog', { 'log': 'Test 1,2,3 4,5,6'})

```

---

<div class="post-metadata">

**Author:** ![TheKos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thekos/32/33969_2.png) [@TheKos](https://community.homey.app/u/TheKos)\
**Post date:** [September 22, 2023, 12:00pm UTC](https://community.homey.app/t/simplify-code-api-call-syslog-and-option-to-send-log-to-timeline/89958/3 "2023-09-22T12:00:14Z")

</div>

> [@robertklep](#):
>
> `(await Homey.apps.getApp({ id: 'nl.nielsdeklerk.log/' })).apiPut('addlog', { 'log': 'Test 1,2,3 4,5,6'})`

Thanks works great

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [September 22, 2023, 2:52pm UTC](https://community.homey.app/t/simplify-code-api-call-syslog-and-option-to-send-log-to-timeline/89958/4 "2023-09-22T14:52:39Z")

</div>

Can a [@moderators](https://community.homey.app/groups/moderators) merge this into the Simple (sys) log topic?

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [September 22, 2023, 8:25pm UTC](https://community.homey.app/t/simplify-code-api-call-syslog-and-option-to-send-log-to-timeline/89958/5 "2023-09-22T20:25:55Z")

</div>

> [@TheKos](#):
>
> Now the logging can be read in the syslog app, would it be possible to also log it to the timeline ?

Im sure i can add this.  
Can you create a ticket for it? Thanks!

---

<div class="post-metadata">

**Author:** ![TheKos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thekos/32/33969_2.png) [@TheKos](https://community.homey.app/u/TheKos)\
**Post date:** [September 23, 2023, 6:10pm UTC](https://community.homey.app/t/simplify-code-api-call-syslog-and-option-to-send-log-to-timeline/89958/6 "2023-09-23T18:10:23Z")

</div>

Just did, thanks for the effort.

---

<div class="post-metadata">

**Author:** ![Anthony\_Clarke](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anthony_clarke/32/101325_2.png) [@Anthony\_Clarke](https://community.homey.app/u/Anthony_Clarke)\
**Post date:** [May 27, 2024, 11:38pm UTC](https://community.homey.app/t/simplify-code-api-call-syslog-and-option-to-send-log-to-timeline/89958/7 "2024-05-27T23:38:13Z")

</div>

Would someone advise from beginning to end how to set all this up? I’d really appreciate it. I want to see all activity from all devices and flows in a central place

---

<div class="post-metadata">

**Author:** ![ChrisG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chrisg/32/8825_2.png) [@ChrisG](https://community.homey.app/u/ChrisG)\
**Post date:** [May 28, 2024, 5:13am UTC](https://community.homey.app/t/simplify-code-api-call-syslog-and-option-to-send-log-to-timeline/89958/8 "2024-05-28T05:13:58Z")

</div>

Hi Anthony & @Arie_J_Godschalk

Actually, these already exist ([SimpleLogApp API for Homey-Developers](https://www.npmjs.com/package/homey-simplelog-api)) , I use them and it looks like this.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/7/176fa148f0a28c55b8763d764b3f3e6fd543f765.png)

Unfortunately, I have been waiting for more than a year for some corrections in the Simple(Sys)Log app.

So far without success…🙄…

Chris
