mharrend / ubuntu-touch-day-scope

Day Scope for Ubuntu Touch / UBPorts
GNU General Public License v3.0
1 stars 2 forks source link

Implement moon phases locally #1

Open Flohack74 opened 7 years ago

Flohack74 commented 7 years ago

Hi, what do you think about this algorithm in this thread: https://stackoverflow.com/questions/9318328/lunar-phase-api - could we hook it up? I can do C implementation but not QML API ;)

mharrend commented 7 years ago

@Flohack74 If you would implement this algorithm in C or better C++, for sure, we could use it in the day scope. We would just put the code inside of the getLunarphase function and it should work: https://github.com/mharrend/ubuntu-touch-day-scope/blob/master/src/query.cpp#L531 So, feel free to provide either a standalone code in an extra source file or try to implement the code inside of the mentioned function

Flohack74 commented 7 years ago

Ah cool will take a look for sure! =)