# \[APP\]\[Pro\] Better Logic Library - Just some better logic, variable and library management

**URL:** <https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568>\
**Category:** Apps\
**Tags:** app, tools, homey-pro, bll\
**Created:** [December 16, 2018, 10:29pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568 "2018-12-16T22:29:57Z")\
**Posts on this page:** 20\
**Page:** 11

<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:** [November 3, 2022, 8:12am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/207 "2022-11-03T08:12:44Z")

</div>

Small change/update in test/review right now (also changed for the Countdown app):

Not only does the Delete All has a confirmation before execution, the single delete button (right above the edit and save 🤔) now also has a confirmation (Yes/No) before deleting a variable or countdown.

---

<div class="post-metadata">

**Author:** ![FK71](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fk71/32/18817_2.png) [@FK71](https://community.homey.app/u/FK71)\
**Post date:** [November 3, 2022, 8:14pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/208 "2022-11-03T20:14:18Z")

</div>

Working again, Arie.Thanks for the fast reponse!

---

<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:** [November 4, 2022, 11:37pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/209 "2022-11-04T23:37:26Z")

</div>

New in test:  
Get a formatted stamp (local time):  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/6/c6cef7fab68f30597fb10ad414d1293ac277961d.png)

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

And you can format it yourself just like you want it, giving the results during the typing:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/f/7f94badb025ade9f12b0495ec9043284392e3830.png)

---

<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:** [November 10, 2022, 10:44am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/210 "2022-11-10T10:44:29Z")

</div>

New in Test:

The rebranding of Better Logic to Better Logic Library.

I began to restructure and re-design the App Settings for Better Logic., based on Bootstrap, angular-js, font-awesome and some homey style.

### Also the first new settings part: Coding:

Who wants to test/see the new settings screen? It’s available on Test.

I would love it if someone who has Homey on **not-dutch** to go into settings and send me a printscreen of the coding screen:

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

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

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

---

