Skip to content

Instantly share code, notes, and snippets.

@Xliff
Created April 2, 2022 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Xliff/25c4b333080e2e3bc4388a1e5cb5bd2a to your computer and use it in GitHub Desktop.
Save Xliff/25c4b333080e2e3bc4388a1e5cb5bd2a to your computer and use it in GitHub Desktop.
p6-GWeather (soon to be raku-GWeather) is now a thing...

Anmnouncing GWeather... raku bindings for libgweather.

Here's the first successful test of the code:

$ ./p6gtkexec examples/01-moon-phase.e --latitude=38.946 --longitude=-76.9820
Latitude  38.946 N Longitude -76.982 W for 2022-04-02T14:53:07.240132Z. All times UTC
daytime:  yes
sunrise:  Saturday Apr 02, 2022 10:47:40  sunset: Saturday Apr 02, 2022 23:28:57

moonphase: 14.437533705242906
moonlat:   8.673885890128263

     1stQ: Saturday Apr 09, 2022 02:25:59
     Full: Saturday Apr 16, 2022 21:27:23
     3rdQ: Saturday Apr 23, 2022 06:32:41
      New: Sunday May 01, 2022 00:46:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment