How to get the value automatically from the server once a day

Asked 2 years ago, Updated 2 years ago, 74 views

Currently, if you select the weather api and get it, you can get it. How can I get it to run automatically on the server once a day?

javascript api weather

2022-09-22 20:42

3 Answers

It's not a very good way, but I'm going to create a third

When the current time is 0:0 by turning the repeat statement once a minute

Why don't we get the price once in a while?

If you think your PC is burdensome,

Check once every hour, once when the time is 0 o'clock

I think it's a good way to get it.


2022-09-22 20:42

For questioners, it is common to create batch jobs.

Since it is a work once a day, use at for crontab or Windows.


2022-09-22 20:42

It's not a very good way, but I'm going to create a third

When the current time is 0:0 by turning the repeat statement once a minute

Why don't we get the price once in a while?

If you think your PC is burdensome,

Check once every hour, once when the time is 0 o'clock

I think it's a good way to get it.

==

In the case of Java, the Thread class is inherited and used.

I guess JavaScript uses something called a web worker.

I'm sorry. I'm a Java user. Javascript is still...)

I searched http://boxfoxs.tistory.com/294

Please refer to it.


2022-09-22 20:42

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.