[過去ログ] Tasker 質問スレ 21 (1002レス)
前次1-
抽出解除 レス栞

このスレッドは過去ログ倉庫に格納されています。
次スレ検索 歴削→次スレ 栞削→次スレ 過去ログメニュー
リロード規制です。10分ほどで解除するので、他のブラウザへ避難してください。
108
(1): 2022/10/07(金)21:45 ID:LpNruUgF(2/2) AAS
A1: Get Location [
Source: Net
Timeout (Seconds): 30 ]

A2: Variable Set [
Name: %location
To: %LOCN
Max Rounding Digits: 3
Structure Output (JSON, etc): On ]

A3: Variable Set [
Name: %location
To: ,
Max Rounding Digits: 3
Structure Output (JSON, etc): On ]

A4: Variable Set [
Name: %request_para
To: &lat=%location(1)&lng=%location(2)
Max Rounding Digits: 3
Structure Output (JSON, etc): On ]

A5: HTTP Request [
Method: GET
URL: 外部リンク:api.sunrise-sunset.org
Timeout (Seconds): 30
Structure Output (JSON, etc): On ]

A6: JavaScriptlet [
Code: const json = JSON.parse(http_data);
var sunrise = json.results.sunrise;
var sunset = json.results.sunset;

var rise_hours = sunrise.substring(11,13)-15;
var rise_minutes = sunrise.substring(14,16);
var set_hours = sunset.substring(11,13)-15+24;
var set_minutes = sunset.substring(14,16);
var sunrise = rise_hours +":"+rise_minutes;
var sunset = set_hours + ":" + set_minutes;
Auto Exit: On
Timeout (Seconds): 45 ]

A7: Variable Set [
Name: %Sunrise
To: %sunrise
Max Rounding Digits: 3
Structure Output (JSON, etc): On ]

A8: Variable Set [
Name: %Sunset
To: %sunset
Max Rounding Digits: 3
Structure Output (JSON, etc): On ]

A9: Flash [
Text: %Sunrise
%Sunset
Continue Task Immediately: On
Dismiss On Click: On ]
109
(1): 2022/10/07(金)22:44 ID:GbJNM2Py(1) AAS
>>108
A6でなんで15引いてるの?
現在地のタイムゾーンの時差を足すか引くかすれば合うんじゃないか
>107の結果みたら2足す感じ?
日本なら9足すんだろうjk
前次1-
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル

ぬこの手 ぬこTOP 0.044s