From 0f04d90e7d3999d156c670f941f5f78b5ff087ea Mon Sep 17 00:00:00 2001 From: Lee Jordan Date: Sun, 11 Jun 2023 21:48:44 -0500 Subject: [PATCH] Update README.md --- README.md | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 6148765..318527d 100644 --- a/README.md +++ b/README.md @@ -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() - #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 ```