User Tools

Site Tools


kodi:kodi-config

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
kodi:kodi-config [2020/11/08 12:28] Wulf Rajekkodi:kodi-config [2025/08/29 00:46] (current) – [Clock in music] Wulf Rajek
Line 113: Line 113:
  
 http://kodi.wiki/view/Add-on:Missing%20Movie%20Scanner http://kodi.wiki/view/Add-on:Missing%20Movie%20Scanner
 +
 +==== Language Preference Manager ====
 +
 +https://github.com/cyberden/service.LanguagePreferenceManager
  
 ==== Music Video scraper ==== ==== Music Video scraper ====
Line 163: Line 167:
 Custom nodes: /userdata/library/video/ Custom nodes: /userdata/library/video/
  
 +Node rules are stored in:
 +<code - addon_data/plugin.library.node.editor/videorules.xml>
 +<rules>
 +    <node name="/home/kodi/.kodi/userdata/library/video/movies">
 +        <rule field="path" operator="doesnotcontain">
 +            <value>nfs://192.168.1.6/volume3/concerts/</value>
 +        </rule>
 +    </node>
 +    <node name="/home/kodi/.kodi/userdata/library/video/musicvideos" />
 +    <node name="/home/kodi/.kodi/userdata/library/video/tvshows" />
 +    <node name="/home/kodi/.kodi/userdata/library/video/concerts">
 +        <rule field="path" operator="startswith">
 +            <value>nfs://192.168.1.6/volume3/concerts/</value>
 +        </rule>
 +    </node>
 +</rules>
 +</code>
  
 ===== IPTV ===== ===== IPTV =====
