def get_node_description(node):
    description = "<strong>Sample Resource: " + node.name + "</strong><br/><br/>"
    description += "&#149; Temperature: %s (&#176;%s)" % (str(node.get_temperature()), str(node.get_temperature_scale()))
    connections = ""
    node_connections = node.get_connections()
    for i, connection in enumerate(node_connections):
        connections += connection.name
        if i < len(node_connections)-1:
            connections += ", "
    description += "<br/>&#149; Connected to: %s" % str(connections)
    return description
dataset/ETHPy150Open fp7-ofelia/ocf/expedient/doc/plugins/samples/plugin/sample_resource/controller/GUIdispatcher.py/get_node_description/original