Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Visualisierung
    4. Real Weather (Bald)

    NEWS

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    • Save The Date: ioBroker@Smart Living Forum Solingen, 14.06.

    Real Weather (Bald)

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

      Hallo,
      bald Online 😉

      https://youtu.be/uAf3McTm65g

      Glasfaser liv-in-sky Chaot dslraser sigi234 6 Replies Last reply Reply Quote 11
      • Glasfaser
        Glasfaser @wawyo last edited by Glasfaser

        @wawyo

        SEHR Geil ... sogar mit Blitze

        Alles in einem HTML ?
        "HTML RealWeather for Vis Iobroker"

        wawyo 1 Reply Last reply Reply Quote 0
        • liv-in-sky
          liv-in-sky @wawyo last edited by

          @wawyo

          schaut gut aus 👍

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

            @glasfaser
            Ja, 1670 zeilen HTML, CSS und JS 😉
            Es fehlte noch Eiskalt, Sturm und Orkan.
            Das Projekt ist ein toller Ausgleich zum stressigen Alltag 😉

            liv-in-sky 1 Reply Last reply Reply Quote 0
            • Chaot
              Chaot @wawyo last edited by

              @wawyo Ein Wort: WOW!

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

                @wawyo
                👍

                1 Reply Last reply Reply Quote 0
                • liv-in-sky
                  liv-in-sky @wawyo last edited by

                  @wawyo sind das einzelne animated gifs oder mp4

                  wawyo 1 Reply Last reply Reply Quote 0
                  • wawyo
                    wawyo Developer @liv-in-sky last edited by

                    @liv-in-sky
                    es sind 14 Bilder in png Format.
                    Die Animation ist spielerei mit JS und CSS Filter 😊
                    10.png 9.png 8.png 7.png 6.png 5.png 4.png 3.png 2.png 02.png 1.png 01.png 00.png

                    liv-in-sky 1 Reply Last reply Reply Quote 2
                    • liv-in-sky
                      liv-in-sky @wawyo last edited by

                      @wawyo

                      bin gespannt auf die"spielereien" 🙂

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

                        @wawyo

                        Geilomat......Wann Online? 👍 😀

                        wawyo 1 Reply Last reply Reply Quote 0
                        • B
                          Burg_Io last edited by

                          @wawyo

                          schöne sache. da ist man auf´s testen gespannt.

                          1 Reply Last reply Reply Quote 0
                          • wawyo
                            wawyo Developer @sigi234 last edited by wawyo

                            @sigi234
                            Es dauert (2-3 Wochen)!
                            Aber zum testen gerne 😉
                            Weather-Dateien.zip

                            ich habe die Bilder unter http://xxx.xxx.xxx.xxx:8082/vis.0/Wetter/WeatherAnimation (Iobroker IP)

                            Edit1:

                            ACHTUNG! getestet nur mit FireFox, Chrome und Fully.
                            Unter Weather.html muss die IP Adresse angepasst werden.

                            sigi234 1 Reply Last reply Reply Quote 1
                            • sigi234
                              sigi234 Forum Testing Most Active @wawyo last edited by sigi234

                              @wawyo

                              Ok, wie bringe ich das jetzt in Vis? Die HTML?

                              Erledigt.

                              Die Schrift kann man bei einen schwarzen Hintergrund nicht lesen.

                              Screenshot (4217).png

                              wawyo 1 Reply Last reply Reply Quote 0
                              • wawyo
                                wawyo Developer @sigi234 last edited by wawyo

                                @sigi234
                                1- Weather.html anpassen:
                                ändere alle

                                Weather-Dateien/**.png
                                

                                zu

                                http://192.168.xxx.xx:8082/vis.0/Wetter/WeatherAnimation/**.png
                                

                                2- Erstelle Basic html unter vis (600px X 300px)
                                3- Weater.html Code kopieren unter Basic html .

                                4- Importiere die Daten von DasWetter Adapter.
                                (Du brauchst WeatherStation.0.Weatherurl Datenpunkt)

                                Datenpunkt Code:

                                {
                                  "common": {
                                    "name": "WeatherAnimation",
                                    "desc": "WeatherAnimation",
                                    "type": "number",
                                    "role": "value",
                                    "read": true,
                                    "write": true,
                                    "def": false
                                  },
                                  "native": {},
                                  "acl": {
                                    "object": 1636,
                                    "owner": "system.user.admin",
                                    "ownerGroup": "system.group.administrator",
                                    "state": 1636
                                  },
                                  "_id": "WeatherStation.0.WeatherAnimation",
                                  "type": "state",
                                  "from": "system.adapter.admin.0",
                                  "user": "system.user.admin",
                                  "ts": 1629733667565
                                }
                                

                                5- Script unter Javascript Adapter:

                                var ImageName, ImageNumber, ImageNumberConverted, NewLink;
                                
                                on({id: "daswetter.0.NextHours.Location_1.Day_1.current.iconURL", change: "any"}, async function (obj) {
                                  var value = obj.state.val;
                                  var oldValue = obj.oldState.val;
                                  ImageName = (obj.state ? obj.state.val : "").split('/');
                                  ImageNumber = ImageName[6];
                                  ImageNumberConverted = parseFloat((ImageNumber.slice(0, ImageNumber.length - 4)));
                                  var sunrise = getDateObject(getAstroDate("sunrise", undefined, 0));
                                  var sunrise_m = sunrise.getHours() * 60 + sunrise.getMinutes();
                                
                                  var sunset = getDateObject(getAstroDate("sunset", undefined, 0));
                                  var sunset_m = sunset.getHours() * 60 + sunset.getMinutes();
                                
                                  var now = new Date();
                                  var now_m = now.getHours() * 60 + now.getMinutes();
                                
                                setState("WeatherStation.0.WeatherAnimation", ImageNumberConverted);
                                
                                if (now_m > sunset_m - 60 && now_m <= sunset_m + 60) {
                                    log("dusk" + sunrise_m + " " + sunset_m);
                                    setState("WeatherStation.0.Weatherurl", (obj.state ? obj.state.val : ""));
                                } else if (now_m > sunrise_m - 60 && now_m <= sunrise_m + 60) {
                                    log("dawn" + sunrise_m + " " + sunset_m);
                                    NewLink = ['http://192.168.xxx.xx:8082/vis.0/Wetter/myweather/',ImageNumberConverted + 50,'.png'].join('');
                                    setState("WeatherStation.0.Weatherurl", NewLink);
                                } else if (now_m > sunrise_m + 60 && now_m <= sunset_m - 60) {
                                    log("day" + sunrise_m + " " + sunset_m);
                                    setState("WeatherStation.0.Weatherurl", (obj.state ? obj.state.val : ""));
                                } else {
                                    log("night" + sunrise_m + " " + sunset_m);
                                    NewLink = ['http://192.168.xxx.xx:8082/vis.0/Wetter/myweather/',ImageNumberConverted + 50,'.png'].join('');
                                    setState("WeatherStation.0.Weatherurl", NewLink);
                                }
                                });
                                
                                Glasfaser sigi234 2 Replies Last reply Reply Quote 0
                                • Glasfaser
                                  Glasfaser @wawyo last edited by Glasfaser

                                  @wawyo sagte in Real Weather (Bald):

                                  (Du brauchst WeatherStation.0. Weatherurl Datenpunkt)

                                  Kommt noch ein Adapter von dir , sonst für selbst erstellte Datenpunkte ist das sehr schlecht gewählt ?

                                  wawyo sigi234 2 Replies Last reply Reply Quote 0
                                  • wawyo
                                    wawyo Developer @Glasfaser last edited by wawyo

                                    @glasfaser
                                    Ja, der Adapter ist geplant.
                                    Es wird dauern bis zum Release.

                                    @all ich bin offen für alle Anfragen ☺️

                                    Edit:
                                    Bitte verzeiht mir wenn ich nicht sofort antworten kann.

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

                                      @wawyo

                                      Puh, jetzt wird es kompliziert, warte auf den Adapter.😀

                                      Habe mal es in einen iFrame Widget getestet.

                                      Das Non plus ultra wären natürlich sound effects

                                      Chaot 1 Reply Last reply Reply Quote 0
                                      • Chaot
                                        Chaot @sigi234 last edited by

                                        @sigi234 sagte in Real Weather (Bald):

                                        Das Non plus ultra wären natürlich sound effects

                                        Nachts um Vier Gewitter am Tablet.
                                        Ich fürchte dann könnte ich zukünftig mit dem IoBroker in die Garage umziehen.......

                                        sigi234 1 Reply Last reply Reply Quote 1
                                        • sigi234
                                          sigi234 Forum Testing Most Active @Chaot last edited by

                                          @chaot sagte in Real Weather (Bald):

                                          @sigi234 sagte in Real Weather (Bald):

                                          Das Non plus ultra wären natürlich sound effects

                                          Nachts um Vier Gewitter am Tablet.
                                          Ich fürchte dann könnte ich zukünftig mit dem IoBroker in die Garage umziehen.......

                                          😀

                                          Eventuell als Option und nur zwischen Zeit xy

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

                                            @glasfaser sagte in Real Weather (Bald):

                                            Kommt noch ein Adapter von dir , sonst für selbst erstellte Datenpunkte ist das sehr schlecht gewählt ?

                                            Hast du das schon getestet? Punkte 1-5
                                            Punkt 4 ?

                                            DP sollte eher unter 0_userdata.0 sein?

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            749
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

                                            13
                                            43
                                            4009
                                            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