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. https://github.com/mrahbar/my-bloody-hetzner-sb-notifier/tree/v1.0
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.
Find a file
2018-10-26 22:31:39 +02:00
client some clean up 2018-10-25 21:18:45 +02:00
crawler added serve-http option 2018-10-26 22:31:39 +02:00
hetzner added serve-http option 2018-10-26 22:31:39 +02:00
writer added serve-http option 2018-10-26 22:31:39 +02:00
.gitignore finalzed build 2018-10-26 12:34:01 +02:00
build.sh finalzed build 2018-10-26 12:34:01 +02:00
Dockerfile finalzed build 2018-10-26 12:34:01 +02:00
Dockerfile_with_build finalzed build 2018-10-26 12:34:01 +02:00
go.mod added serve-http option 2018-10-26 22:31:39 +02:00
LICENSE Initial commit 2018-10-25 20:17:30 +02:00
main.go added serve-http option 2018-10-26 22:31:39 +02:00
Readme.md added serve-http option 2018-10-26 22:31:39 +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.

For each offer a 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:

Usage of hetzner-sb-notifier:
  -min-cpu-benchmark int
    	set min benchmark
  -max-cpu-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-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
  -serve-http
    	set serve http
  -serve-http-port int
    	set serve http port (default 8080)

Http mode

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

The Go project uses Go Modules and can be easily build with the wrapper script build.sh:

chmod +x build.sh
./build.sh