layout: page title: "Azure IoT" description: "Offers support for Azure IoT integration with Homeassistant." date: 2017-10-22 14:18 sidebar: true comments: false sharing: true footer: true logo: home-assistant.png
This file contains 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
# For more information see: http://www.wictorwilen.se/sharepoint-online-app-only-policy-powershell-tasks-with-acs | |
$clientId = "<INSERT YOUR CLIENT ID HERE>" | |
$secret = "<INSERT YOUR CLIENT SECRET HERE>"; | |
$redirecturi = "<INSERT YOUR REDIRECT URI HERE>" | |
$url = "https://<TENANT>.sharepoint.com/sites/contoso/" | |
$domain = "<TENANT>.sharepoint.com" | |
$identifier = "00000003-0000-0ff1-ce00-000000000000" |
This file contains 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
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg | |
sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/ | |
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/edge stable main" > /etc/apt/sources.list.d/vscode.list' | |
rm -f packages.microsoft.gpg | |
sudo apt update | |
sudo apt install microsoft-edge-stable |
This file contains 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 crypto = require('crypto'); | |
const request = require('request'); | |
const bufSecret = Buffer('OUTGOING-WEBHOOK-SECRET', "base64"); | |
const flowWebhook = 'MICROSOFT-FLOW-URL'; | |
module.exports = function (context, req) { | |
var auth = req.headers['authorization']; | |
// HMAC security validation |
This file contains 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
{ | |
"domain": "sector_alarm", | |
"name": "Sector Alarm", | |
"documentation": "https://void.null", | |
"dependencies": [], | |
"codeowners": [], | |
"requirements": [] | |
} | |
This file contains 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
Install-Module -Name MicrosoftTeams -Force | |
Connect-MicrosoftTeams | |
Get-Team -User <username> | |
Get-TeamUser -GroupId <id> | ft User |
This file contains 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
var url = "https://contoso.sharepoint.com/sites/classic/SiteAssets/test" | |
var context = SP.ClientContext.get_current() | |
var site = context.get_site() | |
var actions = site.get_userCustomActions(); | |
context.load(site) | |
context.load(actions) | |
context.executeQueryAsync( | |
function () { | |
var newAction = actions.add(); | |
newAction.set_description('abc123') |
This file contains 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
fetch('/_api/site', {headers:{accept:'application/json'}}).then( x => x.json().then( y => console.log(y))) |
This file contains 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
DATA=From env file |
This file contains 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
'use strict'; | |
import { HttpClient, HttpClientResponse } from '@microsoft/sp-http'; | |
import { IWebPartContext } from '@microsoft/sp-webpart-base'; | |
export interface IListsService { | |
getListNames(): Promise<string[]>; | |
getListColumns(listName: string): Promise<string[]>; | |
getListItems(listName: string, listColumns: string[]): Promise<string[][]> |
NewerOlder