Skip to content

FabriceMaillefer/Countdown

Repository files navigation

Countdown

Web-based remote controlled countdown in .Net C#

Overview

Presenter view

Countdown Countdown + Message Clock Clock + Message

Control

Control the presenter view from a remote page.

Remote access information

Display the local IP and a QR code to access the Countdown easily from a smartphone.

Development

Requirements

  • .NET 6
  • Visual Studio Code or Visual Studio 2022

Download the latest version of the .NET framework for your system from here https://dotnet.microsoft.com/download/dotnet/6.0

Setup on a Raspberry Pi

Service

Install .NET 6 SDK

cd ~
wget https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh
chmod +x dotnet-install.sh
./dotnet-install.sh -c 6.0

Add dotnet to PATH

echo 'export DOTNET_ROOT=$HOME/.dotnet' >> ~/.bashrc
echo 'export PATH=$PATH:$HOME/.dotnet' >> ~/.bashrc
source ~/.bashrc
dotnet --version

The output shall be something like 6.0.200

git clone https://github.com/FabriceMaillefer/Countdown.git
cd Countdown

dotnet run --urls=http://+:5000/

Edit the countdown.service file to change the absolute path in WorkingDirectory and ExecStart

nano ~/Countdown/Docs/RaspberryPi/countdown.service

Enable the service for automatic start

chmod +x Docs/RaspberryPi/run.sh
sudo systemctl enable ~/Countdown/Docs/RaspberryPi/countdown.service 

Tips:

If you modify the countdown.service file after registration, use sudo systemctl daemon-reload to reload the service.

Check service status:

sudo service countdown status

Check service output:

sudo journalctl -u countdown -e

Setup Presenter view at startup

  1. copy the autostart
cp /etc/xdg/lxsession/LXDE-pi/autostart ~/.config/lxsession/LXDE-pi/
  1. open the autostart with nano
nano ~/.config/lxsession/LXDE-pi/autostart
  1. Then edit the autostart
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi

@xset s off
@xset -dpms
@xset s noblank

@unclutter -idle 1 -root
@/usr/bin/chromium-browser --app=http://localhost:5000 --kiosk --noerrdialogs --disable-session-crashed-bubble --disable-infobars

License

Countdown is distributed under the MIT License.

About

Web-based remote controlled countdown in .Net C#

Topics

Resources

License

Stars

Watchers

Forks

Contributors