Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/piotrmaslanka/lucypher
[MATURE] A logging-and-shutting-down daemon for some obscure Orvaldi UPS-es
https://github.com/piotrmaslanka/lucypher
Last synced: 7 days ago
JSON representation
[MATURE] A logging-and-shutting-down daemon for some obscure Orvaldi UPS-es
- Host: GitHub
- URL: https://github.com/piotrmaslanka/lucypher
- Owner: piotrmaslanka
- License: gpl-3.0
- Created: 2011-09-02T12:06:06.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2011-09-05T09:36:23.000Z (about 13 years ago)
- Last Synced: 2023-03-12T09:41:52.172Z (over 1 year ago)
- Language: Python
- Homepage: http://www.orvaldi.pl/Files/File/DB9%20pod%20UPSmart.pdf
- Size: 105 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE.txt
Awesome Lists containing this project
README
Lucypher (c) by Piotr Maślanka 2011
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program. If not, see .1. How do I use it?
First open lucypher.py and configure the settings. They are constants that begin with CONF_
Then you can just call it as a program. Under Linux it will daemonize(making it perfectly
safe to put a call to it in your initialization scripts), under Windows you will have
to play with Python interpreter to get rid of the console window.
2. What platform does it run on?- Windows (note that it probably needs Administrator access to access log files
if you position them in some weird places)
- Linux (run under root)
3. What modules does it require?pySerial
4. What is it?This is a replacement daemon for software Orvaldi ships with some of it's UPS-es, those
that require a perverse RS232 cable.
Because the software they ship for Linux does not work, I have made mine version, so that
I don't have to shell out cash for a new UPS :)5. How do I shut it down the daemon?
It is perfectly safe just to gun it.
6. Can I contact you for more info?Sure.
7. Why root under Linux?It's dead simple and I'm pretty sure it won't be used as an attack vector, although exercise caution to
properly chmod the source file (world readable, owner writable).
Besides, it needs privileges to shutdown -h now