- Link to original version: http://tracesof.net/uebersicht-widgets/#sys-mon-set
27 lines
441 B
CoffeeScript
27 lines
441 B
CoffeeScript
command: "curl -s checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'"
|
|
|
|
refreshFrequency: 43200000
|
|
|
|
style: """
|
|
bottom: 135px
|
|
left: 90px
|
|
color: #ccc
|
|
font-family: Helvetica Neue
|
|
|
|
div
|
|
display: block
|
|
text-shadow: 0 0 1px rgba(#000, 0.5)
|
|
font-size: 24px
|
|
font-weight: 100
|
|
|
|
"""
|
|
|
|
|
|
render: -> """
|
|
<div class='ip_address'></div>
|
|
"""
|
|
|
|
update: (output, domEl) ->
|
|
$(domEl).find('.ip_address').html(output)
|
|
|