Skip to content

Instantly share code, notes, and snippets.

@airbornelamb
airbornelamb / README.md
Last active November 8, 2023 14:27
OSMC autoplay file on startup

Purpose: These files will allow you to setup Kodi/OSMC to autoplay a playlist on bootup. Useful for kiosks or TVs that you want to use to play a stream. I use this with a Raspberry Pi 3B+ running OSMC from the Raspberri Pi Imager https://www.raspberrypi.com/software/

  1. Within ~/.kodi/addons/service.autoexec/ create addon.xml and autoexec.py
  2. Within ~/.kodi/userdata/playlists/video/ create streamtest.m3u and edit the file to reference whatever you want to play
  3. Enable the autoexec service by navigating in the menu to Settings > Add-ons > My add-ons > Services > Autoexec Service
  4. You can watch the log file using the command tail -F /home/osmc/.kodi/temp/kodi.log to ensure that it starts the playlist. Now when you reboot it should wait 15 seconds and play from your playlist.

Reference: https://kodi.wiki/view/Autoexec_Service

@airbornelamb
airbornelamb / cdnhtmltemplate.html
Created March 1, 2017 18:34
Basic HTML template that grabs Bootstrap, FontAwesome, and jQuery from BootstrapCDN
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Bootstrap 101 Template</title>
<!-- Bootstrap 3.3.7 minimized -->
@airbornelamb
airbornelamb / convertmultiplemarkdown.md
Last active April 5, 2024 10:49
Systematic way to convert multiple markdown files to html