Ok, sorry for previous panic post.pofs wrote:Maybe you should explain more details regarding what and where exactly you wrote.hecashit wrote:Don't work for me in custom JS user files inside Automation folder.
Your file may be not executed at all, or it is just executed once on startup (when there's no clients connected yet), or hundred of other possible scenarios.
I put custom script file inside automation folder and set in the home automation subsystem.
File have only this code:
test = function() {
var obj = {type: "Иванов"};
ws.push("my.custom.event", obj);
}
html page scripts same as you describe.
Than i open "localhost/JS/Run/test" and check logs in html page.
My fault that i use localhost/JS/Run/test instead if localhost/JS/Run/test().
When i try to use localhost/JS/Run/test() it start works..
Thank you
Appologise my English