https://github.com/pereviader/mysmarthome
Containerized c# applications where my smart home and life integrations happens
https://github.com/pereviader/mysmarthome
Last synced: 10 months ago
JSON representation
Containerized c# applications where my smart home and life integrations happens
- Host: GitHub
- URL: https://github.com/pereviader/mysmarthome
- Owner: PereViader
- Created: 2024-11-02T20:44:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-04T16:44:25.000Z (11 months ago)
- Last Synced: 2025-08-04T20:03:21.368Z (10 months ago)
- Language: C#
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# My Smart Home
## What does it do?
- Emit telegram messages based on some event sent to an http endpoint
- Play music randomly on chromcast compatible devices
## Run locally with docker
Note: Running the application with docker for windows does not work due to the limited compatibility in the windows host network adapter from docker. Chromecast playback has a TTL of 1 and thus packets never arrive the dockerized application
Also the application is not yet properly implemented to even be able to do it :)
```
docker build -t pereviader/musiccaster:latest .
docker run --name musiccaster --network host -v C:/Users/perev/Music/MusicCaster:/app/audio pereviader/musiccaster:latest
```
## Publish an update of the code to the docker hub
```
docker buildx build --platform linux/arm64 -t pereviader/musiccaster:latest .
docker login
docker push pereviader/musiccaster:latest
```
## Running in a raspberry pereviader
Note that the application relies on a volume `/home/usuari/apps/musiccaster` with mp3 music files in it that must must be bound to `/app/audio` it can be made readonly with `:ro`
To customize the application configuration, you need to also bind `/app/appsettings.Configuration.json`
```
docker run \
--pull always \
--detach \
--network host \
--name musiccaster \
--restart unless-stopped \
-v /home/usuari/apps/musiccaster:/app/audio:ro \
-v /home/usuari/apps/musiccaster/appsettings.Configuration.json:/app/appsettings.Configuration.json:ro \
pereviader/musiccaster:latest
```