Skip to content

Commit

Permalink
Merge pull request #21 from w0rmr1d3r/update-docs
Browse files Browse the repository at this point in the history
update install and usage docs
  • Loading branch information
w0rmr1d3r committed May 1, 2024
2 parents 7406625 + d676594 commit 6f9e3d6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ how [here](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webh
After that, proceed to install the package in your raspberry:

```bash
pip3 install raspimonitor
pip install raspimonitor
```

## Usage
Expand All @@ -19,9 +19,9 @@ pip3 install raspimonitor
```bash
# raspimonitor YOURHOOKHERE THRESHOLD_TEMP_IN_CELSIUS
# Example
raspimonitor http://your.web.hook.here 45
python -m raspimonitor http://your.web.hook.here 45
# Example temp as float:
raspimonitor http://your.web.hook.here 45.6
python -m raspimonitor http://your.web.hook.here 45.6
```

### As a cron job
Expand All @@ -33,9 +33,9 @@ Add your cron job as a script from above:
crontab -e
# 2. Add a cron
# Example - run every minute:
* * * * * raspimonitor http://your.web.hook.here 45
* * * * * python -m raspimonitor http://your.web.hook.here 45
# Example - run every 5 minutes
*/5 * * * * raspimonitor http://your.web.hook.here 45
*/5 * * * * python -m raspimonitor http://your.web.hook.here 45
# 3. Reload cron service
sudo service cron reload
```
Expand Down

0 comments on commit 6f9e3d6

Please sign in to comment.