Subversion Repositories HomeAutomation

Rev

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

Rev 1220 Rev 1221
Line 139... Line 139...
139
    this.statusMenuItem = new MenuItem(this);
139
    this.statusMenuItem = new MenuItem(this);
140
    this.statusMenuItem.displayData[0] = this.lcdCenterText("Meny1");
140
    this.statusMenuItem.displayData[0] = this.lcdCenterText("Meny1");
141
    this.statusMenuItem.displayData[1] = this.lcdCenterText("");
141
    this.statusMenuItem.displayData[1] = this.lcdCenterText("");
142
    this.statusMenuItem.displayData[2] = this.lcdCenterText("");
142
    this.statusMenuItem.displayData[2] = this.lcdCenterText("");
143
    this.statusMenuItem.displayData[3] = this.lcdCenterText("");
143
    this.statusMenuItem.displayData[3] = this.lcdCenterText("");
144
    this.statusMenuItem.doUpdate = this.updateStatusMenuItem; };
144
    this.statusMenuItem.doUpdate = this.updateStatusMenuItem;
145
    this.currentMenuItem = this.statusMenuItem;
145
    this.currentMenuItem = this.statusMenuItem;
146
   
146
   
147
    /* create the menuitem where you can choose to enter the booking sub-menu */
147
    /* create the menuitem where you can choose to enter the booking sub-menu */
148
    this.dtmfMenuItem = new MenuItem(this);
148
    this.dtmfMenuItem = new MenuItem(this);
149
    this.dtmfMenuItem.displayData[0] = this.lcdCenterText("Senaste nummer");
149
    this.dtmfMenuItem.displayData[0] = this.lcdCenterText("Senaste nummer");
Line 223... Line 223...
223
    var date = new Date();
223
    var date = new Date();
224
    /* Get the current date time on the format YYYY-mm-dd HH.ii.ss */
224
    /* Get the current date time on the format YYYY-mm-dd HH.ii.ss */
225
    var dateAndTime = date.getDateTimeFormated();
225
    var dateAndTime = date.getDateTimeFormated();
226
    //var date = new Date();
226
    //var date = new Date();
227
    //var dateAndTime = "" + date.getTimeShortFormated();
227
    //var dateAndTime = "" + date.getTimeShortFormated();
228
    this.displayData[1] = this.lcdCenterText(""+dateAndTime);
228
    this.displayData[1] = this.parentDisplay.lcdCenterText(""+dateAndTime);
229
 
229
 
230
this.displayData[2] = this.lcdCenterText(""+insideTemperature + " C   " + outsideTemperature + " C");
230
this.displayData[2] = this.parentDisplay.lcdCenterText(""+insideTemperature + " C   " + outsideTemperature + " C");
231
 
231
 
232
    this.displayData[3] = this.lcdCenterText(""+this.CurrentPower.toString()+" Watt "+(this.CurrentEnergy/1000).toString() + "kWh");
232
    this.displayData[3] = this.parentDisplay.lcdCenterText(""+this.parentDisplay.CurrentPower.toString()+" Watt "+(this.parentDisplay.CurrentEnergy/1000).toString() + "kWh");
233
}
233
}
234
 
234
 
235
DisplayLinus.prototype.temperatureUpdate = function(sensorId)
235
DisplayLinus.prototype.temperatureUpdate = function(sensorId)
236
{
236
{
237
    if (sensorId == outsideTemperatureSensorId) {
237
    if (sensorId == outsideTemperatureSensorId) {