Update README.md

This commit is contained in:
frennkie 2020-05-30 17:57:29 +02:00 committed by GitHub
parent 46cfdb26c3
commit ee1b5b8ace
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,8 +38,8 @@ pip install BlitzPy
from blitzpy import RaspiBlitzConfig from blitzpy import RaspiBlitzConfig
cfg = RaspiBlitzConfig() cfg = RaspiBlitzConfig()
cfg.reload() cfg.reload()
print(cfg.hostname) print(cfg.hostname.value)
if cfg.run_behind_tor: if cfg.run_behind_tor.value:
print("using TOR!") print("using TOR!")
``` ```
@ -51,9 +51,9 @@ In order to change the content of a setting the `value` attribute needs to be up
from blitzpy import RaspiBlitzConfig from blitzpy import RaspiBlitzConfig
cfg = RaspiBlitzConfig() cfg = RaspiBlitzConfig()
cfg.reload() cfg.reload()
print(cfg.hostname) print(cfg.hostname.value)
cfg.hostname.value = "New-Hostname!" cfg.hostname.value = "New-Hostname!"
print(cfg.hostname) print(cfg.hostname.value)
``` ```
### Exporting ### Exporting