Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing data in Moon's InfoMap #3088

Closed
gzotti opened this issue Mar 8, 2023 Discussed in #3086 · 5 comments
Closed

Missing data in Moon's InfoMap #3088

gzotti opened this issue Mar 8, 2023 Discussed in #3086 · 5 comments
Assignees
Labels
enhancement Improve existing functionality
Milestone

Comments

@gzotti
Copy link
Member

gzotti commented Mar 8, 2023

Discussed in #3086

Originally posted by spacemanmartin March 7, 2023
Would someone be able to help with a scripting question related to the "Moon Age", which is apparently one of the "Additional Information" attributes you can get for the moon?

I would simply like to output the "Moon age" with a script in Stellarium, but I don't seem to be able to find the associated property.

For example, if I want to use a loop to get the moon's phase as a function of JD, I can write:
objectData=core.getSelectedObjectInfo();
core.output( core.getJDay() + "," + objectData["phase"]);

I've tried to output all the available properties and there just doesn't seem to be one for Moon age, e.g. :
core.mapToString(objectData);

Where am I going wrong? Many thanks in advance for any hints / solutions!

Short answer: Add age and phase string to getInfoMap() for the Moon.

@gzotti gzotti self-assigned this Mar 8, 2023
@gzotti gzotti added the enhancement Improve existing functionality label Mar 8, 2023
@github-actions
Copy link

github-actions bot commented Mar 8, 2023

Hello @gzotti!

Thank you for suggesting this enhancement.

@gzotti gzotti added this to the 23.1 milestone Mar 8, 2023
@gzotti gzotti closed this as completed in e32eea7 Mar 8, 2023
@github-actions
Copy link

Hello @gzotti!

The enhancement or feature has been implemented! You may test it via building Stellarium from source code or wait the weekly development snapshot...

@github-actions
Copy link

Hello @gzotti!

The bug or issue has been fixed! You may test it via building Stellarium from source code or wait the weekly development snapshot...

@alex-w alex-w added state: published The fix has been published for testing in weekly binary package and removed state: fixed labels Mar 13, 2023
@github-actions
Copy link

Hello @gzotti!

Please check the fresh version (development snapshot) of Stellarium:
https://github.com/Stellarium/stellarium-data/releases/tag/weekly-snapshot

@alex-w alex-w removed the state: published The fix has been published for testing in weekly binary package label Mar 27, 2023
@github-actions
Copy link

Hello @gzotti!

Please check the latest stable version of Stellarium:
https://github.com/Stellarium/stellarium/releases/latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve existing functionality
Development

No branches or pull requests

2 participants