OH 4.1.3 running on RPi4
Configured entirely through MainUI
Creating a Blockly rule and I’d like to put the current time in the text of an email.
I know this is probably easy but how do I refer to the current time?
OH 4.1.3 running on RPi4
Configured entirely through MainUI
Creating a Blockly rule and I’d like to put the current time in the text of an email.
I know this is probably easy but how do I refer to the current time?
There are different options
One option should be Dates & Times
→ text of (now) with pattern (textpattern HH:MM)
text of
is configurable, so you have to put now
into the module and select with pattern
from dropdown menu to get the option to setup the pattern.
Thanks for the suggestion. How do I insert the time into the text of an email, where it says current time??
Where can I find this block “Send Text mail from server” in Blockly in OH 4.3?
EDIT: Just found out that these blocks need to be installed as library from Marketplace
I’m actually trying to do a similar thing but would like the day (Mon, Tue, etc) and AM/PM - so for example Tue 10:10am. Using “EE hh:mm a” should work but it just gives me “Script execution of rule with UID ‘bd9730ebec’ failed: org.graalvm.polyglot.PolyglotException: i: Pattern using (localized) text not implemented, use @js-joda/locale plugin!” in the logs.
Is that something I can do with the text of with pattern block or do I need to figure out a different way to do it?