Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on May 28, 2024. It is now read-only.

google/python-temescal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

12 Commits

Python control for LG speaker systems

A simple Python API for controlling speakers from LG that can otherwise be controlled via the LG wifi speaker app.

Example use

Device discovery is out of scope of this project. Use an mdns module such as netdisco to locate devices on your network.

Connect to a speaker at 192.168.1.15

import temescal
speaker = temescal.temescal("192.168.1.15")

Connect with a registered callback:

import temescal
speaker = temescal.temescal("192.168.1.15", callback=speaker_callback)

The callback will be called whenever Temescal receives a packet from the speaker. This may be a response to a sent command or a gratuitous status update triggered by another control event.

Get the current equaliser state:

import temescal
speaker = temescal.temescal("192.168.1.15", callback=speaker_callback)
speaker.get_eq()

The callback routine will be called with the response.

Set the volume to 20:

import temescal
speaker = temescal.temescal("192.168.1.15", callback=speaker_callback)
speaker.set_volume(20)

This is not an officially supported Google project.

About

Python control for LG speaker systems

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

Languages

AltStyle によって変換されたページ (->オリジナル) /