Python Script that plays ambient music that changes with your time and weather.
Find a file
uncreativeCultist a03ffc3881 revert 5ed70f9da5
revert Fix weather detection
2025-11-29 17:02:16 +00:00
acnl.py revert 5ed70f9da5 2025-11-29 17:02:16 +00:00
config.example.py Upload files to "/" 2025-11-27 20:10:55 +00:00
LICENSE Initial commit 2025-11-27 20:02:01 +00:00
README.md Update README.md 2025-11-27 20:08:36 +00:00
requirements.txt Upload files to "/" 2025-11-27 20:10:55 +00:00

AnimalCrossingHourlyMusic

Python Script that plays ambient music that changes with your time and weather.

Config Example

from pymeteosource.types import tiers


# -------------------
# Music Config
# -------------------

# Volume % out of 100
volume = 100

# Soundtrack Selection
soundtrack = "acnl"

# -------------------
# MeteoSource Config
# We use MeteoSource for grabbing Weather data.
# -------------------

# Controls whether or not locational data is used to detect the weather.
# Set this to False if you don't want to use your locational data.
use_locational_data = "True"

# Which weather track to play if locational data is disabled.
# Acceptable Values: Clear, Rainy, Snowy
preferred_weather = "Snowy"

# MeteoSource API key
# You can get this from https://www.meteosource.com/client
meteosource_api_key = 'CHANGEME'

# Change this to your actual MeteoSource tier
meteosource_tier = tiers.FREE

# Change this to the Latitude and Longitude of your (general) location.
meteosource_latitude = 0
meteosource_longitude = 0

Soundtrack Folder Tree

New Soundtrack/
├── Clear/
│   ├── 0.mp3
│   ├── 1.mp3
│   ├── 2.mp3
│   ├── 3.mp3
│   ├── 4.mp3
│   ├── 5.mp3
│   ├── 6.mp3
│   ├── 7.mp3
│   ├── 8.mp3
│   ├── 9.mp3
│   ├── 10.mp3
│   ├── 11.mp3
│   ├── 12.mp3
│   ├── 13.mp3
│   ├── 14.mp3
│   ├── 15.mp3
│   ├── 16.mp3
│   ├── 17.mp3
│   ├── 18.mp3
│   ├── 19.mp3
│   ├── 20.mp3
│   ├── 21.mp3
│   ├── 22.mp3
│   └── 23.mp3
├── Rainy/
│   ├── 0.mp3
│   ├── 1.mp3
│   ├── 2.mp3
│   ├── 3.mp3
│   ├── 4.mp3
│   ├── 5.mp3
│   ├── 6.mp3
│   ├── 7.mp3
│   ├── 8.mp3
│   ├── 9.mp3
│   ├── 10.mp3
│   ├── 11.mp3
│   ├── 12.mp3
│   ├── 13.mp3
│   ├── 14.mp3
│   ├── 15.mp3
│   ├── 16.mp3
│   ├── 17.mp3
│   ├── 18.mp3
│   ├── 19.mp3
│   ├── 20.mp3
│   ├── 21.mp3
│   ├── 22.mp3
│   └── 23.mp3
└── Snowy/
    ├── 0.mp3
    ├── 1.mp3
    ├── 2.mp3
    ├── 3.mp3
    ├── 4.mp3
    ├── 5.mp3
    ├── 6.mp3
    ├── 7.mp3
    ├── 8.mp3
    ├── 9.mp3
    ├── 10.mp3
    ├── 11.mp3
    ├── 12.mp3
    ├── 13.mp3
    ├── 14.mp3
    ├── 15.mp3
    ├── 16.mp3
    ├── 17.mp3
    ├── 18.mp3
    ├── 19.mp3
    ├── 20.mp3
    ├── 21.mp3
    ├── 22.mp3
    └── 23.mp3