Line 308: Line 329:
 kodi ALL = NOPASSWD: /usr/sbin/service kodi restart, /usr/sbin/service kodi start, /usr/sbin/service kodi stop, /usr/sbin/service kodi status kodi ALL = NOPASSWD: /usr/sbin/service kodi restart, /usr/sbin/service kodi start, /usr/sbin/service kodi stop, /usr/sbin/service kodi status
 </code> </code>
 +
 +===== Fix refresh rate =====
 +
 +In case 60Hz refresh rate is supported but is causing problems and Kodi keeps reverting to 60Hz, the following xrandr command in the /etc/rc.local file can be used to adjust the refresh rate before Kodi starts:
 +<code - /etc/rc.local>
 +#!/bin/sh
 +DISPLAY=:0 xrandr --output DP-1 --mode 3840x2160 --rate 30.00
 +</code>
 +<code>
 +sudo chmod 755 /etc/rc.local
 +</code>
 +
 +===== Smart Playlists =====
 +
 +Smart playlists are xsp files stored in '' /userdata/playlists/music''
 +
 +Example
 +<code - 80-90s.xsp>
 +<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
 +<smartplaylist type="songs">
 +    <name>80-90s</name>
 +    <match>all</match>
 +    <rule field="year" operator="greaterthan">
 +        <value>1979</value>
 +    </rule>
 +    <rule field="year" operator="lessthan">
 +        <value>2000</value>
 +    </rule>
 +    <rule field="time" operator="greaterthan">
 +        <value>01:00</value>
 +    </rule>
 +    <rule field="genre" operator="doesnotcontain">
 +        <value>Acapella</value>
 +        <value>Acid</value>
 +        <value>Acid Jazz</value>
 +        <value>Celtic</value>
 +        <value>Comedy</value>
 +        <value>Dance</value>
 +        <value>Dance-Pop</value>
 +        <value>Dance/Electronic</value>
 +        <value>Dancehall</value>
 +        <value>Deep House</value>
 +        <value>Drum And Bass</value>
 +        <value>Dubstep</value>
 +        <value>Electronic</value>
 +        <value>Electronica</value>
 +        <value>Electropop</value>
 +        <value>Eurodance</value>
 +        <value>Happy Hardcore</value>
 +        <value>Hard Trance</value>
 +        <value>Jazz</value>
 +        <value>Neue Deutsche Welle</value>
 +        <value>Opera</value>
 +        <value>Progressive House</value>
 +        <value>Progressive Metal</value>
 +        <value>Progressive Rock</value>
 +        <value>Psychedelic Rock</value>
 +        <value>Rave</value>
 +        <value>Reggae</value>
 +        <value>Reggaeton</value>
 +        <value>Schlager</value>
 +        <value>Ska</value>
 +        <value>Techno</value>
 +        <value>Thrash Metal</value>
 +        <value>Trance</value>
 +        <value>Vocal</value>
 +        <value>World/Jazz</value>
 +    </rule>
 +    <rule field="title" operator="doesnotcontain">
 +        <value>christmas</value>
 +    </rule>
 +    <rule field="title" operator="doesnotcontain">
 +        <value>xmas</value>
 +    </rule>
 +    <rule field="path" operator="doesnotcontain">
 +        <value>christmas</value>
 +    </rule>
 +    <rule field="path" operator="doesnotcontain">
 +        <value>xmas</value>
 +    </rule>
 +    <limit>100</limit>
 +    <order direction="ascending">random</order>
 +</smartplaylist>
 +</code>
 +
 +
 +===== Keyboard shortcuts =====
 +https://kodi.wiki/view/Keymap
 +
 +.kodi/userdata/keymaps/keyboard.xml
 +<code>
 +    <keymap>
 +      <global>
 +        <keyboard>
 +          <1>ReloadSkin()</1>
 +        </keyboard>
 +      </global>
 +    </keymap> 
 +</code>
 +
 +===== Clock in music =====
 +
 +{{:kodi:kodi-music-vis-clock.jpg?nolink&400|}}
 +
 +.kodi/addons/skin.estuary.modv2/xml/MusicVisualization.xml
 +Add before the last %%</controls>%% at end
 +<code>
 +<!-- Start - Clock in Music Vis -->
 +        <control type="image">
 +            <left>0</left>
 +            <top>0</top>
 +            <width>110%</width>
 +            <height>160</height>
 +            <texture colordiffuse="$VAR[Bars_Opacity]">frame/osdfade.png</texture>
 +            <animation effect="fade" start="100" end="0" time="300" condition="Window.Next(screencalibration)">WindowClose</animation>
 +            <visible>!Player.ShowInfo</visible>
 +        </control>
 +        <control type="grouplist">
 +            <top>0</top>
 +            <align>right</align>
 +            <right>20</right>
 +            <height>200</height>
 +            <orientation>horizontal</orientation>
 +            <width>1270</width>
 +            <itemgap>10</itemgap>
 +            <visible>!Window.IsVisible(extendedprogressdialog) + !Window.IsActive(fullscreenvideo)</visible>
 +            <animation effect="fade" time="150">VisibleChange</animation>
 +            <visible>!Player.ShowInfo</visible>
 +            <control type="group">
 +                <width>600</width>
 +                <animation effect="fade" time="200">VisibleChange</animation>
 +                <control type="grouplist">
 +                    <left>-75</left>
 +                    <orientation>horizontal</orientation>
 +                    <height>38</height>
 +                    <top>14</top>
 +                    <align>right</align>
 +                    <width>660</width>
 +                    <itemgap>5</itemgap>
 +                    <usecontrolcoords>true</usecontrolcoords>
 +                    <control type="image">
 +                        <top>7</top>
 +                        <width>1</width>
 +                        <height>23</height>
 +                        <texture />
 +                        <visible>Player.HasAudio + !Player.Paused</visible>
 +                    </control>
 +                    <control type="image">
 +                        <top>4</top>
 +                        <width>32</width>
 +                        <height>32</height>
 +                        <aspectratio>keep</aspectratio>
 +                        <texture colordiffuse="$VAR[SkinColorVar]">$VAR[NowPlayingIconVar]</texture>
 +                        <visible>![Player.HasAudio + !Player.Paused]</visible>
 +                    </control>
 +                    <control type="label">
 +                        <label>$INFO[Player.Title]</label>
 +                        <font>font27</font>
 +                        <shadowcolor>$VAR[ShadowColorVar]</shadowcolor>
 +                        <height>35</height>
 +                        <width min="1" max="555">auto</width>
 +                        <scroll>true</scroll>
 +                    </control>
 +                </control>
 +                <control type="label" id="7700">
 +                    <label>$VAR[NowPlayingSublabelVar]</label>
 +                    <left>5</left>
 +                    <top>48</top>
 +                    <font>font12</font>
 +                    <textcolor>grey</textcolor>
 +                    <shadowcolor>$VAR[ShadowColorVar]</shadowcolor>
 +                    <height>25</height>
 +                    <width>580</width>
 +                    <align>right</align>
 +                    <scroll>true</scroll>
 +                </control>
 +            </control>
 +            <control type="label">
 +                <animation effect="fade" start="100" end="0" time="300" condition="Window.Next(screencalibration)">WindowClose</animation>
 +                <animation effect="slide" end="0,-10" time="0" condition="String.IsEqual(Skin.Font,Arial)">Conditional</animation>
 +                <font>font_clock</font>
 +                <shadowcolor>$VAR[ShadowColorVar]</shadowcolor>
 +                <height>200</height>
 +                <right>203</right>
 +                <width>auto</width>
 +                <label>[B]$INFO[System.Time][/B]</label>
 +                <visible>!Player.ShowInfo</visible>
 +            </control>
 +        </control>
 +<!-- End - Clock in Music Vis -->
 +</code>
 +
 +===== Screenshot =====
 +
 +Stored in Screenshot folder configured in debug settings: https://kodi.wiki/view/Settings/System/Logging#Screenshot_folder
 +
 +Keyboard shortcut Ctrl-s or remote command:
 +<code>
 +kodi-send --action="TakeScreenshot"
 +</code>
 +
 +
kodi/kodi-config.1604838533.txt.gz · Last modified: (external edit)