Things used in this project

Code

Setup unstable aspnet feedPowershell
This will configure the $env variable to access the unstable feed. We need this configured to download the beta versions of dnx
$env:DNX_UNSTABLE_FEED = "https://www.myget.org/F/aspnetmaster"
Download and Install DXN RuntimesPowershell
Download and Install DXN Runtimes
dnvm upgrade

dnvm update-self

dnvm install 1.0.0-beta7 -r coreclr -arch ARM -u

dnvm install 1.0.0-beta7 -r coreclr -arch x86 -u

dnvm install 1.0.0-beta7 -r coreclr -arch x64 -u  

dnvm install 1.0.0-beta7 -r clr -arch x86 -u  

dnvm install 1.0.0-beta7 -r clr -arch x64 -u  
List runtimesPowershell
List the runtimes installed in the development machine
dnvm list
yoPowershell
Install yo and generator-aspnet using npm
npm install -g yo generator-aspnet
yo aspnet

dnvm use -v 1.0.0-beta7
dnu restore
dnx web  
PiControllerC#
ASP.NET MVC Controller upon access retrieves the process usage of the pi
 namespace DnxPi.Controllers
{
    public class PiController : Controller
    {
	public IActionResult Index()
        {
            return View();
        }
    }
}  
dnu publishPowershell
Publish the application for arm dnx pi
dnu publish --out C:\publish\DnxPi --no-source --runtime dnx-coreclr-win-arm.1.0.0-beta7 
Open port 5000 on PiPowershell
Enter the PsSession and open the port 5000 on the pi
Enter-PsSession -ComputerName minwinpc -Credential minwinpc\Administrator
Enter your password on propmt

netsh advfirewall firewall add rule name="DNX Web Server port" dir=in action=allow protocol=TCP localport=5000 
DnxPi
ASP.NET 5 application

Credits

8d828a06eb7f3deb877ba2a3911826cd
Syed Sanoor

Developer

Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

PHPoc Blue to Control Door Knob by MQTT Protocol and Cortana
Intermediate
  • 111
  • 7

Programming a PHPoc Blue board to control a servo motor to rotate the knob of a door using MQTT Protocol through voice command.

Face Detection Using OpenCV With Raspberry Pi
Intermediate
  • 3,426
  • 32

Protip

In this project, we are going to detect faces using OpenCV with Raspberry Pi.

Creating an IoT Server with Home Assistant and MQTT
Intermediate
  • 3,783
  • 21

Protip

This guide will help you set up Home Assistant. Access it from any web browser and automations.

Automated GPS Controlled Photo Taker
Intermediate
  • 1,786
  • 20

For this build, I put together a backpack to take pictures when I am close to places that I like; especially in London.

DIY Smart Assistant Speaker/Lamp (Google Home or Alexa)
Intermediate
  • 2,016
  • 5

Full instructions

DIY build using 3D printed enclosure and parts, a recycled Bluetooth speaker, a Raspberry Pi, and a Philips Hue light bulb.

Cat Door with Pet Recognition
Intermediate
  • 4,694
  • 22

Full instructions

Use object detection to let your cat in and out of the house with a motion-activated pet door.

ProjectsCommunitiesTopicsContestsLiveAppsBetaFree StoreBlogAdd projectSign up / Login