Skip to content

Sensing of temperature and air pressure using in .NET Core/Python on a Raspberry PI

Notifications You must be signed in to change notification settings

simontjell/raspberrypi-dotnet-sensing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raspberrypi-dotnet-sensing

Installing .NET Core and other packages

./install-dotnet.sh

Enabling I2C and the SSH daemon

Start the configuration utility:

sudo raspi-config

Select point 5: "Interfacing options" Select point 2: "SSH" and "Yes" to enable the daemon to run at startup Select point 5: "I2C" and "Yes" to enable

Setting up a Samba share

sudo leafpad /etc/samba/smb.conf

(add a share for the 'pi' user)

Browsing files in Windows

Get the IP address of the Raspberry PI device

hostname -I

In Windows Explorer, navigate to \\(IP address) and enter the credentials added to the Samba configuration.

Using dotnet-sshdeploy

First, install the tool globally:

dotnet tool install -g dotnet-sshdeploy

Next, add the following (properly adjusted) to the first property group of the project file:

    <SshDeployHost>raspberrypi</SshDeployHost>
    <SshDeployTargetPath>/home/pi/publish/web</SshDeployTargetPath>
    <SshDeployUsername>pi</SshDeployUsername>
    <SshDeployPassword>(your password)</SshDeployPassword>

Deployment is done in the following way:

dotnet-sshdeploy.exe push

When deployment succeeds, the web app can be started in the Raspberry PI:

cd /home/pi/publish/web
dotnet web.dll

About

Sensing of temperature and air pressure using in .NET Core/Python on a Raspberry PI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages