This repository has been archived on 2021-09-02. You can view files and clone it, but cannot push or open issues or pull requests.
my-bloody-hetzner-sb-notifier/Readme.md

49 lines
1.7 KiB
Markdown
Raw Normal View History

2018-10-25 21:18:45 +02:00
The aim of my-bloody-hetzner-sb-notifier is a simple CLI to fetch the current Hetzner Serverbörse deals and filter them according to CLI parameters sorted by score.
2018-10-25 20:47:29 +02:00
2018-10-25 21:18:45 +02:00
The score is calculated from the amount of HDD space as well as RAM and CPU-Benchnmark for better comparability.
The CLI interface looks like this:
2018-10-25 20:47:29 +02:00
````
2018-10-25 21:18:45 +02:00
Usage of hetzner-sb-notifier:
2018-10-25 20:47:29 +02:00
-alert-on-score int
set alert on score
-max-benchmark int
set max benchmark (default 20000)
-max-hdd-count int
set max hdd count (default 15)
-max-hdd-size int
set max hdd size (default 6144)
-max-price float
set max price (default 297)
-max-ram int
set max ram (default 256)
-min-benchmark int
set min benchmark
-min-hdd-count int
set min hdd count
-min-hdd-size int
set min hdd size
-min-price float
set min price
-min-ram int
set min ram
2018-10-25 21:18:45 +02:00
````
2018-10-25 20:47:29 +02:00
2018-10-25 21:18:45 +02:00
## Example
./hetzner-sb-notifier --max-price 77 --min-ram 128 --min-hdd-count 2 --min-hdd-size 4096
````
Got 545 offers. Filtered offers: 3
ID| Ram| HDD| CPU| Price| Score| Reduce time|Specials
SB64-935022| 128 GB| 2x 2 TB (4096)| Intel Xeon E5-1650V2 (12518)| 64.00 €| 91.84| 47h 48m|ECC, Ent. HDD, iNIC
SB72-927788| 128 GB| 2x 2 TB (4096)| Intel Xeon E5-1650V3 (13335)| 72.00 €| 86.17| 21h 08m|ECC, Ent. HDD, iNIC
SB73-910394| 128 GB| 3x 2 TB (6144)| Intel Xeon E5-1650V2 (12518)| 73.00 €| 86.13| 03h 04m|ECC, Ent. HDD, iNIC
````
## Build
2018-10-26 12:34:01 +02:00
The Go project uses Go Modules and can be easily build with the wrapper script build.sh:
````
chmod +x build.sh
./build.sh
````