diff --git a/README.md b/README.md index 2639e5f..51f60ae 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,12 @@ my own vacuum. This is not the future I signed up for. There should be a nice, tidy RESTful API. That would be easy enough to make. And b), it's a vacuum. +## Installation + +My belief, so far untested, is that you just check out this code, +do `pipenv install`, and then call the script `sucks`. If you try, +please let me know how it turns out. + ## Usage To get started, you'll need to have already set up an EcoVacs account @@ -68,7 +74,7 @@ To tell it to go plug in: ``` I run mine from my crontab, but I didn't want it to clean every day, -so it also has a mode where it randomly decide to run or not based on +so it also has a mode where it randomly decides to run or not based on a frequency you give it. My crontab entry looks like this: ``` diff --git a/sucks.py b/sucks.py index 05e44ab..3be6ce6 100644 --- a/sucks.py +++ b/sucks.py @@ -221,9 +221,9 @@ class VacBotCommand(): time.sleep(self.wait) def to_xml(self): - clean = ET.Element(self.name, self.args) ctl = ET.Element('ctl', {'td': self.name.capitalize()}) - ctl.append(clean) + inner = ET.Element(self.name, self.args) + ctl.append(inner) return ctl def __str__(self, *args, **kwargs):