Skip to content

jeff-winn/dotnet-veml7700

Repository files navigation

dotnet-veml7700

ASP.NET Core Web API to expose the sensor values from an Adafruit VEML7700 Lux Sensor.

Parts

These are not affiliate links, they're only here so I know what parts I used to build the device.

Installation instructions

These commands would be ran from the user workstation which has downloaded the Debian package, and then SSH into the Raspberry Pi to initiate installation.

scp dotnet-veml7700_<VERSION>_armhf.deb pi@raspberrypi:/home/pi
ssh pi@raspberrypi
sudo dpkg -i dotnet-veml7700_<VERSION>_armhf.deb

After installation the Swagger specification will be available at: http://raspberrypi:8080/swagger

NOTE: If you wish to change the default port used for the server, you will need to change the ASPNETCORE_URLS environment variable setting held within the /etc/systemd/system/dotnet-veml7700.service file on the device.

sudo nano /etc/systemd/system/dotnet-veml7700.service
sudo systemctl daemon-reload