This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"pins":{"gpi":[],"gpo":[]},"sensors":[{"name":"pir_sensor","displayname":"PIR Sensor","type":"pirsensor","io":"lh,pcfin,0,0","status":"nc","actions":{"on":[],"off":[]},"misc":{}}],"relays":[{"name":"covelight","type":"switch","io":"lh,pcf,0,0","displayname":"covelight","misc":{}},{"name":"ceiling_light","type":"switch","io":"lh,pcf,0,1","displayname":"ceiling light","misc":{}},{"name":"bathroom_light","type":"switch","io":"lh,pcf,0,2","displayname":"bathroom light","misc":{}},{"name":"dine_light","type":"switch","io":"lh,pcf,0,3","displayname":"dine light","misc":{}},{"name":"door_bell","type":"doorbell","io":"lh,mbo,19,40010","displayname":"Door bell","misc":{}},{"name":"dnd_light","type":"dndlight","io":"lh,mbo,17,40011","displayname":"DND light","misc":{}},{"name":"mur_light","type":"murlight","io":"lh,mbo,17,40012","displayname":"MUR light","misc":{}},{"name":"room_no_light","type":"roomnolight","io":"lh,mbo,17,40014","displayname":"Room No light","misc":{}},{"name":"fcu1","type":"thermostat","io":"lh,pc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Component, HostListener, Input, OnInit } from '@angular/core'; | |
| export class AppbarComponent implements OnInit { | |
| touchstartX:number = 0; | |
| touchstartY:number = 0; | |
| touchendX:number = 0; | |
| touchendY:number = 0; | |
| @HostListener('touchstart', ['$event']) gesuredZonestart(event:any) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const APP = { | |
| deferredInstall: null, | |
| init() { | |
| if ('serviceWorker' in navigator) { | |
| //register our service worker | |
| navigator.serviceWorker | |
| .register('/sw.js', { | |
| updateViaCache: 'none', | |
| scope: '/', | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function $(newNumber) { | |
| this.permementNumber = newNumber; | |
| console.log(this.permementNumber); | |
| } | |
| $.prototype.add = function(addThisNumber) { | |
| this.permementNumber = this.permementNumber + addThisNumber; | |
| return new $(this.permementNumber); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo rm -rf DirectoryName |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get install ubuntu-budgie-desktop |