I'm struggling with passing a list from a python file to my bottle server. I have split them up into functions so that when you call it they should be printed.
This what I have so far:
from bottle import route, run, template, request
import sys
sys.path.append("../python")
from connectedDevices import *
@route('/list')
def print_list():
# Functions taken from connectedDevices
get_ip()
get_mac()
return template('Forum ID: {{get_ip()}})'), get_ip()=forum_id)
run(host='localhost', port=8080)