[web2py] Need help displaying value from the controller to view

2015-04-10 Thread DXX
Hi all, Im really new to coding and im trying to do a little project for learning purposes. Im controlling some leds attached to a raspberry pi. Currently this is code im using to turn on the GPIO22: *on default.py* def index(): return dict(message='LED Test - Main Menu') def redon():

Re: [web2py] Dumb Question - from a real beginner

2015-04-10 Thread DXX
league but any advice on this will be greatly appreciate it. Thanks On Thursday, April 9, 2015 at 8:42:24 AM UTC-5, Richard wrote: > > In default/index.html view try something like this : > > > {{=T('Name of your button')}} > > > Richard > > On Wed

[web2py] Dumb Question - from a real beginner

2015-04-09 Thread DXX
So im just starting with Python / Web2py i want to do a simple test page to have a button to turn on a led on a RPi... the default.py looks like this import RPi.GPIO as GPIO def index(): return dict(message="this is a test") def btnon(): GPIO.setmode(GPIO.BCM) GPIO.setup(22,