NEWS

Script editor - problem after change sc_xx option



  • 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...)


  • Developer

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



  • @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)
    


  • What the language do you have selected?



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



  • @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



  • @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)



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



  • At the point when I attempt to alter js content in contents tab after squeezed CRON symbol: and change to sc_simple or sc_cron I see .. nothing:

    black friday vpn deals 2020


Log in to reply
 

Suggested Topics

1.1k
Online

32.1k
Users

38.8k
Topics

525.6k
Posts