Giter VIP home page Giter VIP logo

mc-aws-cp's People

Contributors

pw10n avatar

Watchers

 avatar

mc-aws-cp's Issues

Handle duplicate tweet exception.

Exception on /manage/i-c42900cb [POST]
Traceback (most recent call last):
  File "/srv/mc-aws-cp/.env/local/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/srv/mc-aws-cp/.env/local/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/srv/mc-aws-cp/.env/local/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/srv/mc-aws-cp/.env/local/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/srv/mc-aws-cp/.env/local/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/srv/mc-aws-cp/.env/local/lib/python2.7/site-packages/flask_login.py", line 758, in decorated_view
    return func(*args, **kwargs)
  File "/srv/mc-aws-cp/.env/local/lib/python2.7/site-packages/flask_security/decorators.py", line 194, in decorated_view
    return fn(*args, **kwargs)
  File "/srv/mc-aws-cp/minecontrol/views.py", line 72, in manage_instance
    if aws.action(instance, action):
  File "/srv/mc-aws-cp/minecontrol/aws.py", line 96, in action
    tweet_msg("%s has been started. Join now!" % inst_name)
  File "/srv/mc-aws-cp/minecontrol/tweet.py", line 89, in tweet_msg
    api.update_status(m)
  File "/srv/mc-aws-cp/.env/local/lib/python2.7/site-packages/tweepy/binder.py", line 230, in _call
    return method.execute()
  File "/srv/mc-aws-cp/.env/local/lib/python2.7/site-packages/tweepy/binder.py", line 203, in execute
    raise TweepError(error_msg, resp)
TweepError: [{u'message': u'Status is a duplicate.', u'code': 187}]

Show hostname

On manage page, show hostname rather than just ip address.

Tweet server status

Allow server to tweet when it has been started and/or when people are playing.

Scheduled Shutdown

EC2 instances are billed by the hour. If only running for a partial hour, allow shutdown to be scheduled minutes before the hour is up.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.