Subversion Repositories HomeAutomation

Rev

Rev 1652 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1652 Rev 1765
Line 21... Line 21...
21
    {
21
    {
22
        var variables = {};
22
        var variables = {};
23
           
23
           
24
        if (Module_SendMessage(aliases_data[name]["module_name"], aliases_data[name]["module_id"], "LCD_Clear", variables))
24
        if (Module_SendMessage(aliases_data[name]["module_name"], aliases_data[name]["module_id"], "LCD_Clear", variables))
25
        {
25
        {
26
            Log("\033[32mCommand sent successfully to " + name + ".\033[0m\n");
26
            //Log("\033[32mCommand sent successfully to " + name + ".\033[0m\n");
27
        }
27
        }
28
        else
28
        else
29
        {
29
        {
30
            Log("\033[31mFailed to send command to " + name + ".\033[0m\n");
30
            Log("\033[31mFailed to send command to " + name + ".\033[0m\n");
31
        }
31
        }
Line 61... Line 61...
61
        "AutoLight" : "OFF"
61
        "AutoLight" : "OFF"
62
        };
62
        };
63
       
63
       
64
        if (Module_SendMessage(aliases_data[name]["module_name"], aliases_data[name]["module_id"], "LCD_Backlight", variables))
64
        if (Module_SendMessage(aliases_data[name]["module_name"], aliases_data[name]["module_id"], "LCD_Backlight", variables))
65
        {
65
        {
66
            Log("\033[32mCommand sent successfully to " + name + ".\033[0m\n");
66
            //Log("\033[32mCommand sent successfully to " + name + ".\033[0m\n");
67
        }
67
        }
68
        else
68
        else
69
        {
69
        {
70
            Log("\033[31mFailed to send command to " + name + ".\033[0m\n");
70
            Log("\033[31mFailed to send command to " + name + ".\033[0m\n");
71
        }
71
        }
Line 125... Line 125...
125
            "Y"    : y,
125
            "Y"    : y,
126
            "Text" : text_part };
126
            "Text" : text_part };
127
           
127
           
128
            if (Module_SendMessage(aliases_data[name]["module_name"], aliases_data[name]["module_id"], "LCD_TextAt", variables))
128
            if (Module_SendMessage(aliases_data[name]["module_name"], aliases_data[name]["module_id"], "LCD_TextAt", variables))
129
            {
129
            {
130
                Log("\033[32mCommand sent successfully to " + name + ".\033[0m\n");
130
                //Log("\033[32mCommand sent successfully to " + name + ".\033[0m\n");
131
            }
131
            }
132
            else
132
            else
133
            {
133
            {
134
                Log("\033[31mFailed to send command to " + name + ".\033[0m\n");
134
                Log("\033[31mFailed to send command to " + name + ".\033[0m\n");
135
            }
135
            }