Share the love
Search…
Kodi Remote Card
A simple remote that will hold up under any resolution.
kodi remote card
1
- type: picture-elements
2
image: /local/banners/empty_long_placeholder.png
3
elements:
4
- type: image
5
image: /local/icons/animated/media-card/up-arrow.png
6
tap_action: call-service
7
service: shell_command.kodi_up
8
style:
9
top: 5em
10
left: 10em
11
width: 54px
12
height: 54px
13
background-color: rgb(255, 255, 255, 0.8)
14
filter: invert(0.20)
15
border-radius: 4px
16
z-index: 2
17
- type: image
18
image: /local/icons/animated/media-card/home-button.png
19
tap_action: call-service
20
service: shell_command.kodi_home
21
style:
22
top: 5em
23
left: 6em
24
width: 24px
25
height: 24px
26
padding: 15px
27
background-color: rgb(200, 200, 200, 0.5)
28
filter: invert(0.20)
29
border-radius: 4px
30
z-index: 2
31
- type: image
32
image: /local/icons/animated/media-card/update-button.png
33
tap_action: call-service
34
service: shell_command.kodi_update
35
style:
36
top: 5em
37
left: 14em
38
width: 24px
39
height: 24px
40
padding: 15px
41
background-color: rgb(200, 200, 200, 0.5)
42
filter: invert(0.20)
43
border-radius: 4px
44
z-index: 2
45
- type: image
46
image: /local/icons/animated/media-card/poweroff-button.png
47
tap_action: call-service
48
service: shell_command.kodi_power
49
style:
50
top: 5em
51
left: 19em
52
width: 24px
53
height: 24px
54
padding: 15px
55
background-color: rgb(255, 255, 255, 0.8)
56
filter: invert(0.20)
57
border-radius: 4px
58
z-index: 2
59
- type: image
60
image: /local/icons/animated/media-card/left-arrow.png
61
tap_action: call-service
62
service: shell_command.kodi_left
63
style:
64
top: 9em
65
left: 6em
66
width: 54px
67
height: 54px
68
background-color: rgb(255, 255, 255, 0.8)
69
filter: invert(0.20)
70
border-radius: 4px
71
z-index: 2
72
- type: image
73
image: /local/icons/animated/media-card/context-button.png
74
tap_action: call-service
75
service: shell_command.kodi_context
76
style:
77
top: 9em
78
left: 10em
79
width: 24px
80
height: 24px
81
padding: 15px
82
background-color: rgb(200, 200, 200, 0.5)
83
filter: invert(0.20)
84
border-radius: 4px
85
z-index: 2
86
- type: image
87
image: /local/icons/animated/media-card/right-arrow.png
88
tap_action: call-service
89
service: shell_command.kodi_right
90
style:
91
top: 9em
92
left: 14em
93
width: 54px
94
height: 54px
95
background-color: rgb(255, 255, 255, 0.8)
96
filter: invert(0.20)
97
border-radius: 4px
98
z-index: 2
99
- type: image
100
image: /local/icons/animated/media-card/reboot-button.png
101
tap_action: call-service
102
service: shell_command.kodi_restart
103
style:
104
top: 9em
105
left: 19em
106
width: 24px
107
height: 24px
108
padding: 15px
109
background-color: rgb(200, 200, 200, 0.5)
110
filter: invert(0.20)
111
border-radius: 4px
112
z-index: 2
113
- type: image
114
image: /local/icons/animated/media-card/down-arrow.png
115
tap_action: call-service
116
service: shell_command.kodi_down
117
style:
118
top: 13em
119
left: 10em
120
width: 54px
121
height: 54px
122
background-color: rgb(255, 255, 255, 0.8)
123
filter: invert(0.20)
124
border-radius: 4px
125
z-index: 2
126
- type: image
127
image: /local/icons/animated/media-card/clean-button.png
128
tap_action: call-service
129
service: shell_command.kodi_clean
130
style:
131
top: 13em
132
left: 19em
133
width: 24px
134
height: 24px
135
padding: 15px
136
background-color: rgb(255, 255, 255, 0.8)
137
filter: invert(0.20)
138
border-radius: 4px
139
z-index: 2
140
- type: image
141
image: /local/icons/animated/media-card/back-button.png
142
tap_action: call-service
143
service: shell_command.kodi_back
144
style:
145
top: 13em
146
left: 6em
147
width: 24px
148
height: 24px
149
padding: 15px
150
background-color: rgb(200, 200, 200, 0.5)
151
filter: invert(0.20)
152
border-radius: 4px
153
z-index: 2
154
- type: image
155
image: /local/icons/animated/media-card/enter-button.png
156
tap_action: call-service
157
service: shell_command.kodi_enter
158
style:
159
top: 13em
160
left: 14em
161
width: 24px
162
height: 24px
163
padding: 15px
164
background-color: rgb(200, 200, 200, 0.5)
165
filter: invert(0.20)
166
border-radius: 4px
167
z-index: 2
168
- type: image
169
image: /local/icons/animated/media-card/volumedown-button.png
170
tap_action: call-service
171
service: shell_command.kodi_volumedown
172
style:
173
top: 18em
174
left: 6em
175
width: 24px
176
height: 24px
177
padding: 15px
178
background-color: rgb(255, 255, 255, 0.8)
179
filter: invert(0.20)
180
border-radius: 4px
181
z-index: 2
182
- type: image
183
image: /local/icons/animated/media-card/mute-button.png
184
tap_action: call-service
185
service: shell_command.kodi_mute
186
style:
187
top: 18em
188
left: 10em
189
width: 24px
190
height: 24px
191
padding: 15px
192
background-color: rgb(200, 200, 200, 0.5)
193
filter: invert(0.20)
194
border-radius: 4px
195
z-index: 2
196
- type: image
197
image: /local/icons/animated/media-card/volumeup-button.png
198
tap_action: call-service
199
service: shell_command.kodi_volumeup
200
style:
201
top: 18em
202
left: 14em
203
width: 24px
204
height: 24px
205
padding: 15px
206
background-color: rgb(255, 255, 255, 0.8)
207
filter: invert(0.20)
208
border-radius: 4px
209
z-index: 2
210
- type: image
211
image: /local/icons/animated/media-card/kodi-icon.png
212
entity: media_player.kodi
213
style:
214
top: 18em
215
left: 19em
216
width: 56px
217
height: 56px
218
z-index: 2
Copied!
And then some shell_command to send commands to kodi
1
kodi_bedroom_clean: "kodi_remote --clean"
2
kodi_bedroom_update: "kodi_remote --update"
3
kodi_bedroom_up: "kodi_remote --up"
4
kodi_bedroom_down: "kodi_remote --down"
5
kodi_bedroom_left: "kodi_remote --left"
6
kodi_bedroom_right: "kodi_remote --right"
7
kodi_bedroom_enter: "kodi_remote --select"
8
kodi_bedroom_home: "kodi_remote --home"
9
kodi_bedroom_power: "kodi_remote --poweroff"
10
kodi_bedroom_back: "kodi_remote --back"
11
kodi_bedroom_mute: "kodi_remote --mute"
12
kodi_bedroom_volumeup: "kodi_remote --volumeup"
13
kodi_bedroom_volumedown: "kodi_remote --volumedown"
14
kodi_bedroom_context: "kodi_remote --context"
Copied!
and last but not least the little shell script that handles the calls obviously swap the ip address and port in the shell script for your ip and port
1
host=http://port:ip/jsonrpc
2
case $1 in
3
--back ) curl -sS --data-binary '{ "jsonrpc": "2.0", "method": "Input.back", "id": "mybash"}' -H 'content-type: application/json;' $host ;;
4
--up ) curl -sS --data-binary '{ "jsonrpc": "2.0", "method": "Input.Up", "id": "mybash"}' -H 'content-type: application/json;' $host ;;
5
--down ) curl -sS --data-binary '{ "jsonrpc": "2.0", "method": "Input.Down", "id": "mybash"}' -H 'content-type: application/json;' $host ;;
6
--left ) curl -sS --data-binary '{ "jsonrpc": "2.0", "method": "Input.Left", "id": "mybash"}' -H 'content-type: application/json;' $host ;;
7
--right ) curl -sS --data-binary '{ "jsonrpc": "2.0", "method": "Input.Right", "id": "mybash"}' -H 'content-type: application/json;' $host ;;
8
--home ) curl -sS --data-binary '{ "jsonrpc": "2.0", "method": "Input.Home", "id": "mybash"}' -H 'content-type: application/json;' $host ;;
9
--select ) curl -sS --data-binary '{ "jsonrpc": "2.0", "method": "Input.Select", "id": "mybash"}' -H 'content-type: application/json;' $host ;;
10
--update ) curl -sS --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Scan", "id": "mybash"}' -H 'content-type: application/json;' $host ;;
11
--clean ) curl -sS --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Clean", "id": "mybash"}' -H 'content-type: application/json;' $hostc ;;
12
--poweroff ) curl -sS --data-binary '{ "jsonrpc": "2.0", "method": "System.Shutdown", "id": "mybash"}' -H 'content-type: application/json;' $host ;;
13
--restart ) curl -sS --data-binary '{ "jsonrpc": "2.0", "method": "System.OnRestart", "id": "mybash"}' -H 'content-type: application/json;' $host ;;
14
--context ) curl -sS --data-binary '{ "jsonrpc": "2.0", "method": "Input.ContextMenu", "id": "mybash"}' -H 'content-type: application/json;' $host ;;
15
--mute ) curl -sS --data-binary '{ "jsonrpc": "2.0", "method": "Application.SetMute", "params": {"mute":"toggle"}, "id": "mybash"}' -H 'content-type: application/json;' $host ;;
16
--volumeup ) curl -sS --data-binary '{ "jsonrpc": "2.0", "method": "Application.SetVolume", "params": { "volume": "increment" }, "id": 1 }' -H 'content-type: application/json;' $host ;;
17
--volumedown ) curl -sS --data-binary '{ "jsonrpc": "2.0", "method": "Application.SetVolume", "params": { "volume": "decrement" }, "id": 1 }' -H 'content-type: application/json;' $host ;;
18
esac
Copied!
here is the iconpack for this card
Last modified 1yr ago
Copy link