Moon Phases

The MoonPhase Length resource takes a Unix timestamp parameter:

https://api.farmsense.net/v1/moonphases/?d=1350526582

and returns a JSON string as follows:

[

{

“Error”:0,

“ErrorMsg”:”success”,

“TargetDate”:”1350526582″,

“Moon”:[“Hunter’s\/Harvest Moon”],

“Index”:2,

“Age”:2.9555953469264,

“Phase”:”Waxing Cresent”,

“Distance”:363325.22,

“Illumination”:0.1,

“AngularDiameter”:0.54815395361483,

“DistanceToSun”:149016616.79983,

“SunAngularDiameter”:0.53520976935835

}

]

You can also specify an array of dates to get moon phase data over a range of dates:

http://api.farmsense.net/v1/moonphases/?d[]=1350526582&d[]=1350363600&d[]=1350277200

Who's Got FarmSense?