{"id":20303924,"url":"https://github.com/billstclair/raspi-alarm","last_synced_at":"2025-08-15T18:46:21.763Z","repository":{"id":66592626,"uuid":"137672239","full_name":"billstclair/raspi-alarm","owner":"billstclair","description":"Some scripts to make a Raspberry Pi play one or more MP3 files at startup.","archived":false,"fork":false,"pushed_at":"2018-07-02T09:02:48.000Z","size":517,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T19:43:05.887Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/billstclair.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-17T17:13:12.000Z","updated_at":"2018-07-02T09:02:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"2ee988aa-547b-4d46-b0aa-e62108d6beed","html_url":"https://github.com/billstclair/raspi-alarm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billstclair%2Fraspi-alarm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billstclair%2Fraspi-alarm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billstclair%2Fraspi-alarm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billstclair%2Fraspi-alarm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/billstclair","download_url":"https://codeload.github.com/billstclair/raspi-alarm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241801259,"owners_count":20022390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T16:41:43.646Z","updated_at":"2025-03-04T07:13:01.037Z","avatar_url":"https://github.com/billstclair.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"This directory is intended to be the image of a USB key to plug in to\na Raspberry Pi. If you configure that Raspberry Pi according to the\ninstructions in \"script-files/README\", it will run\n\"~pi/bin/startup.sh\" at boot time, and play one or more files from\nthis directory.\n\n\"scripts-files/home/pi/bin/startup.sh\" works as follows:\n\nIt will play the single file \"playone.mp3\" in this directory, if it\nexists.\n\nThen, for all directories whose names begin with \"playall\", it will\nplay all the .mp3 files in that directory, in alphabetical order.\n\nThen, for all directories whose names begin with \"playrandom\", it will\nplay a random .mp3 file from that directory.\n\nThis USB key should be plugged in to the lower-right-hand USB port on\na Raspberry Pi 3 Model B+, so that the startup code in \"/etc/fstab\" will\nmount it on \"/mnt/usbstorage\".\n\nThis directory is configured with a single MP3 file, \"playone.mp3\",\nwhich is a ring-tone I've been using for years of the bells from Pink\nFloyd's \"Time\" on \"Dark Side of the Moon\".\n\nThat file is linked three times from each of the \"not.playall\",\n\"not.playall1\", \"not.playrandom\", \"not.playrandom1\", and\n\"not.playrandom2\" directories. You'll want to replace those files with\nthe ones you want to play, and remove the \"not.\" prefixes and/or add\nmore directories, as you desire.\n\nYou'll need the \"omxplayer\" executable, and some fonts to prevent it\nfrom printing a warning about a missing font.\n\n  sudo apt-get install omxplayer\n  sudo apt-get install ttf-freefont\n\nI also found useful this guide to headless setup of a Raspberry Pi,\nsince I didn't have a corded USB mouse or keyboard around, and many\npeople don't have an HDMI monitor.\n\nhttps://hackernoon.com/raspberry-pi-headless-install-462ccabd75d0\n\nI used the Canakit Complete Starter Kit: https://www.amazon.com/dp/B01C6Q2GSY\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbillstclair%2Fraspi-alarm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbillstclair%2Fraspi-alarm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbillstclair%2Fraspi-alarm/lists"}