import { DataQuery , DataSourceJsonData } from '@grafana/data' ; export const sunAndMoonMetrics = { moon_illumination : { title : 'Moon illumination' , text : 'Percentage of the moon illuminated by the sun' , } , moon_altitude : { title : 'Moon altitude' , text : 'Height of the moon in the in degrees' , } , moon_azimuth : { title : 'Moon azimuth' , text : 'Direction of the moon along the horizon in degrees' , } , moon_distance : { title : 'Moon distance' , text : 'Distance to the moon in meter' , } , sun_altitude : { title : 'Sun altitude' , text : 'Height of the sun in the in degrees' , } , sun_azimuth : { title : 'Sun azimuth' , text : 'Direction of the sun along the horizon in degrees' , } , } ; export const sunAndMoonAnnotations = { sunrise : { title : 'Sunrise' , text : 'Top edge of the sun appears on the horizon' , tags : [ 'sun' ] , } , sunriseEnd : { title : 'Sunrise ends' , text : 'Bottom edge of the sun touches the horizon' , tags : [ 'sun' ] , } , goldenHourEnd : { title : 'Morning golden hour ends' , text : 'Soft light, best time for photography' , tags : [ 'sun' ] , } , solarNoon : { title : 'Solar noon' , text : 'Sun is in the highest position' , tags : [ 'sun' ] , } , goldenHour : { title : 'Evening golden hour starts' , text : 'Soft light, best time for photography' , tags : [ 'sun' ] , } , sunsetStart : { title : 'Sunset starts' , text : 'Bottom edge of the sun touches the horizon' , tags : [ 'sun' ] , } , sunset : { title : 'Sunset' , text : 'Sun disappears below the horizon, ' + 'evening civil twilight starts' , tags : [ 'sun' ] , } , dusk : { title : 'Dusk' , text : 'Evening nautical twilight starts' , tags : [ 'sun' ] , } , nauticalDusk : { title : 'Nautical dusk' , text : 'Evening astronomical twilight starts' , tags : [ 'sun' ] , } , night : { title : 'Night starts' , text : 'Dark enough for astronomical observations' , tags : [ 'sun' ] , } , nadir : { title : 'Nadir' , text : 'Darkest moment of the night, sun is in the lowest position' , tags : [ 'sun' ] , } , nightEnd : { title : 'Night ends' , text : 'Morning astronomical twilight starts' , tags : [ 'sun' ] , } , nauticalDawn : { title : 'Nautical dawn' , text : 'Morning nautical twilight starts' , tags : [ 'sun' ] , } , dawn : { title : 'Dawn' , text : 'Morning nautical twilight ends, morning civil twilight starts' , tags : [ 'sun' ] , } , moonrise : { title : 'Moonrise' , text : 'Top edge of the moon appears on the horizon' , tags : [ 'moon' ] , } , moonset : { title : 'Moonset' , text : 'Moon disappears below the horizon' , tags : [ 'moon' ] , } , noon : { title : 'Noon' , text : "12 o'clock in the daytime" , tags : [ 'time' ] , } , midnight : { title : 'Midnight' , text : "12 o'clock in the night" , tags : [ 'time' ] , } , } ; export interface SunAndMoonQuery extends DataQuery { target ? : string ; latitude ? : string ; longitude ? : string ; } export const sunAndMoonDefaultQuery = { target : 'moon_illumination' , } ; export interface SunAndMoonAnnotationQuery extends DataQuery { query ? : string ; } export interface SunAndMoonDataSourceOptions extends DataSourceJsonData { latitude ? : number ; longitude ? : number ; }