when ive looked into this further ive found that mobile phone networks have limited IP's so share them as standard and to obtain a static from my provider, but EE dont sell IP's.
i presume this would effect VNC server also?, i havent had chance to set that up yet but was intending on using.
does anybody know another way i can host the webpage using a mobile phone network?, or how i can configure a static ip over mobile network then force the web.py to that?
at the moment im connecting a pi3 to my mobile hotspot through wifi, but do intend on using a sim card module eventually.
the python script im using is
Code: Select all
import web
urls = (
'/', 'Index'
)
app = web.application(urls, globals())
render = web.template.render('static/')
class Index(object):
def GET(self):
es = "OFF"
return render.index(es=es)
if __name__ == "__main__":
app.run()Code: Select all
$def with (es)
<html>
<head>
<title></title>
</head>
<body>
$if es:
I just wanted to say <em style="color: green; font-size: 2em;">$es</em>.
$else:
<em>Hello</em>, world!
</body>
</html>