# Homey.ink on a tablet/desktop

**URL:** <https://community.homey.app/t/homey-ink-on-a-tablet-desktop/12443>\
**Category:** Developers\
**Tags:** app\
**Created:** [April 29, 2019, 3:55pm UTC](https://community.homey.app/t/homey-ink-on-a-tablet-desktop/12443 "2019-04-29T15:55:21Z")\
**Posts on this page:** 20\
**Page:** 14

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [May 14, 2019, 3:14pm UTC](https://community.homey.app/t/homey-ink-on-a-tablet-desktop/12443/266 "2019-05-14T15:14:45Z")

</div>

Yes, it would be possible to display the value on a tile in Homey Ink but since it’s a custom variable it will also require custom code to do this. I understand the need for this but I want to somehow try to make this as generic as possible so a solution for one will also work for others.

---

<div class="post-metadata">

**Author:** ![Eternity](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eternity/32/102113_2.png) [@Eternity](https://community.homey.app/u/Eternity)\
**Post date:** [May 14, 2019, 3:57pm UTC](https://community.homey.app/t/homey-ink-on-a-tablet-desktop/12443/267 "2019-05-14T15:57:49Z")

</div>

> [@DaneedeKruyff](#):
>
> I want to somehow try to make this as generic as possible so a solution for one will also work for others.

You are absolutely right!

---

<div class="post-metadata">

**Author:** ![Kalle\_Kronbeck](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kalle_kronbeck/32/13158_2.png) [@Kalle\_Kronbeck](https://community.homey.app/u/Kalle_Kronbeck)\
**Post date:** [May 14, 2019, 4:52pm UTC](https://community.homey.app/t/homey-ink-on-a-tablet-desktop/12443/268 "2019-05-14T16:52:55Z")

</div>

I got temperature, humidity and lux presented in one “device tile”.  
I also have power in W and kWh presented on “device tile”  
But as it works onw its only displaying the latest sensor in the script, lux for me right now.  
I would like it to toggle either for X seconds or by pressing the “device tile”

It seem like most of the devices has common Capabilities like:  
measure\_temperature  
measure\_humidity  
measure\_luminance  
alarm\_battery

I am no developer but I think adding “my code” for those sensors and just making them toggle could be a very good solution for most users.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/b/b77f4ff192c841a46b0fa2e77c034ec21e206847.jpeg)

---

<div class="post-metadata">

**Author:** ![Bulletcather](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bulletcather/32/13738_2.png) [@Bulletcather](https://community.homey.app/u/Bulletcather)\
**Post date:** [May 14, 2019, 4:58pm UTC](https://community.homey.app/t/homey-ink-on-a-tablet-desktop/12443/269 "2019-05-14T16:58:24Z")

</div>

Keep up the good work. I really like the kWh information in the tile.

---

<div class="post-metadata">

**Author:** ![Andre\_Prins](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andre_prins/32/10401_2.png) [@Andre\_Prins](https://community.homey.app/u/Andre_Prins)\
**Post date:** [May 14, 2019, 5:30pm UTC](https://community.homey.app/t/homey-ink-on-a-tablet-desktop/12443/270 "2019-05-14T17:30:48Z")

</div>

> [@Danny\_Mertens](#):
>
> Yep same issue for me
> 
> homey.ink.app.js:316 Uncaught (in promise) TypeError: Cannot read property ‘dateCreated’ of undefined  
> at renderInfoPanel (homey.ink.app.js:316)  
> at homey.ink.app.js:75

Out of nowhere it’s working again. Might it be something outside our environment that caused this? I didn’t download anything new today.

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [May 14, 2019, 6:43pm UTC](https://community.homey.app/t/homey-ink-on-a-tablet-desktop/12443/271 "2019-05-14T18:43:10Z")

</div>

Added multi language support, add `&lang=en` or `&lang=nl` to the url.

Example:  
[http://localhost:5000/?theme=web&lang=en&token=](http://localhost:5000/?theme=web&lang=en&token=)

If you want to add another language, copy any of the files here [https://github.com/daneedk/homey.ink/tree/master/app/locales](https://github.com/daneedk/homey.ink/tree/master/app/locales) to start with. translate the texts and save it as `[countrycode].json`

When `&lang=` is omitted or invalid English will be used.

---

<div class="post-metadata">

**Author:** ![PetervdK](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/petervdk/32/20669_2.png) [@PetervdK](https://community.homey.app/u/PetervdK)\
**Post date:** [May 14, 2019, 6:44pm UTC](https://community.homey.app/t/homey-ink-on-a-tablet-desktop/12443/272 "2019-05-14T18:44:59Z")

</div>

To display all values at the same time, i believe you have to adjust the code so every value gets it’s own line space in the tile. Just copying the device capability code for every capability will probably indeed show all values but all in the same space and thus shows the last pushed value.  
But since i’m no expert, this is just an assumption after logical thinking…

But it seems you have managed to do this with the P1 tile, so can you share that code (plzplzplzplz)?

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [May 14, 2019, 6:50pm UTC](https://community.homey.app/t/homey-ink-on-a-tablet-desktop/12443/273 "2019-05-14T18:50:57Z")

</div>

Did you get a new notification? I think the error is there when there are no notifications.

---

<div class="post-metadata">

**Author:** ![Danny\_Mertens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/danny_mertens/32/4247_2.png) [@Danny\_Mertens](https://community.homey.app/u/Danny_Mertens)\
**Post date:** [May 14, 2019, 7:02pm UTC](https://community.homey.app/t/homey-ink-on-a-tablet-desktop/12443/274 "2019-05-14T19:02:59Z")

</div>

Its also working for me Again, also no updates done, but yes I have new notifications.  
After clearing the notifications again same issue, so yes is only when you have no notifications, to be honest not really an issue then, I even should consider to not show the icon if its not relevant?

---

<div class="post-metadata">

**Author:** ![Andre\_Prins](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andre_prins/32/10401_2.png) [@Andre\_Prins](https://community.homey.app/u/Andre_Prins)\
**Post date:** [May 14, 2019, 7:08pm UTC](https://community.homey.app/t/homey-ink-on-a-tablet-desktop/12443/275 "2019-05-14T19:08:11Z")

</div>

> [@DaneedeKruyff](#):
>
> Did you get a new notification? I think the error is there when there are no notification

I definitely had notifications. Just to make sure I created new notification this morning (leaving / coming home) but that didn’t fix it. I think the code is checking notifications older than 24 hours only. Do you not have notifications older than 1 day, it doesn’t pop up and you see the error. Is this possible?

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [May 14, 2019, 7:12pm UTC](https://community.homey.app/t/homey-ink-on-a-tablet-desktop/12443/276 "2019-05-14T19:12:23Z")

</div>

No, it loads all notifications, sorts them and then displays the 8 most recent, doesn’t care about the age.  
Who’s version are you using?  
Did you download the latest version? The code now checks if there are notifications and display a message if there are none, the error shouldn’t occur anymore.

---

<div class="post-metadata">

**Author:** ![Andre\_Prins](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andre_prins/32/10401_2.png) [@Andre\_Prins](https://community.homey.app/u/Andre_Prins)\
**Post date:** [May 14, 2019, 7:18pm UTC](https://community.homey.app/t/homey-ink-on-a-tablet-desktop/12443/277 "2019-05-14T19:18:59Z")

</div>

> [@DaneedeKruyff](#):
>
> Who’s version are you using?

I’m using your version, but tried Ruud’s version as well. Same thing. I downloaded your version this morning again to make sure. Check this screenshot I just created I had notifications this morning. The error said something with the CreateDate. I’ll download your latest version in a minute and test again. Thanks!

 ![Screenshot_20190514-211550](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/8/822a75ec84c440c1072598f6cc4b9479bd87b1bc.jpeg)

---

<div class="post-metadata">

**Author:** ![Danny\_Mertens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/danny_mertens/32/4247_2.png) [@Danny\_Mertens](https://community.homey.app/u/Danny_Mertens)\
**Post date:** [May 14, 2019, 7:19pm UTC](https://community.homey.app/t/homey-ink-on-a-tablet-desktop/12443/278 "2019-05-14T19:19:54Z")

</div>

Works for me, thanks for the NL version, is it also possible to translate the date?

 ![Untitled](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/5/5fcbdfbb7814773497731c1ae57c7dd624a12498.png)

Also in the notification window we have some English left in the NL version

 ![Untitled2](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/d/d6569093fd332c78ea07f16d460d9af8661ac269.jpeg)

Thanks!

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [May 14, 2019, 7:21pm UTC](https://community.homey.app/t/homey-ink-on-a-tablet-desktop/12443/279 "2019-05-14T19:21:18Z")

</div>

Yes, the date is on the todo list, the ‘There are no notifications’ is one I missed, will add it.

Edit: is added.

---

<div class="post-metadata">

**Author:** ![Danny\_Mertens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/danny_mertens/32/4247_2.png) [@Danny\_Mertens](https://community.homey.app/u/Danny_Mertens)\
**Post date:** [May 14, 2019, 7:23pm UTC](https://community.homey.app/t/homey-ink-on-a-tablet-desktop/12443/280 "2019-05-14T19:23:06Z")

</div>

👍

---

<div class="post-metadata">

**Author:** ![Danny\_Mertens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/danny_mertens/32/4247_2.png) [@Danny\_Mertens](https://community.homey.app/u/Danny_Mertens)\
**Post date:** [May 14, 2019, 7:27pm UTC](https://community.homey.app/t/homey-ink-on-a-tablet-desktop/12443/281 "2019-05-14T19:27:56Z")

</div>

New version, no notifications in my list

 ![Untitled3](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/6/6aacaa7f3564e8e2e2a3f96c9a66609fc773fc31.jpeg)

---

<div class="post-metadata">

**Author:** ![Andre\_Prins](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andre_prins/32/10401_2.png) [@Andre\_Prins](https://community.homey.app/u/Andre_Prins)\
**Post date:** [May 14, 2019, 7:29pm UTC](https://community.homey.app/t/homey-ink-on-a-tablet-desktop/12443/282 "2019-05-14T19:29:08Z")

</div>

Same here. I cleared my notifications, tried the old one, nothing happened like this morning. Downloaded the latest version and get the same screen you have.

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [May 14, 2019, 7:32pm UTC](https://community.homey.app/t/homey-ink-on-a-tablet-desktop/12443/283 "2019-05-14T19:32:06Z")

</div>

Staat er iets in de console?

---

<div class="post-metadata">

**Author:** ![Danny\_Mertens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/danny_mertens/32/4247_2.png) [@Danny\_Mertens](https://community.homey.app/u/Danny_Mertens)\
**Post date:** [May 14, 2019, 7:34pm UTC](https://community.homey.app/t/homey-ink-on-a-tablet-desktop/12443/284 "2019-05-14T19:34:04Z")

</div>

![Untitled4](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/b/be1b20e471c152fc1ac6cb2b5e128f73f45372d2.jpeg)

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [May 14, 2019, 7:51pm UTC](https://community.homey.app/t/homey-ink-on-a-tablet-desktop/12443/285 "2019-05-14T19:51:17Z")

</div>

I tried something, can you download the latest and try again?

[Previous page](https://community.homey.app/t/homey-ink-on-a-tablet-desktop/12443.md?page=13)

[Next page](https://community.homey.app/t/homey-ink-on-a-tablet-desktop/12443.md?page=15)
