Web-based remote controlled countdown in .Net C#
Countdown
Countdown + Message
Clock
Clock + Message

Control the presenter view from a remote page.

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

- .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
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.0Add dotnet to PATH
echo 'export DOTNET_ROOT=$HOME/.dotnet' >> ~/.bashrc
echo 'export PATH=$PATH:$HOME/.dotnet' >> ~/.bashrc
source ~/.bashrc
dotnet --versionThe 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.serviceEnable the service for automatic start
chmod +x Docs/RaspberryPi/run.sh
sudo systemctl enable ~/Countdown/Docs/RaspberryPi/countdown.service If you modify the countdown.service file after registration, use sudo systemctl daemon-reload to reload the service.
Check service status:
sudo service countdown statusCheck service output:
sudo journalctl -u countdown -e- copy the
autostart
cp /etc/xdg/lxsession/LXDE-pi/autostart ~/.config/lxsession/LXDE-pi/
- open the
autostartwith nano
nano ~/.config/lxsession/LXDE-pi/autostart
- 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
Countdown is distributed under the MIT License.