Skip to content

Commit

Permalink
Rockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
woodsnake committed Dec 31, 2020
1 parent fee00fd commit 2403c41
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion example.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env lua
SunCalc = require("suncalc")
SunCalc = require("suncalc/suncalc")

local ran, err = pcall( function ()
sc = SunCalc:new( {latitude=48.85, longitude=10.5} )
Expand Down
8 changes: 4 additions & 4 deletions suncalc-0.1-6.rockspec → lua-suncalc-0.1-7.rockspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package = "suncalc"
version = "0.1-6"
package = "lua-suncalc"
version = "0.1-7"
source = {
url = "git://github.com/woodsnake/lua-suncalc.git",
branch = "v0.1-6"
branch = "v0.1-7"
}
description = {
summary = "SunCalc is a package to calculate the sun positon",
Expand All @@ -18,6 +18,6 @@ dependencies = {
build = {
type = "builtin",
modules = {
suncalc = "suncalc.lua"
['suncalc'] = "suncalc/suncalc.lua"
}
}
Binary file removed suncalc-0.1-5.src.rock
Binary file not shown.
File renamed without changes.

1 comment on commit 2403c41

@js69uk
Copy link

@js69uk js69uk commented on 2403c41 Sep 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi thank you for your amazing code, I have noticed in comapring the times with suncalc.org and when trying to work out the time for when the sun is 8 degrees below the horizan that your calculation seems to be off by up to 3 minutes, have you come across this too?

Please sign in to comment.