This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Turn off your server when you sleep.

What it does

Give it some IPs, and it will call halt five minutes after the given computers have stopped pinging. Except if we are in the middle of the day or if we are disconnected from the internet (because we don’t want the computer to stop just because the network went off).

Install

The easiest way is to just grab the file marchanddesable.py.

If you want to install it, Marchanddesable is on pypi, so this should do the trick :

pip install marchanddesable

Arch users, you can install marchanddesable from AUR.

Usage

To halt the current machines 5 minutes after both 192.168.0.1 and 192.168.0.2 stop pinging, put this in your crontab. It will also log to the given file and rotate every night:

* * * * *       /usr/bin/marchand 192.168.0.1 192.168.0.2 -f /var/log/marchanddesable.log

If you don’t like cron, and think running daemon or programs in screen are better, you can use

marchand -l 192.168.0.1 192.168.0.2

TODO

These features may or may not be implemented at some point :

  • Play a sound to warn when the machines stopped pinging
  • A way to tell it not to halt the computer tonight without having to disable it
  • A way to change the rules without having to modify the script

If you want any of those, or anything else, give me a shout.

Release History

Release History

0.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
marchanddesable-0.2.tar.gz (4.1 kB) Copy SHA256 Checksum SHA256 Source May 18, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting