Well, i did think about that.
Altho i don’t see any other app that does what BL does in a very simple way.
I know Temporary Variables, but that is just the same that buildin cards can do, nothing else.
I do plan to add Scoped variables to Better Logic, so you can recombine flowcards with different tags into one tag
And perhaps image-token-variables.
And BL has a few easy to use devices that cover variables.
And, also, i guess one of the most important things; BL has a Variable is SET card. Homey does not.
And it’s kind of important for at least some users like me.
F.i. If you have a Google Says variable and it says Diner!.
What if a day nothing else is said, and then again the variable is filled with Diner!.
Also, one for me and many other developers, a big thing: app(developers) may not access/write/create variables.
But with BL, you can!
You can even update and read the variables through the App API.
This means also that you can use and update BL variables within HomeyScripts.
You cannot (may not) do this with default logic at all!
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.
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:
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.
This exact same datobject from the insights card, is in Vancouver timezone the previous day
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):
This is the default for NL/Dutch.
If i now change this in the App Settings–> Formats:
Then all dates that are shown in the datetime format, have been changed to the custom format.
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.
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!
Submitted for review by Athom now!
Edit: Approved!