Go2Engle / PoGoMap-GUI

Small GUI for PokemonGo-Map
GNU Affero General Public License v3.0
19 stars 5 forks source link

PokeAlarm, hardcoded host ip #37

Open GlassToeStudio opened 7 years ago

GlassToeStudio commented 7 years ago

Can we not set our own host ip for PokeAlarm? Its currently hardcoded in the Form1.cs as: "runwebhook.py -H 0.0.0.0".

Does the program no longer read from the config? or is there an option (besides building form sources) to input our own host?

V3.2.6

Go2Engle commented 7 years ago

Correct you can not set. I was making this for the simple user that wanted to get it up and running fast. You map be able to use the config. Im not sure what has priority config or command line.

GlassToeStudio commented 7 years ago

Command line has priority I believe. I edited the config with no change.

Future update: Advanced options tab maybe?

Go2Engle commented 7 years ago

I was actually thinking about adding something like this in the future. I have an idea how I can easily add this. hopfully in the next week i will have some time.

GlassToeStudio commented 7 years ago

Well, to get around this i added a line in the runwebhook.py

right before #startupserver i manually set my ip

config['HOST'] = "0.0.0.0"

That's not my ip obviously

#Start up Alarm_Manager
alarm_thread = Alarm_Manager()
alarm_thread.start()
config['HOST'] = "0.0.0.0"    #Your IP in quotes
#Start up Server
log.info("Webhook server running on http://%s:%s" % (config['HOST'], config['PORT']))
server = wsgi.WSGIServer((config['HOST'], config['PORT']), app, log=logging.getLogger('pywsgi'))
server.serve_forever()