Best tactic: count down clock

For general Flowcode discussion that does not belong in the other sections.
medelec35
Matrix Staff
Posts: 2086
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 644 times
Been thanked: 702 times

Flowcode v9 Re: Best tactic: count down clock

Post by medelec35 »

Update v1.2
The LCD now shows if the current or future date is invalid.
I plan on adding improvements as this is something I have taken an interest in for myself.
For that reason, if you don't want to see future updates within this topic, I will start a new topic
I have added both FC9 and FC10 versions
Attachments
Countdown clock v1.2 FC10.fcfx
(38.38 KiB) Downloaded 600 times
Countdown clock v1.2 FC9.fcfx
(36.9 KiB) Downloaded 503 times
Martin

chipfryer27
Valued Contributor
Posts: 1688
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 374 times
Been thanked: 583 times

Re: Best tactic: count down clock

Post by chipfryer27 »

I'm happy to read more :)

Regards

MJU20
Posts: 353
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 101 times
Been thanked: 70 times

Re: Best tactic: count down clock

Post by MJU20 »

chipfryer27 wrote:
Sat Mar 25, 2023 1:28 pm
I'm happy to read more :)

Regards
Me too!

Medelec35: brilliant flowcharts, I really got your trick.
Nice way too check if the time is valid.

I want to try my approach too and if I get it working I will share it too.
Thanks

chipfryer27
Valued Contributor
Posts: 1688
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 374 times
Been thanked: 583 times

Re: Best tactic: count down clock

Post by chipfryer27 »

Hi

One possible issue I see in your approach is the size of what you will be downloading, if you are attempting to download a page rather than a response string of sorts.

I think it far better to obtain the value(s) directly rather than attempting to parse a whole page.

I'll try and have a look at this later.

Regards

medelec35
Matrix Staff
Posts: 2086
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 644 times
Been thanked: 702 times

Re: Best tactic: count down clock

Post by medelec35 »

Just a thought.
How about Something like Arduino uno, 4x20 display, and App Developer is used?
The App Developer can set the RTC with the correct time and date and it will set the future date.
Then no external keypad will be required, so the hardware is simplified to just Arduino Uno, LCD, and an RTC.

Alternatively, you can use any microcontroller and use USB to TTL converter.
Martin

chipfryer27
Valued Contributor
Posts: 1688
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 374 times
Been thanked: 583 times

Re: Best tactic: count down clock

Post by chipfryer27 »

Hi

That website (and similar) have a statement in their headers that prohibits the use of scripts etc if they are transparent to the user, which is what you would most likely need. Premium versions may allow but that doesn't appeal to me.

There may be another site that allows you to send a string of sorts and receive back a reply string that you could parse.

Regards

MJU20
Posts: 353
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 101 times
Been thanked: 70 times

Re: Best tactic: count down clock

Post by MJU20 »

medelec35 wrote:
Sun Mar 26, 2023 3:01 pm
The App Developer can set the RTC with the correct time and date and it will set the future date.
I've never used app developer because I read that it only works on Windows?
These days there are much more devices that use other operating systems (mobile devices).
Maybe I will have a try later but I'm not going to pay for this feature :oops:
chipfryer27 wrote:
Sun Mar 26, 2023 4:09 pm
That website (and similar) have a statement in their headers that prohibits the use of scripts etc if they are transparent to the user, which is what you would most likely need. Premium versions may allow but that doesn't appeal to me.

There may be another site that allows you to send a string of sorts and receive back a reply string that you could parse.

Regards
Thanks! I think you are right.
The last things I tried gave me (same old) problems with the watchdog getting triggered on the ESP32, got to figure that out how I disabled this (think I've posted this on this forum somewhere), and when I try to receive the data, I got a 400 Bad Request Cache-Controle...no cache... error.
I've made some progress, but need to test more.

I agree that parsing a whole page is overkill, but I did that before so I tried to get back to a "proven" way.
I will try and find out another way to achieve this. But I will try and find a way via the internet.
Why use a connected device and not make use of it's capabilities :P

But thanks, both of you for the input.
Keep sharing input! :-)

chipfryer27
Valued Contributor
Posts: 1688
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 374 times
Been thanked: 583 times

Re: Best tactic: count down clock

Post by chipfryer27 »

Hi

What device are you looking to use as the ESP has both BT and WiFi.

Just as an example, you could use a mobile "Terminal" program to connect to the ESP and set times etc. Not much different to an "app" really and takes away the need for push buttons. Or if using android it's relatively easy to create an "app".

Regards

MJU20
Posts: 353
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 101 times
Been thanked: 70 times

Re: Best tactic: count down clock

Post by MJU20 »

chipfryer27 wrote:
Mon Mar 27, 2023 7:30 am
Hi

What device are you looking to use as the ESP has both BT and WiFi.

Just as an example, you could use a mobile "Terminal" program to connect to the ESP and set times etc. Not much different to an "app" really and takes away the need for push buttons. Or if using android it's relatively easy to create an "app".

Regards
I have several ESP32 Wroom that I use for nearly everything.
An easy way to change the time would be great, but right now I just stick with using an NTP server to read the time (later I can add a RTC).

As a "GUI" an app would be great, but don't know where to start (except using an Terminal app on Android). In the past I tried MIT App Inventor but I'd rather stick with FC for this while :-)
And I never used the Bluetooth function in FC for the ESP32 so as less as possible new things at this moment.

I'm testing to calculate the difference Like Medelec showed me. Don't want to copy/paste (want to learn) :-)

chipfryer27
Valued Contributor
Posts: 1688
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 374 times
Been thanked: 583 times

Re: Best tactic: count down clock

Post by chipfryer27 »

Hi

MIT I found not too difficult to get to grips with but I was only creating some basic stuff to get the feel. I don't think it would be difficult to build an app that connected to your ESP to update time, but of course you are like me in that "why bother" when "Terminal" can do it :)

One thing I do think FC/ESP/Terminal is useful for is doing away with a dedicated "keyboard" when creating FC charts. Why write code to capture text, move cursor to next position, move it back coz you made a mistake etc when your phone does this for free. Using FC I can have my android connect and send me whatever I need to input :)

I haven't yet played with ESP BT but I've used various BT modules connected to PICs and set parameters using Terminal for BT on android (we android users are quite spoiled when it comes to handy gadgets that work with everything :) )

Regards

Post Reply