mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-03-27 02:01:53 +01:00
Update README.md
This commit is contained in:
parent
46cfdb26c3
commit
ee1b5b8ace
@ -38,8 +38,8 @@ pip install BlitzPy
|
||||
from blitzpy import RaspiBlitzConfig
|
||||
cfg = RaspiBlitzConfig()
|
||||
cfg.reload()
|
||||
print(cfg.hostname)
|
||||
if cfg.run_behind_tor:
|
||||
print(cfg.hostname.value)
|
||||
if cfg.run_behind_tor.value:
|
||||
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
|
||||
cfg = RaspiBlitzConfig()
|
||||
cfg.reload()
|
||||
print(cfg.hostname)
|
||||
print(cfg.hostname.value)
|
||||
cfg.hostname.value = "New-Hostname!"
|
||||
print(cfg.hostname)
|
||||
print(cfg.hostname.value)
|
||||
```
|
||||
|
||||
### Exporting
|
||||
|
Loading…
x
Reference in New Issue
Block a user