Getting the Guest Code for public Wi-Fi is messy and stressfull? Ok, the agent will do instead of you!
- Go 1.11
- Google App Engine(Standard Environment)
- Clone it.
$ go get github.com/GoodCodingFriends/wi2-guestcode-server
- Create
secret.yaml
including some environment variable specifications:env_variables: WI2_GUESTCODE_SERVER_TO: "dcs@forguest.wi2.ne.jp"
- Deploy it.
$ gcloud deploy app.yaml cron.yaml index.yaml
The agent takes the Guest Code periodically by 10 mins.
The code can be got by hitting /code
entrypoint.
$ curl 'https://projectname.appspot.com/code'
DCS9404XWP
Save your time and enjoy creative one!