Skip to content

guzhaoyuan/whereisZion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

whereisZion

This is a web application using flask and mqtt to show the position of Zion.

Find Zion's position in whereis.guzhaoyuan.com.

how it works

  • server host website indicating position of Zion
  • server check domain of iPhone in CMU to find Zion in school, send mqtt message to notify server itself
  • router at home LAN check domain of iPhone at Home to find Zion at home, send mqtt message to notify server
  • server run mqtt to receive position info from router and server itself, update web

files

  • home.sh, run by router, check if my devices are at home, send info to server
  • atSchool.py, run by server, check if my devices are at school, send info to server
  • domain.py, contain domain name of my devices
  • whereisZion.py, run by server, host web, receive mqtt message and change web content.

TODO

  • everything
  • root router with openWRT
  • write into database and use as reference
  • encrypt mosquitto connection ssl
  • ban mosquitto msg from other ip
  • reverse error check of position detector if server not receive position report for a long time
  • use invisible ink to debug

Useful link

Deploy Steps

DO tutorial for secure mqtt