Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Praktische Anwendungen (Showcase)
  4. [Linux Shell-Skript] WLAN-Wetterstation

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    3.6k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.2k

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.5k

[Linux Shell-Skript] WLAN-Wetterstation

Scheduled Pinned Locked Moved Praktische Anwendungen (Showcase)
linuxshell-scriptwetterstationwlan-wetterstation
5.7k Posts 156 Posters 3.9m Views 138 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S sonystar

    Hallo,

    bei mir sind schon seit einigen Tagen die Datenpunkte
    "0_userdata.0.Statistik.Wetter.aktueller_Monat.Temperatur_Durchschnitt"
    und
    "0_userdata.0.Statistik.Wetter.VorTag.Temperatur_Durchschnitt"
    identisch miteinander. Sie werden jeden Tag neu beschrieben, aber eben beide immer mit dem selben Wert. Das ist doch so nicht normal oder?

    NegaleinN Offline
    NegaleinN Offline
    Negalein
    Global Moderator
    wrote on last edited by
    #1818

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

    bei mir sind schon seit einigen Tagen die Datenpunkte

    Ist mir auch gerade aufgefallen.

    @SBorg

    Aktuell hats lt. Wetterstation 1,4 °C
    Lt. DP 1,11 °C

    Die 1,11 sind mindestens seit 24h.

    Screenshot_2020-12-17 Wetterstation - Grafana.png Screenshot_2020-12-17 objects - ioBroker.png

    ° Node.js & System Update ---> sudo apt update, iob stop, sudo apt full-upgrade
    ° Node.js Fixer ---> iob nodejs-update
    ° Fixer ---> iob fix

    1 Reply Last reply
    0
    • SBorgS SBorg

      @Legoracer70 Ich schau mir das mal an, sollte lösbar sein ;)

      @Grantlhaua Pauschal könnte man es auch vom "System" wegnehmen und im "User"-Content laufen lassen. Wenn aber sonst alles unter "System" läuft, ist es mehr als fraglich warum dann gerade beim booten der Start hier nicht funktionieren soll bzw. es dann gerade als "User" laufen sollte.
      Es gäbe (zumindest mal als Versuch) auch die Möglichkeit den Start als cronjob anzulegen: sudo crontab -e
      Dann als letztes einfügen (er wartet dann 60 Sekunden bis er den Service startet)

      @reboot sleep 60 && systemctl start wetterstation.service
      
      

      Wichtig ist auch zeile Nr. 2 mit einfügen (bzw. eine Leerzeile anhängen. Die Cronjob-Tabelle muss immer mit einer Leerzeile enden)!

      Eigentlich müsste man ins Log schauen. Dort sollte man sehen woran es hängt.

      G Offline
      G Offline
      Grantlhaua
      wrote on last edited by
      #1819

      @SBorg said in [Linux Shell-Skript] WLAN-Wetterstation:

      glichkeit den Start als cronjob anzulegen: sudo crontab -e

      Da steht

      cronjob.jpg

      anscheinend ist wirklich irgendwo n fehler drin.

      NegaleinN 1 Reply Last reply
      0
      • G Grantlhaua

        @SBorg said in [Linux Shell-Skript] WLAN-Wetterstation:

        glichkeit den Start als cronjob anzulegen: sudo crontab -e

        Da steht

        cronjob.jpg

        anscheinend ist wirklich irgendwo n fehler drin.

        NegaleinN Offline
        NegaleinN Offline
        Negalein
        Global Moderator
        wrote on last edited by
        #1820

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

        Da steht

        machs nochmal und drück bei der Auswahl dann 1 für Nano.

        ° Node.js & System Update ---> sudo apt update, iob stop, sudo apt full-upgrade
        ° Node.js Fixer ---> iob nodejs-update
        ° Fixer ---> iob fix

        1 Reply Last reply
        0
        • NegaleinN Offline
          NegaleinN Offline
          Negalein
          Global Moderator
          wrote on last edited by Negalein
          #1821

          @SBorg

          Bei der Luftfeuchte besteht auch ein Problem.
          Die steht mindestens seit 15. 12. ca. 19 Uhr auf 96%.

          Lt. Zeitstempel da das letztemal geändert.

          PS: gerade bemerkt, dass das Problem bei noch mehr DP besteht. Alles am 15. 12.

          PPS: dürfte mit der 2.0.0 zusammenhängen. Die hab ich um diese Zeit ca. installiert.

          Screenshot_2020-12-18 openSenseMap.png

          ° Node.js & System Update ---> sudo apt update, iob stop, sudo apt full-upgrade
          ° Node.js Fixer ---> iob nodejs-update
          ° Fixer ---> iob fix

          a200A 1 Reply Last reply
          0
          • NegaleinN Negalein

            @SBorg

            Bei der Luftfeuchte besteht auch ein Problem.
            Die steht mindestens seit 15. 12. ca. 19 Uhr auf 96%.

            Lt. Zeitstempel da das letztemal geändert.

            PS: gerade bemerkt, dass das Problem bei noch mehr DP besteht. Alles am 15. 12.

            PPS: dürfte mit der 2.0.0 zusammenhängen. Die hab ich um diese Zeit ca. installiert.

            Screenshot_2020-12-18 openSenseMap.png

            a200A Offline
            a200A Offline
            a200
            wrote on last edited by a200
            #1822

            @Negalein

            1. werden deine DP im IoBroker aktualisiert?
            2. Läuft dein Skript über Service oder Cron?
            3. Wenn über Service, dann hast du
            service wetterstation restart
            

            ausgeführt?

            IoBroker auf QNAP TS-451, Raspi und NUC

            NegaleinN 1 Reply Last reply
            0
            • a200A a200

              @Negalein

              1. werden deine DP im IoBroker aktualisiert?
              2. Läuft dein Skript über Service oder Cron?
              3. Wenn über Service, dann hast du
              service wetterstation restart
              

              ausgeführt?

              NegaleinN Offline
              NegaleinN Offline
              Negalein
              Global Moderator
              wrote on last edited by
              #1823

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

              werden deine DP im IoBroker aktualisiert?

              denke nicht. Letzte Änderung war am 15. 12.

              Läuft dein Skript über Service oder Cron?

              Cron

              ° Node.js & System Update ---> sudo apt update, iob stop, sudo apt full-upgrade
              ° Node.js Fixer ---> iob nodejs-update
              ° Fixer ---> iob fix

              a200A 1 Reply Last reply
              0
              • NegaleinN Negalein

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

                werden deine DP im IoBroker aktualisiert?

                denke nicht. Letzte Änderung war am 15. 12.

                Läuft dein Skript über Service oder Cron?

                Cron

                a200A Offline
                a200A Offline
                a200
                wrote on last edited by
                #1824

                @Negalein dann ruf mal

                wetteerstation.sh --debug
                

                auf. Poste hier die Ausgabe (Passwörter & Co vorher entfernen).

                IoBroker auf QNAP TS-451, Raspi und NUC

                NegaleinN 1 Reply Last reply
                0
                • a200A a200

                  @Negalein dann ruf mal

                  wetteerstation.sh --debug
                  

                  auf. Poste hier die Ausgabe (Passwörter & Co vorher entfernen).

                  NegaleinN Offline
                  NegaleinN Offline
                  Negalein
                  Global Moderator
                  wrote on last edited by
                  #1825

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

                  Poste hier die Ausgabe

                  dietpi@DietPi:/home/iobroker$ wetterstation.sh --debug
                  -bash: wetterstation.sh: Kommando nicht gefunden.
                  

                  ° Node.js & System Update ---> sudo apt update, iob stop, sudo apt full-upgrade
                  ° Node.js Fixer ---> iob nodejs-update
                  ° Fixer ---> iob fix

                  a200A 1 Reply Last reply
                  0
                  • NegaleinN Negalein

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

                    Poste hier die Ausgabe

                    dietpi@DietPi:/home/iobroker$ wetterstation.sh --debug
                    -bash: wetterstation.sh: Kommando nicht gefunden.
                    
                    a200A Offline
                    a200A Offline
                    a200
                    wrote on last edited by
                    #1826

                    @Negalein ok, dann fangen wir ganz vorne an. Poste mal die Ausgabe von:

                    crontab -l | grep etter
                    
                    

                    IoBroker auf QNAP TS-451, Raspi und NUC

                    NegaleinN 1 Reply Last reply
                    0
                    • a200A a200

                      @Negalein ok, dann fangen wir ganz vorne an. Poste mal die Ausgabe von:

                      crontab -l | grep etter
                      
                      
                      NegaleinN Offline
                      NegaleinN Offline
                      Negalein
                      Global Moderator
                      wrote on last edited by
                      #1827

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

                      Poste mal die Ausgabe von:

                      dietpi@DietPi:/home/iobroker$ crontab -l | grep etter
                      no crontab for dietpi
                      

                      ° Node.js & System Update ---> sudo apt update, iob stop, sudo apt full-upgrade
                      ° Node.js Fixer ---> iob nodejs-update
                      ° Fixer ---> iob fix

                      a200A 1 Reply Last reply
                      0
                      • NegaleinN Negalein

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

                        Poste mal die Ausgabe von:

                        dietpi@DietPi:/home/iobroker$ crontab -l | grep etter
                        no crontab for dietpi
                        
                        a200A Offline
                        a200A Offline
                        a200
                        wrote on last edited by
                        #1828

                        @Negalein

                        sudo crontab -l | grep etter
                        

                        IoBroker auf QNAP TS-451, Raspi und NUC

                        NegaleinN 1 Reply Last reply
                        0
                        • a200A a200

                          @Negalein

                          sudo crontab -l | grep etter
                          
                          NegaleinN Offline
                          NegaleinN Offline
                          Negalein
                          Global Moderator
                          wrote on last edited by Negalein
                          #1829

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

                          sudo crontab -l | grep etter

                          dietpi@DietPi:/home/iobroker$ sudo crontab -l | grep etter
                          @reboot /home/iobroker/wetterstation.sh &
                          2 0 * * * pkill -9 wetterstation.sh && /home/iobroker/wetterstation.sh &
                          

                          ° Node.js & System Update ---> sudo apt update, iob stop, sudo apt full-upgrade
                          ° Node.js Fixer ---> iob nodejs-update
                          ° Fixer ---> iob fix

                          a200A 1 Reply Last reply
                          0
                          • NegaleinN Negalein

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

                            sudo crontab -l | grep etter

                            dietpi@DietPi:/home/iobroker$ sudo crontab -l | grep etter
                            @reboot /home/iobroker/wetterstation.sh &
                            2 0 * * * pkill -9 wetterstation.sh && /home/iobroker/wetterstation.sh &
                            
                            a200A Offline
                            a200A Offline
                            a200
                            wrote on last edited by
                            #1830

                            @Negalein super. jetzt:

                            sudo /home/iobroker/wetterstation.sh --debug
                            

                            IoBroker auf QNAP TS-451, Raspi und NUC

                            NegaleinN 1 Reply Last reply
                            0
                            • a200A a200

                              @Negalein super. jetzt:

                              sudo /home/iobroker/wetterstation.sh --debug
                              
                              NegaleinN Offline
                              NegaleinN Offline
                              Negalein
                              Global Moderator
                              wrote on last edited by
                              #1831

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

                              sudo /home/iobroker/wetterstation.sh --debug

                              dietpi@DietPi:/home/iobroker$ sudo /home/iobroker/wetterstation.sh --debug
                              wetterstation: ERROR #000 - Config-Version mismatch!
                              
                              benutzt: V2.0.0  benötigt wird: V1.4.0
                              
                              

                              ° Node.js & System Update ---> sudo apt update, iob stop, sudo apt full-upgrade
                              ° Node.js Fixer ---> iob nodejs-update
                              ° Fixer ---> iob fix

                              a200A SBorgS 2 Replies Last reply
                              0
                              • NegaleinN Negalein

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

                                sudo /home/iobroker/wetterstation.sh --debug

                                dietpi@DietPi:/home/iobroker$ sudo /home/iobroker/wetterstation.sh --debug
                                wetterstation: ERROR #000 - Config-Version mismatch!
                                
                                benutzt: V2.0.0  benötigt wird: V1.4.0
                                
                                
                                a200A Offline
                                a200A Offline
                                a200
                                wrote on last edited by
                                #1832

                                @Negalein Wie hast du upgedatet?

                                sudo /home/iobroker/ws_updater.sh
                                

                                IoBroker auf QNAP TS-451, Raspi und NUC

                                NegaleinN 1 Reply Last reply
                                0
                                • a200A a200

                                  @Negalein Wie hast du upgedatet?

                                  sudo /home/iobroker/ws_updater.sh
                                  
                                  NegaleinN Offline
                                  NegaleinN Offline
                                  Negalein
                                  Global Moderator
                                  wrote on last edited by Negalein
                                  #1833

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

                                  sudo /home/iobroker/ws_updater.sh

                                  ja

                                  Screenshot 2020-12-18 111509.png

                                  ° Node.js & System Update ---> sudo apt update, iob stop, sudo apt full-upgrade
                                  ° Node.js Fixer ---> iob nodejs-update
                                  ° Fixer ---> iob fix

                                  a200A 1 Reply Last reply
                                  0
                                  • NegaleinN Negalein

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

                                    sudo /home/iobroker/ws_updater.sh

                                    ja

                                    Screenshot 2020-12-18 111509.png

                                    a200A Offline
                                    a200A Offline
                                    a200
                                    wrote on last edited by
                                    #1834

                                    @Negalein hast du vorher die Dateien:
                                    wetterstation.sh
                                    wetterstation.sub
                                    ws-updater.sh

                                    aus der 2.0 Version nach /home/iobroker kopiert? Zur Sicherheit kopiere die Dateien jetzt und führe den ws-updater aus.

                                    IoBroker auf QNAP TS-451, Raspi und NUC

                                    a200A NegaleinN 2 Replies Last reply
                                    0
                                    • a200A a200

                                      @Negalein hast du vorher die Dateien:
                                      wetterstation.sh
                                      wetterstation.sub
                                      ws-updater.sh

                                      aus der 2.0 Version nach /home/iobroker kopiert? Zur Sicherheit kopiere die Dateien jetzt und führe den ws-updater aus.

                                      a200A Offline
                                      a200A Offline
                                      a200
                                      wrote on last edited by
                                      #1835

                                      @Negalein poste mal die Ausgabe von:

                                      head wetterstation.sh wetterstation.sub wetterstation.conf
                                      

                                      IoBroker auf QNAP TS-451, Raspi und NUC

                                      1 Reply Last reply
                                      0
                                      • NegaleinN Negalein

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

                                        sudo /home/iobroker/wetterstation.sh --debug

                                        dietpi@DietPi:/home/iobroker$ sudo /home/iobroker/wetterstation.sh --debug
                                        wetterstation: ERROR #000 - Config-Version mismatch!
                                        
                                        benutzt: V2.0.0  benötigt wird: V1.4.0
                                        
                                        
                                        SBorgS Offline
                                        SBorgS Offline
                                        SBorg
                                        Forum Testing Most Active
                                        wrote on last edited by
                                        #1836

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

                                        benutzt: V2.0.0 benötigt wird: V1.4.0

                                        Bedeutet, dass es Version 1.4 ist, mittels Updater aber auf V2.0 geupdated wurde. Falsche sub/sh, bzw. vergessen zu kopieren?

                                        LG SBorg ( SBorg auf GitHub)
                                        Projekte: Lebensmittelwarnung.de | WLAN-Wetterstation | PimpMyStation

                                        1 Reply Last reply
                                        0
                                        • a200A a200

                                          @Negalein hast du vorher die Dateien:
                                          wetterstation.sh
                                          wetterstation.sub
                                          ws-updater.sh

                                          aus der 2.0 Version nach /home/iobroker kopiert? Zur Sicherheit kopiere die Dateien jetzt und führe den ws-updater aus.

                                          NegaleinN Offline
                                          NegaleinN Offline
                                          Negalein
                                          Global Moderator
                                          wrote on last edited by
                                          #1837

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

                                          ühre den ws-updater aus

                                          dietpi@DietPi:/home/iobroker$ sudo ./ws_updater.sh
                                          
                                           'bc' installiert: ✓
                                           'jq' installiert: ✓
                                          
                                          
                                           Version ist aktuell, nothing to do...
                                          
                                          

                                          head wetterstation.sh wetterstation.sub wetterstation.conf

                                          dietpi@DietPi:/home/iobroker$ head wetterstation.sh wetterstation.sub wetterstation.conf
                                          ==> wetterstation.sh <==
                                          #!/bin/bash
                                          
                                          # V2.0.0 - 15.12.2020 (c) 2019-2020 SBorg
                                          #
                                          # wertet ein Datenpaket einer WLAN-Wetterstation im Wunderground-Format aus, konvertiert dieses und überträgt
                                          # die Daten an den ioBroker
                                          #
                                          # benötigt den 'Simple RESTful API'-Adapter im ioBroker, 'jq' und 'bc' unter Linux
                                          #
                                          # V2.0.0 / 15.12.2020 - + Unterstützung des Gateways und Zusatzsensoren (@a200)
                                          
                                          ==> wetterstation.sub <==
                                          #!/bin/bash
                                          ### Subroutinen V2.0.0 --------------------------------------------------------
                                          
                                          
                                           #Bezeichnung der Datenpunkte
                                            DP_TEMP_INNEN=${PRE_DP}.Innentemperatur
                                            DP_TEMP_AUSSEN=${PRE_DP}.Aussentemperatur
                                            DP_TAUPUNKT=${PRE_DP}.Taupunkt
                                            DP_CHILL=${PRE_DP}.Chillfaktor
                                            DP_FEUCHTE_INNEN=${PRE_DP}.Innenfeuchtigkeit
                                          
                                          ==> wetterstation.conf <==
                                          ### Settings V2.0.0 -----------------------------------------------------------
                                           #Debuging einschalten [true/false] / default: false / Ausgabe der Messwerte
                                            debug=false
                                          
                                           #ioBroker-IP und Port der Simple-Restful-API [xxx.xxx.xxx.xxx:xxxxx]
                                            IPP=10.0.1.200:8087
                                          
                                           #Protokoll der Wetterstation [1/2] / 1=Wunderground ; 2=Ecowitt / default: 1
                                            WS_PROTOKOLL=1
                                          
                                          dietpi@DietPi:/home/iobroker$
                                          
                                          

                                          ° Node.js & System Update ---> sudo apt update, iob stop, sudo apt full-upgrade
                                          ° Node.js Fixer ---> iob nodejs-update
                                          ° Fixer ---> iob fix

                                          a200A 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          444

                                          Online

                                          32.7k

                                          Users

                                          82.4k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe