Package Exports
- iobroker.javascript
- iobroker.javascript/main.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (iobroker.javascript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme

Javascript Script Engine
This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers. For more details and for information how to disable the error reporting see Sentry-Plugin Documentation! Sentry reporting is used starting with js-controller 3.0.
Executes Javascript, Typescript Scripts.
Documentation
Blockly
Forbidden directories for Script Filesystem Mirroring
The Script Filesystem Mirroring will store all Source Files of the Scripts in your Filesystem to allow you to edit the Files in your favourite Script editor beside the Web-Editor. All changes are synced in both directions.
When enabling the Script Filesystem mirroring, please make sure to create a dedicated new directory and do not use an existing directory with other content. Please also make sure that no other script or process changes files in the provided directory to prevent access issues. Any location needs to be writable by the "iobroker" user!
Since v5.5.0 of the JavaScript adapter the following locations (relative to the ioBroker Base directory, usually /opt/iobroker) are not allowed to be used:
- The ioBroker base directory itself and any path above!
./iobroker-dataitself, custom subdirectory (choose a name that do not overlap with any adapter!)./iobroker-data/backup-objectsor the anything below./iobroker-data/filesor the anything below./iobroker-data/backitupor the anything below./backupsor the anything below./node_modulesor the anything below./logor the anything below
Todo
- Goto current line in debugger
- ...
Changelog
7.1.5 (2023-10-09)
- (bluefox) Added play-ground for ChatGPT (API key required)
7.1.4 (2023-08-09)
- (bluefox) Added version to the side menu
- (klein0r) Added blockly blocks for
getHistoryand calculated times
7.1.1 (2023-06-20)
- (bluefox) corrected the script export
7.1.0 (2023-06-13)
- (klein0r) Added new blocks: new line, random number, value between min and max, if empty
- (klein0r) Updated blockly core to v9.3.3
- (bluefox) corrected blockly
7.0.8 (2023-06-12)
- (klein0r) Corrected trigger block
- (klein0r) Corrected typescript V5
- (bluefox) coffescript was degraded to the previous version
- (bluefox) tried to correct vscode font
- (bluefox) reverted blockly to the previous version
License
The MIT License (MIT)
Copyright (c) 2014-2023 bluefox dogafox@gmail.com,
Copyright (c) 2014 hobbyquaker