App Developer Timestamp and EventTrigger components

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Post Reply
stefan.erni
Valued Contributor
Posts: 756
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

App Developer Timestamp and EventTrigger components

Post by stefan.erni »

Hi Ben

Timestamp and EventTrigger components are very good. A few more wishes

Timestamp component:
Would it be possible to have a timestamp string in this format as well? Then you can just use the string as a filename
2021-01-27_10-54-12

EventTrigger component:
Would it be possible to do the event trigger enable / disable with a macro?
To set the duration with a macro?
And when the appropriate time is over to start a macro like an interrupt?

regards

Stefan

BenR
Matrix Staff
Posts: 1733
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 439 times
Been thanked: 602 times

Re: App Developer Timestamp and EventTrigger components

Post by BenR »

Hi Stefan,

Thanks very much.

I've added your request to the timestamp component so you can change the various delimiters as required, I'll push these changes to the update system later on today.
Timestamp.jpg
Timestamp.jpg (11.05 KiB) Viewed 3844 times
I'll have a look at the EventTrigger component and see what I can do there.

stefan.erni
Valued Contributor
Posts: 756
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: App Developer Timestamp and EventTrigger components

Post by stefan.erni »

Hi Ben

Thanks a lot.

There are only two small problems. After the year there is a space and yy-mm-dd_hh-mm-ss would be easier because the filenames are then always correctly sorted in the folder by year, month, day

01-27-21 _19-17-35.csv //this is now
21-01-27_19-17-35.csv //wish

US_2021-01-27_19-01-56.png
US_2021-01-27_19-01-56.png (26.39 KiB) Viewed 3833 times

BenR
Matrix Staff
Posts: 1733
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 439 times
Been thanked: 602 times

Re: App Developer Timestamp and EventTrigger components

Post by BenR »

Hello,

Thanks for letting me know.

I've now added an option for the date to be output as you've specified. As for the space between the date and the time, check your setting for the TimeStamp separator and make sure there are no spaces there. Hopefully that should solve the problems.

BenR
Matrix Staff
Posts: 1733
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 439 times
Been thanked: 602 times

Re: App Developer Timestamp and EventTrigger components

Post by BenR »

Hello again,

I've also now reworked the EventTrigger component to make it a lot more useful as per your suggestions. I've done a bit of testing and so far it seems to work well.

EventTriggerDemo.fcfx
(10.13 KiB) Downloaded 189 times
Let me know how you get on.

stefan.erni
Valued Contributor
Posts: 756
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: App Developer Timestamp and EventTrigger components

Post by stefan.erni »

Hi Ben

That is very, very good what you did.
Selecting the macro in propertis is very practical.
The countdown in the icon is very pleasant.
And the timestamp is perfect.

regards
Stefan
Macro_2021-01-28_9-45-07.png
Macro_2021-01-28_9-45-07.png (227.63 KiB) Viewed 3817 times
timestamp_2021-01-28_9-30-38.png
timestamp_2021-01-28_9-30-38.png (101.21 KiB) Viewed 3817 times

BenR
Matrix Staff
Posts: 1733
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 439 times
Been thanked: 602 times

Re: App Developer Timestamp and EventTrigger components

Post by BenR »

Thanks Stefan,

Glad you like the changes :D

Post Reply