feature: Better default config file, restart icons
This commit is contained in:
parent
77ec2fea63
commit
54170f3da6
15
config.yaml
15
config.yaml
|
|
@ -15,9 +15,9 @@ actions:
|
||||||
#
|
#
|
||||||
# If you are running OliveTin in a container remember to pass through the
|
# If you are running OliveTin in a container remember to pass through the
|
||||||
# docker socket! https://docs.olivetin.app/action-container-control.html
|
# docker socket! https://docs.olivetin.app/action-container-control.html
|
||||||
- title: Restart media container
|
- title: Ping the Internet
|
||||||
shell: docker restart mediacontainer
|
shell: ping -c 1 1.1.1.1
|
||||||
icon: box
|
icon: ping
|
||||||
|
|
||||||
# This uses `popupOnStart: execution-dialog-stdout-only` to simply show just
|
# This uses `popupOnStart: execution-dialog-stdout-only` to simply show just
|
||||||
# the command output.
|
# the command output.
|
||||||
|
|
@ -108,12 +108,19 @@ actions:
|
||||||
#
|
#
|
||||||
# Docs: https://docs.olivetin.app/action-ssh.html
|
# Docs: https://docs.olivetin.app/action-ssh.html
|
||||||
# Docs: https://docs.olivetin.app/action-service.html
|
# Docs: https://docs.olivetin.app/action-service.html
|
||||||
- title: restart httpd on server1
|
- title: Restart httpd on server1
|
||||||
id: restart_httpd
|
id: restart_httpd
|
||||||
icon: restart
|
icon: restart
|
||||||
timeout: 1
|
timeout: 1
|
||||||
shell: ssh root@server1 'service httpd restart'
|
shell: ssh root@server1 'service httpd restart'
|
||||||
|
|
||||||
|
# Lots of people use OliveTin to build web interfaces for their electronics
|
||||||
|
# projects. It's best to install OliveTin as a native package (eg, .deb), and
|
||||||
|
# then you can use either a python script or the `gpio` command.
|
||||||
|
- title: Toggle GPIO light
|
||||||
|
shell: gpioset gpiochip1 9=1
|
||||||
|
icon: light
|
||||||
|
|
||||||
# There are several built-in shortcuts for the `icon` option, but you
|
# There are several built-in shortcuts for the `icon` option, but you
|
||||||
# can also just specify any HTML, this includes any unicode character,
|
# can also just specify any HTML, this includes any unicode character,
|
||||||
# or a <img = "..." /> link to a custom icon.
|
# or a <img = "..." /> link to a custom icon.
|
||||||
|
|
|
||||||
|
|
@ -6,13 +6,14 @@ var emojis = map[string]string{
|
||||||
"smile": "😀",
|
"smile": "😀",
|
||||||
"ping": "📡",
|
"ping": "📡",
|
||||||
"backup": "💾",
|
"backup": "💾",
|
||||||
"reboot": "⏻",
|
"reboot": "🔄",
|
||||||
"restart": "⏻",
|
"restart": "🔄",
|
||||||
"box": "📦",
|
"box": "📦",
|
||||||
"ashtonished": "😲",
|
"ashtonished": "😲",
|
||||||
"clock": "🕒",
|
"clock": "🕒",
|
||||||
"disk": "💽",
|
"disk": "💽",
|
||||||
"logs": "🔍",
|
"logs": "🔍",
|
||||||
|
"light": "💡",
|
||||||
}
|
}
|
||||||
|
|
||||||
func lookupHTMLIcon(keyToLookup string) string {
|
func lookupHTMLIcon(keyToLookup string) string {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue