Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Script editor - problem after change sc_xx option

    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.

    UNSOLVED Script editor - problem after change sc_xx option

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

      When i try to edit js script in scripts tab after pressed CRON icon:
      script - crono 1a.png
      and change to sc_simple or sc_cron i see.. nothing:
      script - crono 1b.png
      (it's dark mode example - for light mode is the same problem...)

      AlCalzone 1 Reply Last reply Reply Quote 0
      • AlCalzone
        AlCalzone Developer @mguc last edited by

        @mguc That looks like an error. Please open the browser console (F12) and check if there are any errors logged.

        M 1 Reply Last reply Reply Quote 0
        • M
          mguc @AlCalzone last edited by

          @AlCalzone

          SC_SIMPLE console log:

          jquery.fancytree-all.js:113 Fancytree@1 Fancytree.filterNodes() leavesOnly option is deprecated since 2.9.0 / 2015-04-19. Use opts.leavesOnly instead.
          v @ jquery.fancytree-all.js:113
          Connection.js:250 Subscribe logs
          blockly_compressed.js:893 WARNING: No message string for %{BKY_TEXT_APPEND_TOOLTIP}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_LOGIC_COMPARE_TOOLTIP_EQ}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_LOGIC_COMPARE_TOOLTIP_NEQ}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_LOGIC_COMPARE_TOOLTIP_LT}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_LOGIC_COMPARE_TOOLTIP_LTE}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_LOGIC_COMPARE_TOOLTIP_GT}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_LOGIC_COMPARE_TOOLTIP_GTE}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_LOGIC_OPERATION_TOOLTIP_AND}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_LOGIC_OPERATION_TOOLTIP_OR}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_CONTROLS_WHILEUNTIL_TOOLTIP_WHILE}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_CONTROLS_WHILEUNTIL_TOOLTIP_UNTIL}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_CONTROLS_FLOW_STATEMENTS_TOOLTIP_BREAK}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_CONTROLS_FLOW_STATEMENTS_TOOLTIP_CONTINUE}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_CONTROLS_FOR_TOOLTIP}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_CONTROLS_FOREACH_TOOLTIP}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_ARITHMETIC_TOOLTIP_ADD}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_ARITHMETIC_TOOLTIP_MINUS}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_ARITHMETIC_TOOLTIP_MULTIPLY}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_ARITHMETIC_TOOLTIP_DIVIDE}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_ARITHMETIC_TOOLTIP_POWER}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_SINGLE_TOOLTIP_ROOT}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_SINGLE_TOOLTIP_ABS}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_SINGLE_TOOLTIP_NEG}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_SINGLE_TOOLTIP_LN}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_SINGLE_TOOLTIP_LOG10}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_SINGLE_TOOLTIP_EXP}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_SINGLE_TOOLTIP_POW10}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_TRIG_TOOLTIP_SIN}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_TRIG_TOOLTIP_COS}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_TRIG_TOOLTIP_TAN}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_TRIG_TOOLTIP_ASIN}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_TRIG_TOOLTIP_ACOS}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_TRIG_TOOLTIP_ATAN}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_ONLIST_TOOLTIP_SUM}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_ONLIST_TOOLTIP_MIN}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_ONLIST_TOOLTIP_MAX}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_ONLIST_TOOLTIP_AVERAGE}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_ONLIST_TOOLTIP_MEDIAN}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_ONLIST_TOOLTIP_MODE}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_ONLIST_TOOLTIP_STD_DEV}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_ONLIST_TOOLTIP_RANDOM}.
          blockly_compressed.js:893 WARNING: No message string for %{BKY_MATH_CHANGE_TOOLTIP}.
          BlocklyEditor.js:94 Detected custom blockly: email
          SelectID.js:1077 render
          SelectID.js:1077 render
          SelectID.js:1077 render
          SelectID.js:1077 render
          react-dom.production.min.js:4408 TypeError: Cannot read property 'Every' of undefined
              at cron2text.js:395
              at Ps (cron2text.js:507)
              at Ys (cronText.js:43)
              at t.value (SimpleCron.js:611)
              at Ti (react-dom.production.min.js:3785)
              at Mi (react-dom.production.min.js:3776)
              at ji (react-dom.production.min.js:3960)
              at $a (react-dom.production.min.js:5514)
              at qa (react-dom.production.min.js:5536)
              at Tl (react-dom.production.min.js:5958)
          fa @ react-dom.production.min.js:4408
          react-dom.production.min.js:5940 Uncaught TypeError: Cannot read property 'Every' of undefined
              at cron2text.js:395
              at Ps (cron2text.js:507)
              at Ys (cronText.js:43)
              at t.value (SimpleCron.js:611)
              at Ti (react-dom.production.min.js:3785)
              at Mi (react-dom.production.min.js:3776)
              at ji (react-dom.production.min.js:3960)
              at $a (react-dom.production.min.js:5514)
              at qa (react-dom.production.min.js:5536)
              at Tl (react-dom.production.min.js:5958) 
          

          SC_CRON console log

          react-dom.production.min.js:4408 TypeError: Cannot read property 'Every' of undefined
              at cron2text.js:395
              at Ps (cron2text.js:507)
              at Ys (cronText.js:43)
              at t.value (ComplexCron.js:372)
              at t.value (ComplexCron.js:383)
              at Ti (react-dom.production.min.js:3785)
              at Mi (react-dom.production.min.js:3776)
              at ji (react-dom.production.min.js:3960)
              at $a (react-dom.production.min.js:5514)
              at qa (react-dom.production.min.js:5536)
          fa @ react-dom.production.min.js:4408
          react-dom.production.min.js:5940 Uncaught TypeError: Cannot read property 'Every' of undefined
              at cron2text.js:395
              at Ps (cron2text.js:507)
              at Ys (cronText.js:43)
              at t.value (ComplexCron.js:372)
              at t.value (ComplexCron.js:383)
              at Ti (react-dom.production.min.js:3785)
              at Mi (react-dom.production.min.js:3776)
              at ji (react-dom.production.min.js:3960)
              at $a (react-dom.production.min.js:5514)
              at qa (react-dom.production.min.js:5536)
          
          1 Reply Last reply Reply Quote 0
          • Bluefox
            Bluefox last edited by

            What the language do you have selected?

            M 1 Reply Last reply Reply Quote 0
            • M
              mguc @Bluefox last edited by

              @Bluefox
              Polish (Polski). Now i switch on english.. and all works.

              Bluefox 1 Reply Last reply Reply Quote 0
              • Bluefox
                Bluefox @mguc last edited by

                @mguc PL is really missed by cron.
                But now in the latest version of "javascript" (4.1.14) there is a fallback to english.

                May be can you extend in this file the "pl" part?
                https://github.com/ioBroker/ioBroker.javascript/blob/master/src/src/Components/simple-cron/jquery.cron.locale.js

                M 1 Reply Last reply Reply Quote 0
                • M
                  mguc @Bluefox last edited by

                  @Bluefox

                  JQUERY_CRON_LOCALE.pl = {
                      ORDINALS: {
                          th: 'th',
                          st: 'st',
                          nd: 'nd',
                          rd: 'rd'
                      },
                      MONTH: [ //short or full names
                          'Sty', or 'Styczeń'
                          'Lut', or 'Luty'
                          'Mar', or 'Marzec'
                          'Kwi', or 'Kwiecień'
                          'Maj', or 'Maj'
                          'Cze', or 'Czerwiec'
                          'Lip', or 'Lipiec'
                          'Sie', or 'Sierpień'
                          'Wrz', or 'Wrzesień'
                          'Paź', or 'Październik'
                          'Lis', or 'Listopad'
                          'Gru'  or 'Grudzień'
                      ],
                      DOW: [ //short or full days name
                          'Nie', or 'Niedziela'
                          'Pon', or 'Poniedziałek'
                          'Wto', or 'Wtorek'
                          'Śro', or 'Środa'
                          'Czw', or 'Czwartek'
                          'Pią', or 'Piątek'
                          'Sob' or 'Sobota
                      ],
                      'Every':            'Każde(go)', // start of expression
                      'and':              'i', // 1, 2, 3 and 15th
                      'every day':        'codziennie',
                      'minute past the':  'minut po', //minute past the hour ?
                      'hour':             'godzina',
                      'minute':           'minut(a)',
                      'minute of':        'minut po',
                      'second':           'sekunda',
                      'second in minute': 'sekund na minutę',
                      'second of every':  'sekund co',
                      'minute every hour': 'minut co godzinę',
                      'on the':           'w',
                      'of every month':   'każdego miesiąca',
                      'and every':        'i każdego',
                      'At':               'O',
                      'on':               'w', // on sun, mon
                      'in':               'w' // in jan, apr
                  };
                  

                  The Polish language version is a very important and joyful element of using this program for me (and especially for other members of my family)

                  1 Reply Last reply Reply Quote 1
                  • S
                    shamsmehra90 last edited by shamsmehra90

                    Hi,
                    i have same issue but bit different can any one help me, please just reply asap
                    Regards..

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

                    Support us

                    ioBroker
                    Community Adapters
                    Donate

                    525
                    Online

                    31.6k
                    Users

                    79.4k
                    Topics

                    1.3m
                    Posts

                    cron mode script editor
                    5
                    8
                    772
                    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