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

Pulse Train Hat for Raspberry Pi Mecanum Bot Example
Intermediate
  • 743
  • 15

Full instructions

With this example, we show how to use the PTHAT and wireless Xbox controller to control a Mecanum Bot.

GooglePi - Google Assistant on Raspberry Pi
Intermediate
  • 15,334
  • 85

Full instructions

A DIY Google Home using your Raspberry Pi.

Smart Garden
Intermediate
  • 600
  • 5

Smart Garden is plant environmental monitoring system.

Pre-Collision Assist with Pedestrian Detection - Honda Civic
Intermediate
  • 1,652
  • 19

Full instructions

Combine Walabot's RF radar with real-time hazard detection and classification from camera, powered by TensorFlow with YOLO approach.

Detect Motion With OpenCV, No PIR Sensor Needed
Intermediate
  • 819
  • 14

Full instructions

If you have a HAT connected to your Raspberry Pi, you can't use your GPIO. But what if you want to detect motion? This project can help!

Pigeon: A 3D-Printed, Pi Zero W-Powered Cloud Camera
Intermediate
  • 1,266
  • 26

Full instructions

Pigeon is a simple cloud home surveillance camera project that uses the new Raspberry Pi Zero W single-board computer ($10).

ProjectsCommunitiesTopicsContestsLiveAppsBetaFree StoreBlogAdd projectSign up / Login
Feedback