Time from internet!

For general Flowcode discussion that does not belong in the other sections.
Post Reply
jgu1
Posts: 803
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 688 times
Been thanked: 178 times

Time from internet!

Post by jgu1 »

Hi all!

Is it possible by FC10 to get time and date via wifi connection with an ESP32- dev1 module, any component or examble somewhere,.

thank´s in advance. ;)

Br Jorgen

chipfryer27
Valued Contributor
Posts: 1626
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 359 times
Been thanked: 567 times

Re: Time from internet!

Post by chipfryer27 »

Hi Jorgen

MJU20 posted a while back, but since then the website he used has become very hit or miss. More often or not I could not connect at all, even by just using a browser.

As I have servers of my own I decided to create a very simple script to return "time" in a format useful to me. You can access via a browser or if you use FC you get individual elements returned that you can further use in your charts.

This links and may be of some help viewtopic.php?p=19988#p19988

Regards

jgu1
Posts: 803
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 688 times
Been thanked: 178 times

Re: Time from internet!

Post by jgu1 »

Hi Lain!

Again thank´s for your always help and support ;)

I have looked at MJU´s eksamble and read all the answer. (I'll have a look once I get a chance (bit busy just now assisting Jorgen as he nips around the world :lol: ), hi hi, yes I want to learn and use FC 100% :D

I see that MJU use Wlan I want to use Wifi. Honest I am (also) not a hardcore in all this server programming. But I see when seaching around in the internet that I need NTP and as far I can see FC10 not support this.

There are lot of examble in the internet how to receive time, date ect. via ESP32 and arduino IDE and they all use NTP, but I prefer FC10 :D

I may see what I can do, thank you, I will "nips around the world" :lol:

Jorgen

chipfryer27
Valued Contributor
Posts: 1626
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 359 times
Been thanked: 567 times

Re: Time from internet!

Post by chipfryer27 »

Hi

The last couple of posts in the thread mention that the address MJU20 used is prone to being unavailable, therefore I created my own "timeserver" reachable over the internet, and I gave example code.

It may help.

Regards

jgu1
Posts: 803
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 688 times
Been thanked: 178 times

Re: Time from internet!

Post by jgu1 »

Hi!

As I mentioned, I have no experience with it and can't understand (no skills) your examples. I have to find another solution.

Thank´s.

Post Reply