mirror of
https://github.com/chubin/wttr.in
synced 2025-01-25 18:24:59 +00:00
readme: add Squeak integration
This commit is contained in:
parent
355a515b1f
commit
bc4c73d144
1 changed files with 15 additions and 0 deletions
15
README.md
15
README.md
|
@ -304,6 +304,21 @@ $ cat ~/.config/fontconfig/fonts.conf
|
|||
In some cases, `tmux` and the terminal understanding of some emoji characters may differ, which may
|
||||
cause strange effects similar to that described in #579.
|
||||
|
||||
### Squeak
|
||||
|
||||
To embed into the world main docking bar:
|
||||
|
||||
```smalltalk
|
||||
wttr := (UpdatingStringMorph on: [(WebClient httpGet: 'https://wttr.in/?format=%20%20%l:%20%C+%t') content] selector: #value)
|
||||
stepTime: 60000;
|
||||
useStringFormat;
|
||||
yourself.
|
||||
dockingBar := World mainDockingBars first.
|
||||
dockingBar addMorph: wttr after: (dockingBar findA: ClockMorph).
|
||||
```
|
||||
|
||||
![wttr.in integration in the Squeak world main docking bar](https://github.com/user-attachments/assets/4c2762b0-77ae-41a8-98db-3eb310d073bd)
|
||||
|
||||
## Data-rich output format (v2)
|
||||
|
||||
In the experimental data-rich output format, that is available under the view code `v2`,
|
||||
|
|
Loading…
Reference in a new issue