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. Skripten / Logik
  4. Blockly
  5. Gleichung in Blockly

NEWS

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

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

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.2k

Gleichung in Blockly

Scheduled Pinned Locked Moved Blockly
blockly
31 Posts 3 Posters 3.1k Views 1 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.
  • N Nordischerjung

    @dutchman sagte in Gleichung in Blockly:

    moinse, deine yaml hat nen Fehler

    Ja ich weiß :stuck_out_tongue_winking_eye:
    nur, wie behebe ich den? Weil er mit font nicht klar kommt. Wie installiere ich das?

    a7c43795-67af-4796-b96a-7c2dd838c0f5-grafik.png

    DutchmanD Offline
    DutchmanD Offline
    Dutchman
    Developer Most Active Administrators
    wrote on last edited by Dutchman
    #21

    @nordischerjung sagte in Gleichung in Blockly:

    nur, wie behebe ich den? Weil er mit font nicht klar kommt. Wie installiere ich das?

    was soll my_font sein, ist ne variable die du nirgendwo definiert hast ?

    dir fehlt das hier :

    font:
      - file: "fonts/Comic Sans MS.ttf"
        id: my_font
        size: 20
    

    Schermafbeelding 2021-08-25 om 12.33.08.png

    https://esphome.io/components/display/index.html

    N 1 Reply Last reply
    0
    • DutchmanD Dutchman

      @nordischerjung sagte in Gleichung in Blockly:

      nur, wie behebe ich den? Weil er mit font nicht klar kommt. Wie installiere ich das?

      was soll my_font sein, ist ne variable die du nirgendwo definiert hast ?

      dir fehlt das hier :

      font:
        - file: "fonts/Comic Sans MS.ttf"
          id: my_font
          size: 20
      

      Schermafbeelding 2021-08-25 om 12.33.08.png

      https://esphome.io/components/display/index.html

      N Offline
      N Offline
      Nordischerjung
      wrote on last edited by
      #22

      @dutchman Doch habe ich guck mal mein Screenshot

      Gruß Nordischerjung

      sonnige Grüße von der Ostsee

      1 Reply Last reply
      0
      • N Nordischerjung

        @dutchman sagte in Gleichung in Blockly:

        moinse, deine yaml hat nen Fehler

        Ja ich weiß :stuck_out_tongue_winking_eye:
        nur, wie behebe ich den? Weil er mit font nicht klar kommt. Wie installiere ich das?

        a7c43795-67af-4796-b96a-7c2dd838c0f5-grafik.png

        FredFF Online
        FredFF Online
        FredF
        Most Active Forum Testing
        wrote on last edited by FredF
        #23

        @nordischerjung Steht doch da:

        Please install the pillow python package to use this feature. (pip install pillow)
        
        DutchmanD 1 Reply Last reply
        0
        • FredFF FredF

          @nordischerjung Steht doch da:

          Please install the pillow python package to use this feature. (pip install pillow)
          
          DutchmanD Offline
          DutchmanD Offline
          Dutchman
          Developer Most Active Administrators
          wrote on last edited by
          #24

          @fredf sagte in Gleichung in Blockly:

          @nordischerjung Steht doch da:

          Please install the pillow python package to use this feature. (pip install pillow)
          

          stimmmt er benutzt ne font die es standard nicht gibt

          N 1 Reply Last reply
          0
          • DutchmanD Dutchman

            @fredf sagte in Gleichung in Blockly:

            @nordischerjung Steht doch da:

            Please install the pillow python package to use this feature. (pip install pillow)
            

            stimmmt er benutzt ne font die es standard nicht gibt

            N Offline
            N Offline
            Nordischerjung
            wrote on last edited by
            #25

            @dutchman Welche ist den Standard und wie installiere ich das? In der Konsole? Über ESPhome?

            Gruß Nordischerjung

            sonnige Grüße von der Ostsee

            DutchmanD 1 Reply Last reply
            0
            • N Nordischerjung

              @dutchman Welche ist den Standard und wie installiere ich das? In der Konsole? Über ESPhome?

              DutchmanD Offline
              DutchmanD Offline
              Dutchman
              Developer Most Active Administrators
              wrote on last edited by Dutchman
              #26

              @nordischerjung sagte in Gleichung in Blockly:

              @dutchman Welche ist den Standard und wie installiere ich das? In der Konsole? Über ESPhome?

              pip und Python ist lose vom ESPHome, liegt auf deinem linux system. also ja einfach auf der console

              pip install pillow
              

              oder probiere zum Testen de Eintrag ohne abhängigkeiten ;)

              N 1 Reply Last reply
              0
              • DutchmanD Dutchman

                @nordischerjung sagte in Gleichung in Blockly:

                @dutchman Welche ist den Standard und wie installiere ich das? In der Konsole? Über ESPhome?

                pip und Python ist lose vom ESPHome, liegt auf deinem linux system. also ja einfach auf der console

                pip install pillow
                

                oder probiere zum Testen de Eintrag ohne abhängigkeiten ;)

                N Offline
                N Offline
                Nordischerjung
                wrote on last edited by
                #27

                @dutchman sagte in Gleichung in Blockly:

                @nordischerjung sagte in Gleichung in Blockly:

                @dutchman Welche ist den Standard und wie installiere ich das? In der Konsole? Über ESPhome?

                pip und Python ist lose vom ESPHome, liegt auf deinem linux system. also ja einfach auf der console

                pip install pillow
                

                Ich bin zu blöd dazu, funktioniert beides nicht. Aber ist pillow dann nicht schon vorhanden?

                sb@iobroker:~$  pip install pillow
                Defaulting to user installation because normal site-packages is not writeable
                Requirement already satisfied: pillow in ./.local/lib/python3.7/site-packages (8.3.1)
                sb@iobroker:~$
                
                

                oder probiere zum Testen de Eintrag ohne abhängigkeiten ;)

                INFO Compiling app...
                INFO Running:  platformio run -d /opt/iobroker/iobroker-data/esphome.0/grill
                Processing grill (board: d1_mini_pro; framework: arduino; platform: platformio/espressif8266@2.6.2)
                --------------------------------------------------------------------------------
                HARDWARE: ESP8266 80MHz, 80KB RAM, 16MB Flash
                PACKAGES: 
                 - framework-arduinoespressif8266 3.20704.0 (2.7.4) 
                 - tool-esptool 1.413.0 (4.13) 
                 - tool-esptoolpy 1.20800.0 (2.8.0) 
                 - toolchain-xtensa 2.40802.200502 (4.8.2)
                Library Manager: Installing Update
                Warning! Could not find the package with 'Update' requirements for your system 'linux_x86_64'
                Dependency Graph
                |-- <ESPAsyncTCP-esphome> 1.2.3
                |   |-- <ESP8266WiFi> 1.0
                |-- <ESPAsyncWebServer-esphome> 1.3.0
                |   |-- <ESPAsyncTCP-esphome> 1.2.3
                |   |   |-- <ESP8266WiFi> 1.0
                |   |-- <Hash> 1.0
                |   |-- <ESP8266WiFi> 1.0
                |-- <ESP8266WiFi> 1.0
                |-- <ESP8266mDNS> 1.2
                |   |-- <ESP8266WiFi> 1.0
                |-- <Wire> 1.0
                |-- <DNSServer> 1.1.1
                |   |-- <ESP8266WiFi> 1.0
                Compiling .pioenvs/grill/src/main.cpp.o
                Compiling .pioenvs/grill/libd43/ESP8266WiFi/WiFiClient.cpp.o
                /opt/iobroker/iobroker-data/esphome.0/grill.yaml: In lambda function:
                /opt/iobroker/iobroker-data/esphome.0/grill.yaml:34:60: error: no matching function for call to 'esphome::display::DisplayBuffer::print(int, int, const char [26], float&)'
                       it.print(0, 0, "Grilltemperatur: %.0f °C", id(gt).state)
                                                                            ^
                /opt/iobroker/iobroker-data/esphome.0/grill.yaml:34:60: note: candidates are:
                In file included from src/esphome.h:15:0,
                                 from src/main.cpp:3:
                src/esphome/components/display/display_buffer.h:140:8: note: void esphome::display::DisplayBuffer::print(int, int, esphome::display::Font*, esphome::Color, esphome::display::TextAlign, const char*)
                   void print(int x, int y, Font *font, Color color, TextAlign align, const char *text);
                        ^
                src/esphome/components/display/display_buffer.h:140:8: note:   candidate expects 6 arguments, 4 provided
                src/esphome/components/display/display_buffer.h:150:8: note: void esphome::display::DisplayBuffer::print(int, int, esphome::display::Font*, esphome::Color, const char*)
                   void print(int x, int y, Font *font, Color color, const char *text);
                        ^
                src/esphome/components/display/display_buffer.h:150:8: note:   candidate expects 5 arguments, 4 provided
                src/esphome/components/display/display_buffer.h:160:8: note: void esphome::display::DisplayBuffer::print(int, int, esphome::display::Font*, esphome::display::TextAlign, const char*)
                   void print(int x, int y, Font *font, TextAlign align, const char *text);
                        ^
                src/esphome/components/display/display_buffer.h:160:8: note:   candidate expects 5 arguments, 4 provided
                src/esphome/components/display/display_buffer.h:169:8: note: void esphome::display::DisplayBuffer::print(int, int, esphome::display::Font*, const char*)
                   void print(int x, int y, Font *font, const char *text);
                        ^
                src/esphome/components/display/display_buffer.h:169:8: note:   no known conversion for argument 3 from 'const char [26]' to 'esphome::display::Font*'
                /opt/iobroker/iobroker-data/esphome.0/grill.yaml:35:3: error: expected ';' before '}' token
                       
                   ^
                Compiling .pioenvs/grill/libd43/ESP8266WiFi/WiFiClientSecureAxTLS.cpp.o
                *** [.pioenvs/grill/src/main.cpp.o] Error 1
                ========================= [FAILED] Took 11.44 seconds =========================
                

                Gruß Nordischerjung

                sonnige Grüße von der Ostsee

                DutchmanD 1 Reply Last reply
                0
                • N Nordischerjung

                  @dutchman sagte in Gleichung in Blockly:

                  @nordischerjung sagte in Gleichung in Blockly:

                  @dutchman Welche ist den Standard und wie installiere ich das? In der Konsole? Über ESPhome?

                  pip und Python ist lose vom ESPHome, liegt auf deinem linux system. also ja einfach auf der console

                  pip install pillow
                  

                  Ich bin zu blöd dazu, funktioniert beides nicht. Aber ist pillow dann nicht schon vorhanden?

                  sb@iobroker:~$  pip install pillow
                  Defaulting to user installation because normal site-packages is not writeable
                  Requirement already satisfied: pillow in ./.local/lib/python3.7/site-packages (8.3.1)
                  sb@iobroker:~$
                  
                  

                  oder probiere zum Testen de Eintrag ohne abhängigkeiten ;)

                  INFO Compiling app...
                  INFO Running:  platformio run -d /opt/iobroker/iobroker-data/esphome.0/grill
                  Processing grill (board: d1_mini_pro; framework: arduino; platform: platformio/espressif8266@2.6.2)
                  --------------------------------------------------------------------------------
                  HARDWARE: ESP8266 80MHz, 80KB RAM, 16MB Flash
                  PACKAGES: 
                   - framework-arduinoespressif8266 3.20704.0 (2.7.4) 
                   - tool-esptool 1.413.0 (4.13) 
                   - tool-esptoolpy 1.20800.0 (2.8.0) 
                   - toolchain-xtensa 2.40802.200502 (4.8.2)
                  Library Manager: Installing Update
                  Warning! Could not find the package with 'Update' requirements for your system 'linux_x86_64'
                  Dependency Graph
                  |-- <ESPAsyncTCP-esphome> 1.2.3
                  |   |-- <ESP8266WiFi> 1.0
                  |-- <ESPAsyncWebServer-esphome> 1.3.0
                  |   |-- <ESPAsyncTCP-esphome> 1.2.3
                  |   |   |-- <ESP8266WiFi> 1.0
                  |   |-- <Hash> 1.0
                  |   |-- <ESP8266WiFi> 1.0
                  |-- <ESP8266WiFi> 1.0
                  |-- <ESP8266mDNS> 1.2
                  |   |-- <ESP8266WiFi> 1.0
                  |-- <Wire> 1.0
                  |-- <DNSServer> 1.1.1
                  |   |-- <ESP8266WiFi> 1.0
                  Compiling .pioenvs/grill/src/main.cpp.o
                  Compiling .pioenvs/grill/libd43/ESP8266WiFi/WiFiClient.cpp.o
                  /opt/iobroker/iobroker-data/esphome.0/grill.yaml: In lambda function:
                  /opt/iobroker/iobroker-data/esphome.0/grill.yaml:34:60: error: no matching function for call to 'esphome::display::DisplayBuffer::print(int, int, const char [26], float&)'
                         it.print(0, 0, "Grilltemperatur: %.0f °C", id(gt).state)
                                                                              ^
                  /opt/iobroker/iobroker-data/esphome.0/grill.yaml:34:60: note: candidates are:
                  In file included from src/esphome.h:15:0,
                                   from src/main.cpp:3:
                  src/esphome/components/display/display_buffer.h:140:8: note: void esphome::display::DisplayBuffer::print(int, int, esphome::display::Font*, esphome::Color, esphome::display::TextAlign, const char*)
                     void print(int x, int y, Font *font, Color color, TextAlign align, const char *text);
                          ^
                  src/esphome/components/display/display_buffer.h:140:8: note:   candidate expects 6 arguments, 4 provided
                  src/esphome/components/display/display_buffer.h:150:8: note: void esphome::display::DisplayBuffer::print(int, int, esphome::display::Font*, esphome::Color, const char*)
                     void print(int x, int y, Font *font, Color color, const char *text);
                          ^
                  src/esphome/components/display/display_buffer.h:150:8: note:   candidate expects 5 arguments, 4 provided
                  src/esphome/components/display/display_buffer.h:160:8: note: void esphome::display::DisplayBuffer::print(int, int, esphome::display::Font*, esphome::display::TextAlign, const char*)
                     void print(int x, int y, Font *font, TextAlign align, const char *text);
                          ^
                  src/esphome/components/display/display_buffer.h:160:8: note:   candidate expects 5 arguments, 4 provided
                  src/esphome/components/display/display_buffer.h:169:8: note: void esphome::display::DisplayBuffer::print(int, int, esphome::display::Font*, const char*)
                     void print(int x, int y, Font *font, const char *text);
                          ^
                  src/esphome/components/display/display_buffer.h:169:8: note:   no known conversion for argument 3 from 'const char [26]' to 'esphome::display::Font*'
                  /opt/iobroker/iobroker-data/esphome.0/grill.yaml:35:3: error: expected ';' before '}' token
                         
                     ^
                  Compiling .pioenvs/grill/libd43/ESP8266WiFi/WiFiClientSecureAxTLS.cpp.o
                  *** [.pioenvs/grill/src/main.cpp.o] Error 1
                  ========================= [FAILED] Took 11.44 seconds =========================
                  
                  DutchmanD Offline
                  DutchmanD Offline
                  Dutchman
                  Developer Most Active Administrators
                  wrote on last edited by
                  #28

                  @nordischerjung sagte in Gleichung in Blockly:

                  Ich bin zu blöd dazu, funktioniert beides nicht. Aber ist pillow dann nicht schon vorhanden?

                  poste mal bitte deine komplette yaml. als text dan baue ich das bei mir nach

                  N 1 Reply Last reply
                  0
                  • DutchmanD Dutchman

                    @nordischerjung sagte in Gleichung in Blockly:

                    Ich bin zu blöd dazu, funktioniert beides nicht. Aber ist pillow dann nicht schon vorhanden?

                    poste mal bitte deine komplette yaml. als text dan baue ich das bei mir nach

                    N Offline
                    N Offline
                    Nordischerjung
                    wrote on last edited by
                    #29

                    @dutchman
                    grill.txt
                    secrets.txt

                    So? iwas läuft hier mächtig schief, hatte das Display deaktiviert, dann Binary erzeugt und wollte die als Firmware in ESPeasy hochladen. Kam auch ein Fehler

                    Update error: ERROR[9]: new Flash config wrong real: 4194304

                    Gruß Nordischerjung

                    sonnige Grüße von der Ostsee

                    DutchmanD 1 Reply Last reply
                    0
                    • N Nordischerjung

                      @dutchman
                      grill.txt
                      secrets.txt

                      So? iwas läuft hier mächtig schief, hatte das Display deaktiviert, dann Binary erzeugt und wollte die als Firmware in ESPeasy hochladen. Kam auch ein Fehler

                      Update error: ERROR[9]: new Flash config wrong real: 4194304

                      DutchmanD Offline
                      DutchmanD Offline
                      Dutchman
                      Developer Most Active Administrators
                      wrote on last edited by
                      #30

                      @nordischerjung sagte in Gleichung in Blockly:

                      @dutchman
                      grill.txt
                      secrets.txt

                      So? iwas läuft hier mächtig schief, hatte das Display deaktiviert, dann Binary erzeugt und wollte die als Firmware in ESPeasy hochladen. Kam auch ein Fehler

                      Update error: ERROR[9]: new Flash config wrong real: 4194304

                      ich schaue es mir nach der Arbeit mal an :)

                      1 Reply Last reply
                      0
                      • DutchmanD Offline
                        DutchmanD Offline
                        Dutchman
                        Developer Most Active Administrators
                        wrote on last edited by
                        #31

                        so nachdem ich mich diesem morgen damit beschäftigt habe, wurde mir mal wieder deutlich das auch ich lesen muss :P

                        Laut ESPHome docu fuer Displays :

                        Drawing Static Text
                        The rendering engine also has a powerful font drawer which integrates seamlessly into ESPHome. Whereas in most Arduino display projects you have to use one of a few pre-defined fonts in very specific sizes, with ESPHome you have the option to use any TrueType (.ttf) font file at any size! Granted the reason for it is actually not having to worry about the licensing of font files :)
                        
                        To use fonts you first have to define a font object in your ESPHome configuration file. Just grab a .ttf file from somewhere on the internet and place it, for example, inside a fonts folder next to your configuration file.
                        

                        Ergo, man muss sich selber irgendwo eine *.ttf laden, diese ins Verzeichnis kopieren und dan gehts auch :))

                        Die Datei gehört in /opt/iobroker/iobroker-data/esphome.0/
                        

                        ich habe da nen ordner fonts erstellt und es da rein kopiert :

                        ls -l /opt/iobroker/iobroker-data/esphome.0/fonts/
                        total 10572
                        -rw-rw-r--+ 1 iobroker iobroker  584424 Aug 26 12:32 FreeMono.ttf
                        -rw-rw-r--+ 1 iobroker iobroker  296284 Aug 26 12:32 FreeMonoBold.ttf
                        -rw-rw-r--+ 1 iobroker iobroker  295360 Aug 26 12:32 FreeMonoBoldOblique.ttf
                        -rw-rw-r--+ 1 iobroker iobroker  390692 Aug 26 12:32 FreeMonoOblique.ttf
                        -rw-rw-r--+ 1 iobroker iobroker 1563256 Aug 26 12:32 FreeSans.ttf
                        -rw-rw-r--+ 1 iobroker iobroker  416128 Aug 26 12:32 FreeSansBold.ttf
                        -rw-rw-r--+ 1 iobroker iobroker  342488 Aug 26 12:32 FreeSansBoldOblique.ttf
                        -rw-rw-r--+ 1 iobroker iobroker  763696 Aug 26 12:32 FreeSansOblique.ttf
                        -rw-rw-r--+ 1 iobroker iobroker 3303588 Aug 26 12:32 FreeSerif.ttf
                        -rw-rw-r--+ 1 iobroker iobroker 1310828 Aug 26 12:32 FreeSerifBold.ttf
                        -rw-rw-r--+ 1 iobroker iobroker  608708 Aug 26 12:32 FreeSerifBoldItalic.ttf
                        -rw-rw-r--+ 1 iobroker iobroker  922088 Aug 26 12:32 FreeSerifItalic.ttf
                        

                        und siehe da

                        Schermafbeelding 2021-08-26 om 12.47.24.png

                        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

                        691

                        Online

                        32.6k

                        Users

                        82.2k

                        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