Skip to content

Commit

Permalink
show pid on index
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz authored Jun 25, 2018
1 parent e215abf commit 74032e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ def id_generator(size=6, chars=string.ascii_lowercase + string.digits):

@app.route('/')
def main():
return render_template('index.html', ssids=getssid())
piid = open('pi.id', 'r').read().strip()
return render_template('index.html', ssids=getssid(), message="Once connected you'll find IP address @ <a href='https://snaptext.live/{}'>snaptext.live/{}</a>.".format(piid,piid))

# Captive portal when connected with iOS or Android
@app.route('/generate_204')
Expand Down

0 comments on commit 74032e4

Please sign in to comment.