Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. Grafana
    5. Grafana Sun and Moon

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Grafana Sun and Moon

    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Jo46 last edited by

      Sorry, aber kann mir jemand sagen, wie ich die Uhrzeit anzeigen lassen kann? Sund an Moon hab ich erfolgreich eingerichtet. Jetzt hätte ich gern den Sonnenaufgang dargestellt als Uhrzeit. Aber was muss ich auswählen damit es dargestellt wird? Dank vorab

      91dc8b39-679d-49fc-9cee-f266794af58a-image.png

      6b731e8a-65d3-41d6-99f0-68c9849029b6-image.png

      haus-automatisierung Codierknecht 2 Replies Last reply Reply Quote 0
      • haus-automatisierung
        haus-automatisierung Developer Most Active @Jo46 last edited by haus-automatisierung

        @jo46 Du hast dann eine neue Datenquelle zur Verfügung und kannst diese nutzen

        Screenshot 2025-02-05 at 10.18.20.png

        EDIT: Du hast als Feld "Timeseries" ausgewählt. Nimm mal "Stat"

        1 Reply Last reply Reply Quote 0
        • Codierknecht
          Codierknecht Developer Most Active @Jo46 last edited by Codierknecht

          @jo46
          Du könntest Dir auch einfach deren JSON runterladen 😉

          https://grafana.com/grafana/dashboards/630-sun-and-moon-datasource/

          Oder für ganz faule (bereits übersetzt) 😁

          {
           "annotations": {
             "list": [
               {
                 "builtIn": 1,
                 "datasource": {
                   "type": "datasource",
                   "uid": "grafana"
                 },
                 "enable": true,
                 "hide": true,
                 "iconColor": "rgba(0, 211, 255, 1)",
                 "name": "Annotations & Alerts",
                 "type": "dashboard"
               },
               {
                 "datasource": {
                   "type": "fetzerch-sunandmoon-datasource",
                   "uid": "dec4um3aintogf"
                 },
                 "enable": true,
                 "hide": false,
                 "iconColor": "rgb(238, 139, 9)",
                 "mappings": {},
                 "name": "Sonnenauf / -untergang",
                 "target": {
                   "refId": "annotation_query",
                   "target": [
                     "sunrise",
                     "sunset"
                   ]
                 }
               },
               {
                 "datasource": {
                   "type": "fetzerch-sunandmoon-datasource",
                   "uid": "dec4um3aintogf"
                 },
                 "enable": false,
                 "hide": false,
                 "iconColor": "rgb(21, 101, 224)",
                 "mappings": {},
                 "name": "Mondauf / -untergang",
                 "target": {
                   "refId": "annotation_query",
                   "target": [
                     "moonrise",
                     "moonset"
                   ]
                 }
               },
               {
                 "datasource": {
                   "type": "fetzerch-sunandmoon-datasource",
                   "uid": "dec4um3aintogf"
                 },
                 "enable": false,
                 "hide": false,
                 "iconColor": "rgb(98, 164, 0)",
                 "mappings": {},
                 "name": "Goldene Stunde",
                 "target": {
                   "refId": "annotation_query",
                   "target": [
                     "goldenHour"
                   ]
                 }
               },
               {
                 "datasource": {
                   "type": "fetzerch-sunandmoon-datasource",
                   "uid": "dec4um3aintogf"
                 },
                 "enable": true,
                 "hide": false,
                 "iconColor": "#7e7e7f",
                 "mappings": {},
                 "name": "Mittag / Mitternacht",
                 "target": {
                   "refId": "annotation_query",
                   "target": [
                     "noon",
                     "midnight"
                   ]
                 }
               }
             ]
           },
           "description": "This dashboard demonstrates the usage of the Sun and Moon Datasource Plugin.",
           "editable": true,
           "fiscalYearStartMonth": 0,
           "graphTooltip": 0,
           "id": 13,
           "links": [],
           "panels": [
             {
               "datasource": {
                 "type": "fetzerch-sunandmoon-datasource",
                 "uid": "dec4um3aintogf"
               },
               "fieldConfig": {
                 "defaults": {
                   "color": {
                     "fixedColor": "super-light-orange",
                     "mode": "fixed"
                   },
                   "mappings": [],
                   "thresholds": {
                     "mode": "absolute",
                     "steps": [
                       {
                         "color": "green",
                         "value": null
                       }
                     ]
                   },
                   "unit": "time: HH:mm"
                 },
                 "overrides": []
               },
               "gridPos": {
                 "h": 4,
                 "w": 3,
                 "x": 0,
                 "y": 0
               },
               "id": 5,
               "options": {
                 "colorMode": "value",
                 "graphMode": "none",
                 "justifyMode": "auto",
                 "orientation": "auto",
                 "percentChangeColorMode": "standard",
                 "reduceOptions": {
                   "calcs": [
                     "lastNotNull"
                   ],
                   "fields": "/^Time$/",
                   "values": false
                 },
                 "showPercentChange": false,
                 "text": {},
                 "textMode": "auto",
                 "wideLayout": true
               },
               "pluginVersion": "11.5.1",
               "targets": [
                 {
                   "datasource": {
                     "type": "fetzerch-sunandmoon-datasource",
                     "uid": "dec4um3aintogf"
                   },
                   "refId": "A",
                   "target": [
                     "sunrise"
                   ]
                 }
               ],
               "title": "Sonnenaufgang",
               "type": "stat"
             },
             {
               "datasource": {
                 "type": "datasource",
                 "uid": "-- Mixed --"
               },
               "fieldConfig": {
                 "defaults": {
                   "color": {
                     "fixedColor": "light-red",
                     "mode": "fixed"
                   },
                   "mappings": [],
                   "thresholds": {
                     "mode": "absolute",
                     "steps": [
                       {
                         "color": "green",
                         "value": null
                       }
                     ]
                   },
                   "unit": "time: HH:mm"
                 },
                 "overrides": []
               },
               "gridPos": {
                 "h": 4,
                 "w": 3,
                 "x": 3,
                 "y": 0
               },
               "id": 6,
               "options": {
                 "colorMode": "value",
                 "graphMode": "none",
                 "justifyMode": "auto",
                 "orientation": "auto",
                 "percentChangeColorMode": "standard",
                 "reduceOptions": {
                   "calcs": [
                     "lastNotNull"
                   ],
                   "fields": "/^Time$/",
                   "values": false
                 },
                 "showPercentChange": false,
                 "text": {},
                 "textMode": "auto",
                 "wideLayout": true
               },
               "pluginVersion": "11.5.1",
               "targets": [
                 {
                   "datasource": {
                     "type": "fetzerch-sunandmoon-datasource",
                     "uid": "dec4um3aintogf"
                   },
                   "refId": "A",
                   "target": [
                     "sunset"
                   ]
                 }
               ],
               "title": "Sonnenuntergang",
               "type": "stat"
             },
             {
               "datasource": {
                 "type": "fetzerch-sunandmoon-datasource",
                 "uid": "dec4um3aintogf"
               },
               "fieldConfig": {
                 "defaults": {
                   "color": {
                     "fixedColor": "light-yellow",
                     "mode": "fixed"
                   },
                   "mappings": [],
                   "thresholds": {
                     "mode": "absolute",
                     "steps": [
                       {
                         "color": "green",
                         "value": null
                       }
                     ]
                   },
                   "unit": "short"
                 },
                 "overrides": []
               },
               "gridPos": {
                 "h": 4,
                 "w": 3,
                 "x": 6,
                 "y": 0
               },
               "id": 8,
               "options": {
                 "colorMode": "value",
                 "graphMode": "none",
                 "justifyMode": "auto",
                 "orientation": "auto",
                 "percentChangeColorMode": "standard",
                 "reduceOptions": {
                   "calcs": [
                     "lastNotNull"
                   ],
                   "fields": "",
                   "values": false
                 },
                 "showPercentChange": false,
                 "text": {},
                 "textMode": "auto",
                 "wideLayout": true
               },
               "pluginVersion": "11.5.1",
               "targets": [
                 {
                   "datasource": {
                     "type": "fetzerch-sunandmoon-datasource",
                     "uid": "dec4um3aintogf"
                   },
                   "refId": "A",
                   "target": [
                     "sun_azimuth"
                   ]
                 }
               ],
               "title": "Sonne Azimuth",
               "type": "stat"
             },
             {
               "datasource": {
                 "type": "fetzerch-sunandmoon-datasource",
                 "uid": "dec4um3aintogf"
               },
               "description": "",
               "fieldConfig": {
                 "defaults": {
                   "color": {
                     "fixedColor": "blue",
                     "mode": "fixed"
                   },
                   "mappings": [],
                   "thresholds": {
                     "mode": "percentage",
                     "steps": [
                       {
                         "color": "dark-blue",
                         "value": null
                       }
                     ]
                   }
                 },
                 "overrides": []
               },
               "gridPos": {
                 "h": 4,
                 "w": 3,
                 "x": 9,
                 "y": 0
               },
               "id": 3,
               "options": {
                 "minVizHeight": 75,
                 "minVizWidth": 75,
                 "orientation": "auto",
                 "reduceOptions": {
                   "calcs": [
                     "lastNotNull"
                   ],
                   "fields": "",
                   "values": false
                 },
                 "showThresholdLabels": false,
                 "showThresholdMarkers": false,
                 "sizing": "auto",
                 "text": {}
               },
               "pluginVersion": "11.5.1",
               "targets": [
                 {
                   "datasource": {
                     "type": "fetzerch-sunandmoon-datasource",
                     "uid": "dec4um3aintogf"
                   },
                   "refId": "A",
                   "target": [
                     "moon_illumination"
                   ]
                 }
               ],
               "title": "Mond Beleuchtung",
               "type": "gauge"
             },
             {
               "datasource": {
                 "type": "fetzerch-sunandmoon-datasource",
                 "uid": "dec4um3aintogf"
               },
               "fieldConfig": {
                 "defaults": {
                   "color": {
                     "fixedColor": "light-blue",
                     "mode": "fixed"
                   },
                   "mappings": [],
                   "thresholds": {
                     "mode": "absolute",
                     "steps": [
                       {
                         "color": "green",
                         "value": null
                       }
                     ]
                   },
                   "unit": "time: HH:mm"
                 },
                 "overrides": []
               },
               "gridPos": {
                 "h": 4,
                 "w": 3,
                 "x": 12,
                 "y": 0
               },
               "id": 9,
               "options": {
                 "colorMode": "value",
                 "graphMode": "none",
                 "justifyMode": "auto",
                 "orientation": "auto",
                 "percentChangeColorMode": "standard",
                 "reduceOptions": {
                   "calcs": [
                     "lastNotNull"
                   ],
                   "fields": "/^Time$/",
                   "values": false
                 },
                 "showPercentChange": false,
                 "text": {},
                 "textMode": "auto",
                 "wideLayout": true
               },
               "pluginVersion": "11.5.1",
               "targets": [
                 {
                   "datasource": {
                     "type": "fetzerch-sunandmoon-datasource",
                     "uid": "dec4um3aintogf"
                   },
                   "refId": "A",
                   "target": [
                     "moonrise"
                   ]
                 }
               ],
               "title": "Mondaufgang",
               "type": "stat"
             },
             {
               "datasource": {
                 "type": "fetzerch-sunandmoon-datasource",
                 "uid": "dec4um3aintogf"
               },
               "fieldConfig": {
                 "defaults": {
                   "color": {
                     "fixedColor": "semi-dark-blue",
                     "mode": "fixed"
                   },
                   "mappings": [],
                   "thresholds": {
                     "mode": "absolute",
                     "steps": [
                       {
                         "color": "green",
                         "value": null
                       }
                     ]
                   },
                   "unit": "time: HH:mm"
                 },
                 "overrides": []
               },
               "gridPos": {
                 "h": 4,
                 "w": 3,
                 "x": 15,
                 "y": 0
               },
               "id": 10,
               "options": {
                 "colorMode": "value",
                 "graphMode": "none",
                 "justifyMode": "auto",
                 "orientation": "auto",
                 "percentChangeColorMode": "standard",
                 "reduceOptions": {
                   "calcs": [
                     "lastNotNull"
                   ],
                   "fields": "/^Time$/",
                   "values": false
                 },
                 "showPercentChange": false,
                 "text": {},
                 "textMode": "auto",
                 "wideLayout": true
               },
               "pluginVersion": "11.5.1",
               "targets": [
                 {
                   "datasource": {
                     "type": "fetzerch-sunandmoon-datasource",
                     "uid": "dec4um3aintogf"
                   },
                   "refId": "A",
                   "target": [
                     "moonset"
                   ]
                 }
               ],
               "title": "Monduntergang",
               "type": "stat"
             },
             {
               "datasource": {
                 "type": "fetzerch-sunandmoon-datasource",
                 "uid": "dec4um3aintogf"
               },
               "fieldConfig": {
                 "defaults": {
                   "color": {
                     "fixedColor": "blue",
                     "mode": "fixed"
                   },
                   "decimals": 0,
                   "mappings": [],
                   "thresholds": {
                     "mode": "absolute",
                     "steps": [
                       {
                         "color": "green",
                         "value": null
                       }
                     ]
                   },
                   "unit": "short"
                 },
                 "overrides": []
               },
               "gridPos": {
                 "h": 4,
                 "w": 3,
                 "x": 18,
                 "y": 0
               },
               "id": 11,
               "options": {
                 "colorMode": "value",
                 "graphMode": "none",
                 "justifyMode": "auto",
                 "orientation": "auto",
                 "percentChangeColorMode": "standard",
                 "reduceOptions": {
                   "calcs": [
                     "lastNotNull"
                   ],
                   "fields": "",
                   "values": false
                 },
                 "showPercentChange": false,
                 "text": {},
                 "textMode": "auto",
                 "wideLayout": true
               },
               "pluginVersion": "11.5.1",
               "targets": [
                 {
                   "datasource": {
                     "type": "fetzerch-sunandmoon-datasource",
                     "uid": "dec4um3aintogf"
                   },
                   "refId": "A",
                   "target": [
                     "moon_azimuth"
                   ]
                 }
               ],
               "title": "Mond Azimuth",
               "type": "stat"
             },
             {
               "datasource": {
                 "type": "fetzerch-sunandmoon-datasource",
                 "uid": "dec4um3aintogf"
               },
               "fieldConfig": {
                 "defaults": {
                   "color": {
                     "mode": "palette-classic"
                   },
                   "custom": {
                     "axisBorderShow": false,
                     "axisCenteredZero": false,
                     "axisColorMode": "text",
                     "axisLabel": "",
                     "axisPlacement": "auto",
                     "barAlignment": 0,
                     "barWidthFactor": 0.6,
                     "drawStyle": "line",
                     "fillOpacity": 0,
                     "gradientMode": "none",
                     "hideFrom": {
                       "legend": false,
                       "tooltip": false,
                       "viz": false
                     },
                     "insertNulls": false,
                     "lineInterpolation": "linear",
                     "lineStyle": {
                       "fill": "solid"
                     },
                     "lineWidth": 1,
                     "pointSize": 5,
                     "scaleDistribution": {
                       "type": "linear"
                     },
                     "showPoints": "never",
                     "spanNulls": true,
                     "stacking": {
                       "group": "A",
                       "mode": "none"
                     },
                     "thresholdsStyle": {
                       "mode": "off"
                     }
                   },
                   "mappings": [],
                   "thresholds": {
                     "mode": "absolute",
                     "steps": [
                       {
                         "color": "green",
                         "value": null
                       }
                     ]
                   },
                   "unit": "degree"
                 },
                 "overrides": [
                   {
                     "matcher": {
                       "id": "byName",
                       "options": "Moon altitude"
                     },
                     "properties": [
                       {
                         "id": "color",
                         "value": {
                           "fixedColor": "#447EBC",
                           "mode": "fixed",
                           "seriesBy": "min"
                         }
                       },
                       {
                         "id": "displayName",
                         "value": "Mond"
                       }
                     ]
                   },
                   {
                     "matcher": {
                       "id": "byName",
                       "options": "Sun altitude"
                     },
                     "properties": [
                       {
                         "id": "color",
                         "value": {
                           "fixedColor": "#CCA300",
                           "mode": "fixed"
                         }
                       },
                       {
                         "id": "displayName",
                         "value": "Sonne"
                       }
                     ]
                   },
                   {
                     "matcher": {
                       "id": "byName",
                       "options": "Moon illumination"
                     },
                     "properties": [
                       {
                         "id": "color",
                         "value": {
                           "fixedColor": "light-blue",
                           "mode": "fixed"
                         }
                       },
                       {
                         "id": "displayName",
                         "value": "Beleuchtung"
                       }
                     ]
                   }
                 ]
               },
               "gridPos": {
                 "h": 13,
                 "w": 21,
                 "x": 0,
                 "y": 4
               },
               "id": 1,
               "options": {
                 "legend": {
                   "calcs": [],
                   "displayMode": "list",
                   "placement": "bottom",
                   "showLegend": true
                 },
                 "tooltip": {
                   "hideZeros": false,
                   "mode": "multi",
                   "sort": "none"
                 }
               },
               "pluginVersion": "11.5.1",
               "targets": [
                 {
                   "datasource": {
                     "type": "fetzerch-sunandmoon-datasource",
                     "uid": "dec4um3aintogf"
                   },
                   "refId": "A",
                   "target": [
                     "sun_altitude",
                     "moon_altitude",
                     "moon_illumination"
                   ]
                 }
               ],
               "title": "Position Sonne / Mond",
               "type": "timeseries"
             }
           ],
           "preload": false,
           "refresh": "",
           "schemaVersion": 40,
           "tags": [],
           "templating": {
             "list": []
           },
           "time": {
             "from": "now-7d",
             "to": "now"
           },
           "timepicker": {},
           "timezone": "browser",
           "title": "Astronomie",
           "uid": "000000009",
           "version": 6,
           "weekStart": ""
          }
          

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Support us

          ioBroker
          Community Adapters
          Donate

          1.0k
          Online

          31.7k
          Users

          79.6k
          Topics

          1.3m
          Posts

          3
          3
          129
          Loading More Posts
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes
          Reply
          • Reply as topic
          Log in to reply
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
          The ioBroker Community 2014-2023
          logo