Skip to content

Calculate time which astronomical object rise and set.

Notifications You must be signed in to change notification settings

Ryota0312/hoshiyomi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hoshiyomi

天体の出没時刻計算を行う。現在は、月の出没・月齢の計算のみ対応。
実行するとgRPCサーバーが起動するので、proto/moon.protoの定義に従ってリクエストを送信することで結果が得られる。

Get started

  1. Build
$ cargo build --release
  1. Run
$ cargo run -- serve
  1. Example request
$  grpcurl -plaintext -import-path ./proto -proto moon.proto \
-d '{"date": "2022-07-17T00:00:00.000Z", "longitude": "133.833990", "latitude": "34.861972"}' \
[::]:50051 moon.MoonApi/MoonInfo

Command Line Mode

Calc moon age at 12:00:00 on specified date.

$ cargo run -- calc --date "2023-12-31"

About

Calculate time which astronomical object rise and set.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published