2015年6月17日 星期三

Powershell Environment Variables




http://ss64.com/ps/syntax-env.html
https://technet.microsoft.com/en-us/library/ff730964.aspx

Environment Variables

Windows environment variables are visible as a PS drive called Env:

Get-ChildItem Env:

PowerShell Providers

In addition to environment variables, PowerShell providers also provide access to other data and components in a similar way - resembling a file system drive. This allows you to access many different types of data in a consistent way.
Built-in Providers
Alias - Windows PowerShell aliases {Alias}
Certificate - X509 certificates for digital signatures {cert}
Environment - Windows environment variables {Env}
FileSystem - File system drives, directories and files {filesystem}
Function - Windows PowerShell functions {Function}
Registry - Windows registry {HKLM, HKCU}
Variable - Windows PowerShell variables {Variable}

To create more permanent environment variables (i.e., user-level or machine-level) you need to use the .NET Framework and the SetEnvironmentVariable method. For example, this command creates a user-level environment variable named TestVariable:

[Environment]::SetEnvironmentVariable("TestVariable", "Test value.", "User")

以上需restart才有作用(存於Registry內)


Set-Item Env:TestVariable "Test Value2"

以上restart後資料會消失

2015年6月11日 星期四

Using Node.js for building IoT solutions on Window 10 IoT Core



參考資料:

Node.js - 維基百科,自由的百科全書 - Wikipedia




Setting up your development environment

Please make sure that you have signed up with our program on Microsoft Connect to get access to some of the downloads below.

利用iframe 嵌入ThingSpeak網頁

利用iframe 嵌入ThingSpeak網頁

<iframe height="260" src="http://api.thingspeak.com/channels/41922/charts/1?width=450&amp;height=260&amp;results=60&amp;dynamic=true" style="border: 1px solid #cccccc;" width="450"></iframe>

執行結果如下:



<iframe width="450" height="260" style="border: 1px solid #cccccc;" src="http://api.thingspeak.com/plugins/14953" ></iframe>

執行結果如下:






https://thingspeak.com/channels/41922