Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
duracell80 authored Jun 12, 2023
1 parent fdf181c commit 0f04d90
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,27 @@ import oceaneyes as oe
def main():
settings, stations = oe.init("192.168.1.200")
ip = settings["ipaddress"]
#oe.volume("down")
#oe.volume("up")
#oe.volume("mute")
#oe.volume("unmute")
#oe.play(<fav id (int)>)
#oe.play(1)
print(oe.status())
if __name__ == "__main__":
main()
```
### Example of bulk import from *.pls
```
oe.add_import("./import.pls", False)
[i] Importing station presets from ./import.pls
[+] 1 of 3.0 ...
[+] 2 of 3.0 ...
[+] 3 of 3.0 ...
200,OpenFM - EDM Anthems,http://stream.open.fm/361
200,OpenFM - Trance,http://stream.open.fm/7
200,OpenFM - House,http://stream.open.fm/5
```

### Run in terminal

```
Expand Down

0 comments on commit 0f04d90

Please sign in to comment.