Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Praktische Anwendungen (Showcase)
    4. [Linux Shell-Skript] WLAN-Wetterstation

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [Linux Shell-Skript] WLAN-Wetterstation

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

      Hallo und erstmal Danke für dieses tolle Projekt.

      Ich bin seit ein paar Tagen am testen mit einer froggit hp1000se pro und zusätzlich einen DP100. Als Protokoll ist Ecowitt ausgewählt.

      Nach einer kleinen Änderung funktioniert nun auch der Zusatzsensor DP100.
      Ich habe in der Zeile 204 von wetterstation.sh

           if [[ ${MESSWERTERAWIN[$i]} =~ ^soilmoisture1[1-8]= ]]
      auf 
           if [[ ${MESSWERTERAWIN[$i]} =~ ^soilmoisture[1-8]= ]]
      

      geändert.

      Und in Zeile 188 von wettersation.sub

               if [[ "${MESSWERTE[$i]}" =~ ^soilmoisture[1-8] ]]; then IOBOUT="${IOBOUT}&${PRE_DP}.DP100.${MESSWERTE[$i]:12:1}.Batterie=${MESSWERTE[$(($i+1))]}"; fiin
      
      auf
      
               if [[ "${MESSWERTE[$i]}" =~ ^soilmoisture[1-8] ]]; then IOBOUT="${IOBOUT}&${PRE_DP}.DP100.${MESSWERTE[$i]:12:1}.Bodenfeuchtigkeit=${MESSWERTE[$(($i+1))]}"; fi
      

      geändert.

      Vielleicht ist dieses ja noch ein kleiner Fehler im Code.

      DATA von Wetterstation:

      PASSKEY=xxxx&stationtype=EasyWeatherV1.4.6&dateutc=2021-01-04+20:28:43&tempinf=42.3&humidityin=74&baromrelin=29.988&baromabsin=29.988&tempf=34.3&humidity=96&winddir=8&winddir_avg10m=18&windspeedmph=1.8&windspdmph_avg10m=1.8&windgustmph=3.4&maxdailygust=9.2&rainratein=0.000&eventrainin=0.000&hourlyrainin=0.000&dailyrainin=0.189&weeklyrainin=0.331&monthlyrainin=0.339&yearlyrainin=0.339&solarradiation=0.00&uv=0&soilmoisture1=23&wh65batt=0&wh25batt=0&soilbatt1=1.5&freq=868M&model=HP1000SE-PRO_Pro_V1.6.7
      
      a200 1 Reply Last reply Reply Quote 1
      • a200
        a200 @christian90 last edited by

        @christian90 sagte in [Linux Shell-Skript] WLAN-Wetterstation:

        soilmoisture

        Vielen Dank. Das habe ich verbrochen. natürlich muss die 1 bei soilmoisture1 weg und . Es sind blöde cut&paste Fehler. Da ich aber keinen DP100 Sensor habe, konnte ich es auch nicht testen. Wir werden diese Korrekturen in die nächste Version übernehmen.

        1 Reply Last reply Reply Quote 1
        • SBorg
          SBorg Forum Testing Most Active @Nashra last edited by

          @Nashra sagte in [Linux Shell-Skript] WLAN-Wetterstation:

          Wird angezeigt

          Danke, dann ändere ich es für die nächste Version 🙂

          @Petersilie sagte in [Linux Shell-Skript] WLAN-Wetterstation:

          ...und die meisten Daten als String übermittelt.

          Passiert leider bei "Automatisch" öfters. Ich habe mir angewöhnt es auf Number bzw. String zu stellen.

          @christian90 sagte in [Linux Shell-Skript] WLAN-Wetterstation:

          Nach einer kleinen Änderung funktioniert nun auch der Zusatzsensor DP100.

          So will ich das ab jetzt immer haben. Fehler finden und gleich den passenden Fix mitliefern... 😁 😇 😎 👍

          1 Reply Last reply Reply Quote 2
          • S
            sonystar @SBorg last edited by

            @SBorg Dankeschön. Hab den Wert nun händisch angepasst.

            1 Reply Last reply Reply Quote 0
            • SBorg
              SBorg Forum Testing Most Active @SBorg last edited by

              Neue Version des Wetterstation-Statistik-Addons auf GitHub V0.1.8

              • +max. Windböe für Gestern und Jahres-/Rekordwerte

              Wie immer zu finden im GitHub (wetterstation-statistik.js)

              S SBorg 2 Replies Last reply Reply Quote 4
              • S
                sonystar @SBorg last edited by

                @SBorg Dankeschön!

                Langsam nimmt meine Visu auch Formen an 😊

                VISU_Wetterstation.png

                Negalein 1 Reply Last reply Reply Quote 2
                • Negalein
                  Negalein Global Moderator @sonystar last edited by

                  @sonystar sagte in [Linux Shell-Skript] WLAN-Wetterstation:

                  Langsam nimmt meine Visu auch Formen an

                  schaut gut aus!

                  Würdest du den mittleren und rechten unteren Teil als Json exportieren?
                  Oder falls einzeln nicht geht, das ganze Dashboard.

                  Würde gern Teile davon übernehmen.

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    sonystar @Negalein last edited by

                    @Negalein

                    Danke!

                    Wenn du mir sagst wie das geht mach ich das gerne.
                    Rechts unten sind allerdings Datenpunkte aus dem Sourceanalytix-Adapter.

                    Negalein 1 Reply Last reply Reply Quote 0
                    • Negalein
                      Negalein Global Moderator @sonystar last edited by

                      @sonystar sagte in [Linux Shell-Skript] WLAN-Wetterstation:

                      Wenn du mir sagst wie das geht mach ich das gerne.

                      Danke

                      log.gif

                      Rechts unten sind allerdings Datenpunkte aus dem Sourceanalytix-Adapter.

                      kein Problem. Damit logge ich auch.

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        sonystar @Negalein last edited by

                        @Negalein
                        Hier (hoffentlich) das JSON für das Diagramm unten rechts.

                        {
                          "fieldConfig": {
                            "defaults": {
                              "custom": {},
                              "unit": "lengthmm",
                              "decimals": 1,
                              "thresholds": {
                                "mode": "absolute",
                                "steps": [
                                  {
                                    "color": "dark-blue",
                                    "value": null
                                  }
                                ]
                              },
                              "mappings": []
                            },
                            "overrides": []
                          },
                          "gridPos": {
                            "h": 8,
                            "w": 12,
                            "x": 0,
                            "y": 0
                          },
                          "id": 23763571993,
                          "options": {
                            "reduceOptions": {
                              "values": false,
                              "calcs": [
                                "max"
                              ],
                              "fields": ""
                            },
                            "orientation": "horizontal",
                            "displayMode": "basic",
                            "showUnfilled": true
                          },
                          "pluginVersion": "7.3.4",
                          "targets": [
                            {
                              "alias": "Januar",
                              "groupBy": [
                                {
                                  "params": [
                                    "$__interval"
                                  ],
                                  "type": "time"
                                },
                                {
                                  "params": [
                                    "null"
                                  ],
                                  "type": "fill"
                                }
                              ],
                              "measurement": "sourceanalytix.0.javascript__0__Wetterstation__Regen_Jahr.2021.consumed.months.01_January",
                              "orderByTime": "ASC",
                              "policy": "default",
                              "refId": "A",
                              "resultFormat": "time_series",
                              "select": [
                                [
                                  {
                                    "params": [
                                      "value"
                                    ],
                                    "type": "field"
                                  },
                                  {
                                    "params": [],
                                    "type": "max"
                                  }
                                ]
                              ],
                              "tags": []
                            },
                            {
                              "alias": "Februar",
                              "groupBy": [
                                {
                                  "params": [
                                    "$__interval"
                                  ],
                                  "type": "time"
                                },
                                {
                                  "params": [
                                    "null"
                                  ],
                                  "type": "fill"
                                }
                              ],
                              "measurement": "sourceanalytix.0.javascript__0__Wetterstation__Regen_Jahr.2021.consumed.months.02_February",
                              "orderByTime": "ASC",
                              "policy": "default",
                              "refId": "B",
                              "resultFormat": "time_series",
                              "select": [
                                [
                                  {
                                    "params": [
                                      "value"
                                    ],
                                    "type": "field"
                                  },
                                  {
                                    "params": [],
                                    "type": "max"
                                  }
                                ]
                              ],
                              "tags": []
                            },
                            {
                              "alias": "März",
                              "groupBy": [
                                {
                                  "params": [
                                    "$__interval"
                                  ],
                                  "type": "time"
                                },
                                {
                                  "params": [
                                    "null"
                                  ],
                                  "type": "fill"
                                }
                              ],
                              "measurement": "sourceanalytix.0.javascript__0__Wetterstation__Regen_Jahr.2021.consumed.months.03_March",
                              "orderByTime": "ASC",
                              "policy": "default",
                              "refId": "C",
                              "resultFormat": "time_series",
                              "select": [
                                [
                                  {
                                    "params": [
                                      "value"
                                    ],
                                    "type": "field"
                                  },
                                  {
                                    "params": [],
                                    "type": "max"
                                  }
                                ]
                              ],
                              "tags": []
                            },
                            {
                              "alias": "April",
                              "groupBy": [
                                {
                                  "params": [
                                    "$__interval"
                                  ],
                                  "type": "time"
                                },
                                {
                                  "params": [
                                    "null"
                                  ],
                                  "type": "fill"
                                }
                              ],
                              "measurement": "sourceanalytix.0.javascript__0__Wetterstation__Regen_Jahr.2021.consumed.months.04_April",
                              "orderByTime": "ASC",
                              "policy": "default",
                              "refId": "D",
                              "resultFormat": "time_series",
                              "select": [
                                [
                                  {
                                    "params": [
                                      "value"
                                    ],
                                    "type": "field"
                                  },
                                  {
                                    "params": [],
                                    "type": "max"
                                  }
                                ]
                              ],
                              "tags": []
                            },
                            {
                              "alias": "Mai",
                              "groupBy": [
                                {
                                  "params": [
                                    "$__interval"
                                  ],
                                  "type": "time"
                                },
                                {
                                  "params": [
                                    "null"
                                  ],
                                  "type": "fill"
                                }
                              ],
                              "measurement": "sourceanalytix.0.javascript__0__Wetterstation__Regen_Jahr.2021.consumed.months.05_May",
                              "orderByTime": "ASC",
                              "policy": "default",
                              "refId": "E",
                              "resultFormat": "time_series",
                              "select": [
                                [
                                  {
                                    "params": [
                                      "value"
                                    ],
                                    "type": "field"
                                  },
                                  {
                                    "params": [],
                                    "type": "max"
                                  }
                                ]
                              ],
                              "tags": []
                            },
                            {
                              "alias": "Juni",
                              "groupBy": [
                                {
                                  "params": [
                                    "$__interval"
                                  ],
                                  "type": "time"
                                },
                                {
                                  "params": [
                                    "null"
                                  ],
                                  "type": "fill"
                                }
                              ],
                              "measurement": "sourceanalytix.0.javascript__0__Wetterstation__Regen_Jahr.2021.consumed.months.06_June",
                              "orderByTime": "ASC",
                              "policy": "default",
                              "refId": "F",
                              "resultFormat": "time_series",
                              "select": [
                                [
                                  {
                                    "params": [
                                      "value"
                                    ],
                                    "type": "field"
                                  },
                                  {
                                    "params": [],
                                    "type": "max"
                                  }
                                ]
                              ],
                              "tags": []
                            },
                            {
                              "alias": "Juli",
                              "groupBy": [
                                {
                                  "params": [
                                    "$__interval"
                                  ],
                                  "type": "time"
                                },
                                {
                                  "params": [
                                    "null"
                                  ],
                                  "type": "fill"
                                }
                              ],
                              "measurement": "sourceanalytix.0.javascript__0__Wetterstation__Regen_Jahr.2020.consumed.months.07_July",
                              "orderByTime": "ASC",
                              "policy": "default",
                              "refId": "G",
                              "resultFormat": "time_series",
                              "select": [
                                [
                                  {
                                    "params": [
                                      "value"
                                    ],
                                    "type": "field"
                                  },
                                  {
                                    "params": [],
                                    "type": "mean"
                                  }
                                ]
                              ],
                              "tags": []
                            },
                            {
                              "alias": "August",
                              "groupBy": [
                                {
                                  "params": [
                                    "$__interval"
                                  ],
                                  "type": "time"
                                },
                                {
                                  "params": [
                                    "null"
                                  ],
                                  "type": "fill"
                                }
                              ],
                              "measurement": "sourceanalytix.0.javascript__0__Wetterstation__Regen_Jahr.2021.consumed.months.08_August",
                              "orderByTime": "ASC",
                              "policy": "default",
                              "refId": "H",
                              "resultFormat": "time_series",
                              "select": [
                                [
                                  {
                                    "params": [
                                      "value"
                                    ],
                                    "type": "field"
                                  },
                                  {
                                    "params": [],
                                    "type": "max"
                                  }
                                ]
                              ],
                              "tags": []
                            },
                            {
                              "alias": "September",
                              "groupBy": [
                                {
                                  "params": [
                                    "$__interval"
                                  ],
                                  "type": "time"
                                },
                                {
                                  "params": [
                                    "null"
                                  ],
                                  "type": "fill"
                                }
                              ],
                              "measurement": "sourceanalytix.0.javascript__0__Wetterstation__Regen_Jahr.2021.consumed.months.09_September",
                              "orderByTime": "ASC",
                              "policy": "default",
                              "refId": "I",
                              "resultFormat": "time_series",
                              "select": [
                                [
                                  {
                                    "params": [
                                      "value"
                                    ],
                                    "type": "field"
                                  },
                                  {
                                    "params": [],
                                    "type": "max"
                                  }
                                ]
                              ],
                              "tags": []
                            },
                            {
                              "alias": "Oktober",
                              "groupBy": [
                                {
                                  "params": [
                                    "$__interval"
                                  ],
                                  "type": "time"
                                },
                                {
                                  "params": [
                                    "null"
                                  ],
                                  "type": "fill"
                                }
                              ],
                              "measurement": "sourceanalytix.0.javascript__0__Wetterstation__Regen_Jahr.2021.consumed.months.10_October",
                              "orderByTime": "ASC",
                              "policy": "default",
                              "refId": "J",
                              "resultFormat": "time_series",
                              "select": [
                                [
                                  {
                                    "params": [
                                      "value"
                                    ],
                                    "type": "field"
                                  },
                                  {
                                    "params": [],
                                    "type": "max"
                                  }
                                ]
                              ],
                              "tags": []
                            },
                            {
                              "alias": "November",
                              "groupBy": [
                                {
                                  "params": [
                                    "$__interval"
                                  ],
                                  "type": "time"
                                },
                                {
                                  "params": [
                                    "null"
                                  ],
                                  "type": "fill"
                                }
                              ],
                              "measurement": "sourceanalytix.0.javascript__0__Wetterstation__Regen_Jahr.2021.consumed.months.11_November",
                              "orderByTime": "ASC",
                              "policy": "default",
                              "refId": "K",
                              "resultFormat": "time_series",
                              "select": [
                                [
                                  {
                                    "params": [
                                      "value"
                                    ],
                                    "type": "field"
                                  },
                                  {
                                    "params": [],
                                    "type": "max"
                                  }
                                ]
                              ],
                              "tags": []
                            },
                            {
                              "alias": "Dezember",
                              "groupBy": [
                                {
                                  "params": [
                                    "$__interval"
                                  ],
                                  "type": "time"
                                },
                                {
                                  "params": [
                                    "null"
                                  ],
                                  "type": "fill"
                                }
                              ],
                              "measurement": "sourceanalytix.0.javascript__0__Wetterstation__Regen_Jahr.2021.consumed.months.12_December",
                              "orderByTime": "ASC",
                              "policy": "default",
                              "refId": "L",
                              "resultFormat": "time_series",
                              "select": [
                                [
                                  {
                                    "params": [
                                      "value"
                                    ],
                                    "type": "field"
                                  },
                                  {
                                    "params": [],
                                    "type": "max"
                                  }
                                ]
                              ],
                              "tags": []
                            }
                          ],
                          "timeFrom": null,
                          "timeShift": null,
                          "title": "Niederschlagsmenge 2021",
                          "type": "bargauge",
                          "datasource": null
                        }
                        

                        Die Visu ist allerdings in VIS aufgebaut, nur die Diagramme kommen aus Grafana.

                        Negalein Nashra 2 Replies Last reply Reply Quote 0
                        • Negalein
                          Negalein Global Moderator @sonystar last edited by

                          @sonystar sagte in [Linux Shell-Skript] WLAN-Wetterstation:

                          Hier (hoffentlich) das JSON für das Diagramm unten rechts.

                          Danke, hat geklappt! 🙂
                          Schaffst du den mittleren Teil auch noch?

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            sonystar @Negalein last edited by

                            @Negalein

                            Wie gesagt, die Visu ist in VIS, nur die Diagramme kommen aus Grafana.
                            Kann dir gerne den View exportieren wenn du das möchtest?

                            Negalein 1 Reply Last reply Reply Quote 0
                            • Negalein
                              Negalein Global Moderator @sonystar last edited by

                              @sonystar sagte in [Linux Shell-Skript] WLAN-Wetterstation:

                              Wie gesagt, die Visu ist in VIS, nur die Diagramme kommen aus Grafana.

                              Ah, jetzt versteh ich! 🙂

                              Kann dir gerne den View exportieren wenn du das möchtest?

                              Ja bitte

                              S 1 Reply Last reply Reply Quote 0
                              • S
                                sonystar @Negalein last edited by sonystar

                                @Negalein

                                Hier der View aus VIS


                                Neues Textdokument.txt

                                Mir gefällt die Windrose noch nicht, da hätte ich gerne so etwas wie @Glasfaser z.B., aber in Vis. Bin da noch nicht so richtig dahintergestiegen.

                                Glasfaser 1 Reply Last reply Reply Quote 2
                                • Glasfaser
                                  Glasfaser @sonystar last edited by

                                  @sonystar

                                  Brauchst du das !?

                                  1.JPG

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    sonystar @Glasfaser last edited by

                                    @Glasfaser Wenn du so freundlich wärst? Kommt das aus VIS oder Grafana?

                                    Glasfaser 1 Reply Last reply Reply Quote 0
                                    • Glasfaser
                                      Glasfaser @sonystar last edited by

                                      @sonystar

                                      Ist aus VIS

                                      S 1 Reply Last reply Reply Quote 0
                                      • S
                                        sonystar @Glasfaser last edited by

                                        @Glasfaser

                                        Dann bitte ja 😊

                                        Glasfaser 2 Replies Last reply Reply Quote 0
                                        • Glasfaser
                                          Glasfaser @sonystar last edited by Glasfaser

                                          1.JPG

                                          View.txt


                                          windfinder_windrose.png kompass_2_nadel.png
                                          1560763672848-sonne.png


                                          Einstellung im Widget
                                          .
                                          1.JPG
                                          .

                                          <img style="transform: rotate({javascript.0.Wetterstation.Windrichtung}deg); position: absolute; width: 100%;" src="/vis.0/Home/Wetter/kompass_2_nadel.png" data-pin-nopin="true">
                                          

                                          /vis.0/Home/Wetter/kompass_2_nadel.png

                                          diesen Pfad an deinen anpassen


                                          CSS Hintergrundelement

                                          .transparent_box{
                                              opacity:0.8;
                                              background-color:#ffffff;
                                              padding-left:0px;
                                              padding-top:0px;
                                              border:#acacac solid 0px;
                                              border-radius:8px;
                                              box-shadow:6px 0px 12px 0 #161616;
                                              z-index:1;
                                          }
                                          

                                          SBorg T 2 Replies Last reply Reply Quote 5
                                          • Glasfaser
                                            Glasfaser @sonystar last edited by

                                            @sonystar

                                            Habe es als ganzes Exportiert !

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            867
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            linux shell-script wetterstation wlan-wetterstation
                                            143
                                            5478
                                            3279613
                                            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