Thanks!
Solved: Norwegian day and month formats had a trailing dot.
I have just added a new flowcard, once it turns out to work as expected, it will also become available as a BLL expression method.
Format [[number]] as decimal/currency/percent/unit card.
This card has dynamic fields.
You first pick if you want to format it as a decimal, currency, percentage or unit.
Then other options becaume available in the 2 option-dropdown-arguments:
Here an example of Currency, Dollar, with fullname, in Dutch:
By default, the locale configured in the BLL app settings will be used, but you can optionally enter another locale in the flowcard.
Check it out now in test:
New flowcard and some bugfixes in the Test version:
Format time:
This is the same as the time function in expressions.
Also, some fixes for the time function, hh could be 24 instead of 0, this is now resolved.
Some updates to the BLL coding functionality
- Constants added
-
now
Contains the value of Date.now(), a numeric value representing the current moment in milliseconds, set once at the start of the script.
-
- Overloading for the
date
method:date(format, locale?, timeZone?)
date(format, date?, locale?, timeZone?)
- The new method
number
has been added to BLL coding, with overloading:
Thenumber
method
Hi all!
Iām trying to set a Better logic variable as the date of tomorrow. (written as DD:MM:YYYY). Anybody an idea how to set a variable that wat? Would be great! (Would like to use that variable as input for another app, so it must be exact that format)
Use a Set [variable] to [BLL expression]:
date('dd:MM:yyyy', new Date(new Date().setDate(new Date().getDate() + 1 )))
Thanks for your fast help (again!)
I think that Iām doing something wrongā¦
I see the inverted version (variable to text). But when trying that, the value is set to the complete BLL expression. Any idea what Iām doing wrong?
Result: (Field ātekstā.is set to āstringā')
Possible (Then) options:
Edited: Sorry, donāt know why but was replying in Dutchā¦
Yeah, sorry, you need to use the card Set variable to BLL expression.
Ja, je moet de set expressie kaart gebruiken, niet de set text.
Sorry
Many thanks again Arie! You made the day!!! (And sorry, donāt know why I was replying in Dutch
Just translated the previous post in āSimple Englishā in the hope that it can help somebody else in the future
Hello @Arie_J_Godschalk ,
I have migrated to HP 2023 from HP 2019 (migrated with a backup from HP 2019), and after the migration the values in insights for my variables are frozen. The variables updates values as it should, it is only issues with insights. Do you have a opinion if it is a BLL issue, or a Athom issue?
Regaards
Marius
@Marius_Stensrod I am not sure, i didnāt notice it yet.
Can you create a ticket (link is in the topicpost above), ill check it out somewhere this week.
I donāt know if it is already asked, but is it possible to get variables onto the sharptools dashboard?
I have no idea
Installing sharptools right now to check it out.
Afaik right now, no, not system variables or BLL variables.
Altho, you can see AVD properties.
So, you could create an AVD and add the BLL variables to it through Reflect.
Then you can get them to show in the Sharptools.
Oooh. Thank you. It is for free for only a few tiles. You see values from every sensors except better logic values.
Hey @Pieter_Pessers ,
What you can do, is use an Advanced Virtual Device from the Device Capabilities app.
I am in contact about adding BLL variables to Sharptools with @joshua, but in the meantime, i have done this:
I have created an Container AVD with one field:
BLL expression: !$value.trim() ? '' : 'Morgen: ' + $value
This can be added in the Sharptools, where i created a custom Super Tile:
In the bottom field, the text from the AVD is shown.
Next, in the dashboard, where the tile is used, i have configured some colors based on the values:
The result, based on a BLL variable is this:
I have also added a Button on the AVD:
In Sharptools i have setup a rule for this:
When i click on the trash-bin in Sharptools, the Button on the AVD is pushed and in a flow, when that button is pushed, it will clear out the BLL Variable (turning of my Homey light and also the Sharptools tile will reset, meaning i have put out the trash).
So, yeah, using BLL variables is possible already without flows, you just need an AVD
Wow.
Thank you for looking into it for me.
But this goes beyond my knowledge. It is high, professional stuff.
Everyday i measure my daily waterusage and at night i reset this.
I do this with the help of BLL. But this wonāt be shown in sharptools. So i made dagelijks waterverbruik with advanced devices. This is shown in sharptools.
But know fill it with the values of BLL.
And then i can lay it in the costum tile of sharptools.
Can this be done?
Met vriendelijke groeten:Pieter.
Verzonden vanaf mijn Galaxy
-------- Oorspronkelijk bericht --------
Yes, just add a basic tile with in Sharptools from that AVD (you dont need to create a custom tile, i just did that to get some experience with somewhat more advanced tiles).
But if you have an avd with a bll variable reflected, you can connect that to sharptools, and add a tile from that.
Perfect. Thank you. I got it going. Happy with it.