<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:** [November 10, 2022, 12:30pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/211 "2022-11-10T12:30:24Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/5/45785ffff95efa84e9015db9fd89e59ce21aa790.png)

---

<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:** [November 10, 2022, 4:30pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/212 "2022-11-10T16:30:24Z")

</div>

In [Test](https://homey.app/nl-nl/app/net.i-dev.betterlogic/Better-Logic-Library/test/) now:

# New App Settings

> [@\[APP\]\[Pro\] Better Logic Library - For Users](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/2):
>
> App Settings Here is a description about the new App Settings in the Better Logic Library App. Variables Here you can add, edit and delete variables. To add a new variable, click on Add variable to open the new variable card. [image] Coding Here you can see how to use coding and try examples. Click on the Example (eye) to show the usages down below, which is also shown in Locale/TimeZone by default. Locale/TimeZone Here you can configure the locale or lang…

Let me know what you people think.

N.b. work in progress, advices is still taken!  
@johan_bendz 😉

---

<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:** [November 10, 2022, 4:36pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/213 "2022-11-10T16:36:37Z")

</div>

My Homey speaks English, Arie:

 ![Screenshot 2022-11-10 at 17-34-11 Homey Developer Tools](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/1/41edce798d5158dfa6fb85b83580f8333d896897.png)

![Screenshot 2022-11-10 at 17-34-47 Homey Developer Tools](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/d/3dd01ffb47921fd4e4e9ddc7b2984a9570f29d81.png)

![Screenshot 2022-11-10 at 17-35-08 Homey Developer Tools](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/6/e678b19c51ded1adab17c5e2e0c44309d05d2d7b.png)

---

<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:** [November 10, 2022, 7:19pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/214 "2022-11-10T19:19:11Z")

</div>

# In test:

- [Better Logic Library](https://homey.app/nl-nl/app/net.i-dev.betterlogic/Better-Logic-Library/test/)
- [FTP Client](https://homey.app/nl-nl/app/nl.qluster-it.FtpClient/FTP-Client/test/)
- [Google Services](https://homey.app/nl-nl/app/nl.qluster-it.GoogleServices/Google-Services/test/)

### Better Logic is being rebranded to **Better Logic Library** , or BLL for coding.

It’s got a new App Settings (being worked on).  
Also BLL coding, see the App settings to get a better view on what that is and how to use it.

> [@\[APP\]\[Pro\] Better Logic Library - For Users](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/2):
>
> App Settings Here is a description about the new App Settings in the Better Logic Library App. Variables Here you can add, edit and delete variables. To add a new variable, click on Add variable to open the new variable card. [image] Coding Here you can see how to use coding and try examples. Click on the Example (eye) to show the usages down below, which is also shown in Locale/TimeZone by default. Locale/TimeZone Here you can configure the locale or lang…

### FTP Client

FTP client now supports BLL coding in all it’s text-arguments, like saving an image to FTP:

> [@\[APP\]\[Pro\] FTP Client - Control FTP Servers through a directory-based UI in the Homey App or Web App](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876/106):
>
> New in [FTP Client test](https://homey.app/nl-nl/app/nl.qluster-it.FtpClient/FTP-Client/test/). BLL coding support: Example 1 [image] This will result in the file: Example 2 [image] This will result in the file: Other coding Or you can use other datecodings, see the BLL Users Topic for more information on coding.

### Google Services

Google Services now supports BLL coding in all it’s text-arguments, like Start saying […]:

> [@\[APP\]\[Pro\] Google Services - App for Translate and new Text-to-Speech for any device with url input](https://community.homey.app/t/app-pro-google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257/357):
>
> New in [Google Services test](https://homey.app/a/nl.qluster-it.GoogleServices/test/). BLL coding support: Example 1 [image] This will result in a Afrikaans voice saying (in Afrikaans): “Hello there, today it is thursday 10 november 2022.” The date is automaticly build upon the selected voice-language. Example 2 [image] This will result in a Dutch voice saying (in Dutch): “Hello there, today it is thursday 10 november 2022.” Example 3 [image] This will result in a Dutch voice saying (in Dutch): “Hallo daar, vandaag is het donderdag 10 november 2…

---

<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:** [November 10, 2022, 7:31pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/215 "2022-11-10T19:31:22Z")

</div>

Nice @Peter_Kawa!

Did you try the BLL Coding in the Google Service yet?

---

<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:** [November 10, 2022, 8:26pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/216 "2022-11-10T20:26:49Z")

</div>

### New (in develop environment).

The variables last-changed date is now shown in local/configured Locale/langage/country format:

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

---

<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:** [November 10, 2022, 8:56pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/217 "2022-11-10T20:56:11Z")

</div>

Yes it works nicely!

So it is a good practice to create some predefined favorite datetime variables in BLL?

 ![Screenshot from 2022-11-10 21-49-05](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/c/1cd45bcb7e8d7300b8cc94e51448b51ed8bf68c1.png)

Ah, I see now I could’ve used `datetime` as well, it’s almost the same speech output 😀

 ![Screenshot from 2022-11-10 22-16-22](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/e/4e6e35c9cb5e49cf85c4dc9e95da86b4b37d3a8d.png)

---

<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:** [November 10, 2022, 9:19pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/218 "2022-11-10T21:19:43Z")

</div>

> [@Peter\_Kawa](#):
>
> So it is a good practice to create some predefined favorite datetime variables in BLL?

No, im working on that in BLL itself in a awesome way!  
😉

And small change before it’s to late:  
SSS are now fff (fractional seconds) and hh is HH (24-hour base) 🙂  
See the updated settings 😉

S and h are gonne atm, h for 12-hour and hh for padded 12-hours will come, but have to find a way to get the AM/PM first 😉

palnning on implementing as much as i can from [Custom date and time format strings | Microsoft Learn](https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings)

---

<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:** [November 10, 2022, 9:23pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/219 "2022-11-10T21:23:31Z")

</div>

Very neat M8!

---

<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:** [November 10, 2022, 10:55pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/220 "2022-11-10T22:55:31Z")

</div>

Okay, off to bed, but first: update in test!

The date expression now correctly takes the second argument date from a string or number (and ofc a real date object).  
When it’s a number it will be handled as the UTC tick.  
If it’s a string based `2022-11-09T04:13:59.813Z` it will also be handled correct.

So, now you can use the new Execute BL Expression (as tag f.i.) and have an Insight or other saved dated converted into real dates within flows:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/8/2881230af3108ec753df37ba4fa54c7b9208edfa.png)

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/7/47ebe2263641163d5231482500c6c6badcc529d5.png)

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

---

<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:** [November 11, 2022, 8:50am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/221 "2022-11-11T08:50:24Z")

</div>

# Finally, Date (and numbers coming up next) handling within flows!

An updated Format Date flowcard, optional arguments are date(s), locale and timeZone.  
Input of the date can be a String, Number, Date or array of any of those.

### Now you can save date’s to variables or where ever, and convert them back in a flow, just the way you want, and have it speak to you the way you want to hear it.

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

This exact same datobject from the insights card, is in Vancouver timezone the previous day 🙂

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/7/47e43dba0378636720fdc6aff44db26808713322.png)

---

<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:** [November 11, 2022, 10:25am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/222 "2022-11-11T10:25:54Z")

</div>

> [@Peter\_Kawa](#):
>
> So it is a good practice to create some predefined favorite datetime variables in BLL?

Wel almost in test, one moment.

Here you go @Peter_Kawa , in test now:  
You can alter all default date/time formats in the App Settings of BLL. And it will change it immediately for all apps that use it.

So, for instance, in the App Settings, in the variable list, there are the Last Set dates, shown as `datetime` (it’s case-sensitive):

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

This is the default for NL/Dutch.

If i now change this in the App Settings–\> Formats:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/6/069e95912d40ca796e7c17b982dadd3fb3fa61b3.png)

Then all dates that are shown in the datetime format, have been changed to the custom format.

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

There is no direct connection between the shown data, format and BLL.  
This works just as if the variable list is not the BLL app itself, it works just through the BLL connector.  
Thuse, this would work for every app that uses this datetime object.

---

<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:** [November 11, 2022, 10:32am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/223 "2022-11-11T10:32:59Z")

</div>

Now Live:

# Rebranding BL to: [Better Logic Library 2.0](https://homey.app/a/net.i-dev.betterlogic/).

The Better Logic App has been rebranded to Better Logic Library.  
Check out the new App Settings for the new features, like **BLL coding** in [supported apps](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/4)!

> [@\[APP\]\[Pro\] Better Logic Library - For Users](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/4):
>
> Apps that support BBL coding in (certain) flowcard: Better Logic Library BLL coding, see the App settings to get a better view on what that is and how to use it. FTP Client FTP client now supports BLL coding in all it’s text-arguments, like saving an image to FTP: Google Services Google Services now supports BLL coding in all it’s text-arguments, like Start saying […]:

Submitted for review by Athom now!  
Edit: **Approved!**

See  
[[APP][Pro] Better Logic Library - For Users - Apps - Homey Community Forum](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876)  
[[APP][Pro] Better Logic Library - For developers - Apps - Homey Community Forum](https://community.homey.app/t/app-pro-better-logic-library-for-developers/71761)

---

<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:** [November 15, 2022, 10:29am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/225 "2022-11-15T10:29:27Z")

</div>

Now Live:

> [@\[APP\]\[Pro\] Better Logic Library - Just some better logic, variable and library management](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/223):
>
> Now Live: Rebranding BL to: [Better Logic Library 2.0](https://homey.app/a/net.i-dev.betterlogic/). The Better Logic App has been rebranded to Better Logic Library. Check out the new App Settings for the new features, like BLL coding in [supported apps](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/4)! Submitted for review by Athom now! Edit: Approved! See [[APP][Pro] Better Logic Library - For Users - Apps - Homey Community Forum](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876)[[APP][Pro] Better Logic Library - For developers - Apps - Homey Community Forum](https://community.homey.app/t/app-pro-better-logic-library-for-developers/71761)

---

<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:** [November 15, 2022, 11:32am UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/226 "2022-11-15T11:32:42Z")

</div>

It’s in the latest live version i just pushed a minute ago: version 2.1.6.  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/2/82df9c1226992bb151a4bff9f2b0ea6f4e64d270.png)

It will convert EN dates automaticly (and a lott of apps give you the datetime in the default EN, so this will work great for most apps)

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/4/04861ff58318c7da123229d2624412f5185e21ec.png)

Or just in one field:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/a/5a3f398724ba38e6028e71ca3a65f786383b7266.png)

---

<div class="post-metadata">

**Author:** ![Jero](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jero/32/17556_2.png) [@Jero](https://community.homey.app/u/Jero)\
**Post date:** [November 15, 2022, 7:55pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/227 "2022-11-15T19:55:11Z")

</div>

You should really not abuse things that are not ment for your app. I think you know what I mean. I wonder what happens if you hit the play button.

[Previous page](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568.md?page=10)

[Next page](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568.md?page=12)
