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

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    [Linux Shell-Skript] WLAN-Wetterstation

    This topic has been deleted. Only users with topic management privileges can see it.
    • Nashra
      Nashra Most Active Forum Testing @Glasfaser last edited by Nashra

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

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

      @Nashra hatte wohl ein Problem damit.

      Neee.... nur mit Influx 😉

      Moin, habe mal deinen Rat befolgt und die DP neu angelegt sowie eine weitere Instanz von Influxdb.
      Wir kommen der Sache näher d.h. jetzt wird endlich was angezeigt warum

      2020-03-15 09:17:41.348 - info: influxdb.1 (22694) enabled logging of javascript.0.Wetterstation.Regen_Monat, Alias=false
      2020-03-15 09:17:41.370 - warn: influxdb.1 (22694) Error on writePoint("{"value":67.1,"time":"2020-03-15T08:17:41.353Z","from":"system.adapter.influxdb.1","q":0,"ack":false}): Error: {"error":"partial write: field type conflict: input field \"value\" on measurement \"javascript.0.Wetterstation.Regen_Monat\" is type float, already exists as type string dropped=1"}
      / "{\"error\":\"partial write: field type conflict: input field \\\"value\\\" on measurement \\\"javascript.0.Wetterstation.Regen_Monat\\\" is type float, already exists as type string dropped=1\"}\n"
      2020-03-15 09:17:41.371 - info: influxdb.1 (22694) Try to convert and re-write for javascript.0.Wetterstation.Regen_Monat and set storageType to String
      2020-03-15 09:17:41.452 - info: influxdb.1 (22694) changed history configuration to pin detected datatype for javascript.0.Wetterstation.Regen_Monat
      2020-03-15 09:17:41.458 - info: influxdb.1 (22694) enabled logging of javascript.0.Wetterstation.Regen_Monat, Alias=false
      
      SBorg 1 Reply Last reply Reply Quote 0
      • SBorg
        SBorg Forum Testing Most Active @Glasfaser last edited by

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

        @SBorg

        Ist ja richtig was los hier 🙂

        Die Version V1.0.0 funktioniert sehr gut ... Danke ....

        Wohl wahr, ich muss jetzt auch erst mal gefühlte 100 Posts lesen 😉
        Danke für die Rückmeldung.

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

          @SBorg aktueller Stand bei mir ist:
          das ich mit dem Neuen Script gar keine Werte bekomme, siehe hier

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

            @crunchip Ich erinnere mich. Die Änderungen waren aber notwendig, denn die Verbindung wird sonst zu früh beendet. Siehst du am besten hier:

            ...EasyWeatherV1.4.7&action=updateraw&realtime=1&rtfreq=5 Connection: Close

            Da kommt normalerweise noch was an Daten und "Connection: Close" hat da mal überhaupt nix zu suchen.
            Beende mal das Skript (pkill...) und führe mal nur nc -lv -w 1 -p 55555 aus. Er hatte ja bei dir auch Probleme ohne "-p", ev. will er bei dir einfach kein "-lvw 1". Den Test kannst du auch mit der V0.1.4 machen, denn es ist eher ein nc/Docker Test 😉

            *EDIT* war gerade noch am lesen 🙂

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

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

              nc -lv -w 1 -p 55555

              da kommt no connection : Connection timed out

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

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

                Gibt es eigentlich eine Gui für Influxdb wo man mal sehen könnte wie die DB aufgebaut ist sowie bei mySQL oder ähnlich.

                Ich kenne keine wie bspw. MySQL-Admin bei SQL. Mir ist nur per influx im Terminal bekannt.

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

                  @crunchip Wenn du nur "nc" eingibst steht da bei den Parametern [-w timeout] (oder so ähnlich)

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

                    @SBorg

                    root@IoBroker:~# nc
                    Cmd line:
                    
                    SBorg 1 Reply Last reply Reply Quote 0
                    • SBorg
                      SBorg Forum Testing Most Active @Nashra last edited by

                      @Nashra Hmm, er will es als "String" loggen, obwohl er eine Zahl (float) erkannt hat.
                      Sind die zwei Datenpunkte wirklich als "Zahl" angelegt?
                      Bild 1.png

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

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

                        @SBorg

                        root@IoBroker:~# nc
                        Cmd line:
                        

                        😎 oder auch nicht. Da ist der Fehler. Dein Docker nutzt anscheinend eine ältere Version von "nc". Der kann dann wohl kein "-w"
                        Versuch mal nc --help

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

                          @SBorg

                          [v1.10-41+b1]
                          connect to somewhere:   nc [-options] hostname port[s] [ports] ...
                          listen for inbound:     nc -l -p port [-options] [hostname] [port]
                          options:
                                  -c shell commands       as `-e'; use /bin/sh to exec [dangerous!!]
                                  -e filename             program to exec after connect [dangerous!!]
                                  -b                      allow broadcasts
                                  -g gateway              source-routing hop point[s], up to 8
                                  -G num                  source-routing pointer: 4, 8, 12, ...
                                  -h                      this cruft
                                  -i secs                 delay interval for lines sent, ports scanned
                                  -k                      set keepalive option on socket
                                  -l                      listen mode, for inbound connects
                                  -n                      numeric-only IP addresses, no DNS
                                  -o file                 hex dump of traffic
                                  -p port                 local port number
                                  -r                      randomize local and remote ports
                                  -q secs                 quit after EOF on stdin and delay of secs
                                  -s addr                 local source address
                                  -T tos                  set Type Of Service
                                  -t                      answer TELNET negotiation
                                  -u                      UDP mode
                                  -v                      verbose [use twice to be more verbose]
                                  -w secs                 timeout for connects and final net reads
                                  -C                      Send CRLF as line-ending
                                  -z                      zero-I/O mode [used for scanning]
                          port numbers can be individual or ranges: lo-hi [inclusive];
                          hyphens in port names must be backslash escaped (e.g. 'ftp\-data').
                          
                          SBorg 1 Reply Last reply Reply Quote 0
                          • SBorg
                            SBorg Forum Testing Most Active @crunchip last edited by

                            @crunchip Zumindest hat er "w", aber eine andere Reihenfolge? Sollte zwar IMO egal sein, aber wenn sie es so schreiben...
                            nc -l -p 55555 -v -w 1

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

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

                              nc -l -p 55555 -v -w 1

                              das gleiche, no connection

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

                                @crunchip Bild 1.png
                                Erklärt warum es bei dir nur mit "p" läuft. Ev, gibt es noch mehr Unterschiede. Installiere doch mal versuchsweise den netcat-openbsd

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

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

                                  netcat-openbsd

                                  hab ich gemacht
                                  mit nc -l -p 55555 -v -w 1 kommen auch nun die werte👍

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

                                    @crunchip Puuuhhh, schwere Geburt 😁
                                    Jetzt müsste dann auch bei dir die V1.0.0 laufen 🙂

                                    ...und Jahresregenmenge funktioniert nun schon den 3. Tag hintereinander. Heute wird es nix werden, strahlender Sonnenschein und 0mm Regen 🤘

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

                                      @SBorg
                                      allerdings....aber Dank deiner Hilfe 😊 👍
                                      probiere ich gleich aus, aber ich befürchte, ich hab schon wieder das Problem, das 2mal ausgeführt wird,....hab ich zumindest vorhin gesehen.
                                      aber ich schmeiss jetzt erst mal das neu script drauf und hoffe das jetzt Daten kommen

                                      oder liegt mein Fehler im Cron anlegen?
                                      Script liegt ja in /home/iobroker....also user iobroker
                                      den Cron hab ich aber als root angelegt, oder muss ich mich dafür als user iobroker anmelden?

                                      Script läuft und auch kein Kommunikationsfehler mehr

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

                                      strahlender Sonnenschein und 0mm Regen

                                      c391b75a-3018-49d7-9f23-d6e98ec11d1d-image.png

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

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

                                        @Nashra Hmm, er will es als "String" loggen, obwohl er eine Zahl (float) erkannt hat.
                                        Sind die zwei Datenpunkte wirklich als "Zahl" angelegt?
                                        Bild 1.png

                                        Ja sind als Zahl.

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

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

                                          probiere ich gleich aus, aber ich befürchte, ich hab schon wieder das Problem, das 2mal ausgeführt wird,....hab ich zumindest vorhin gesehen.
                                          aber ich schmeiss jetzt erst mal das neu script drauf und hoffe das jetzt Daten kommen
                                          oder liegt mein Fehler im Cron anlegen?
                                          Script liegt ja in /home/iobroker....also user iobroker
                                          den Cron hab ich aber als root angelegt, oder muss ich mich dafür als user iobroker anmelden?

                                          Ne du, da war/ist schon alles korrekt, ich habe mich auch zum Teil verguckt 😞
                                          Es gibt quasi ein korrektes 2x laufen und ein doppelt laufen. Hä...?!?
                                          Doppelt laufen im Sinne von zwei mal gestartet, dies wäre falsch. Aber das Skript läuft "scheinbar" trotzdem doppelt.
                                          Einmal das "echte" Skript und dann noch quasi ein Zombie. Das ist aber nichts weiter als die wetterstation.sub, die Funktionen für das Skript bereitstellt. Da hier aber auf das Datenpaket der Station gewartet wird, sieht es fast so aus als würde es dauernd laufen. Dies kann man daran erkennen, dass die sog. VSZ gleich ist (weiß):
                                          Bild 1.png
                                          Im gelben Rahmen sieht man dann, dass ich am 15.03. das Skript gestartet habe und um 13:16 Uhr den ps -aux | grep wetter, der dann zur gleichen Zeit den "Zombie" erwischt hat.
                                          Würde ich ihn aktuell (13:38 Uhr) erneut ausführen, wäre VSZ mit "11940" gleich, Startzeit des Skriptes wäre immer noch 15.03., aber "grep + Zombie" stünden auf 13:38
                                          Trifft man genau die halbe Sekunde die er zum verarbeiten des empfangenen Datenpakets von der Wetterstation braucht, läuft dann tatsächlich nur das Skript.

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

                                            @SBorg hehe, genau das meinte ich hier, auf die Frage...wo kommt die ...Uhrzeit her
                                            vielen Dank, für die ausführliche Erklärung, hätt ich mir das Stundenlange (Suche den Fehler) sparen können😂 😂
                                            Werte für javascript.0.Wetterstation._Kommunikationsfehler läuft nun auch wie es soll, außer einmal Nachts 00:17, fehlte einmal ein Wert, so wie ich das sehe
                                            ff86171e-faa6-412d-965f-b26a66776920-image.png

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            602
                                            Online

                                            31.7k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

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