Minor tidying.
This commit is contained in:
@@ -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),
|
be a nice, tidy RESTful API. That would be easy enough to make. And b),
|
||||||
it's a vacuum.
|
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
|
## Usage
|
||||||
|
|
||||||
To get started, you'll need to have already set up an EcoVacs account
|
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,
|
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:
|
a frequency you give it. My crontab entry looks like this:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -221,9 +221,9 @@ class VacBotCommand():
|
|||||||
time.sleep(self.wait)
|
time.sleep(self.wait)
|
||||||
|
|
||||||
def to_xml(self):
|
def to_xml(self):
|
||||||
clean = ET.Element(self.name, self.args)
|
|
||||||
ctl = ET.Element('ctl', {'td': self.name.capitalize()})
|
ctl = ET.Element('ctl', {'td': self.name.capitalize()})
|
||||||
ctl.append(clean)
|
inner = ET.Element(self.name, self.args)
|
||||||
|
ctl.append(inner)
|
||||||
return ctl
|
return ctl
|
||||||
|
|
||||||
def __str__(self, *args, **kwargs):
|
def __str__(self, *args, **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user