Giter Site home page Giter Site logo

gneelight's Introduction

Gneelight

A Yeelight controller for GNOME

Written in Python and GTK+ 3 using the Yeelight Python library.

Installation

Install using Flatpak (recommended)

The simplest way to install Gneelight is by using the provided Flatpak package:

wget https://github.com/vinsce/gneelight/releases/latest/download/gneelight.flatpak -O gneelight.flatpak
flatpak install --user gneelight.flatpak

Troubleshooting

If you receive the following error The application me.vinsce.Gneelight/x86_64/master requires the runtime org.gnome.Platform/x86_64/42 which was not found while installing, make sure you have the Flathub repository and the Gnome runtime installed:

flatpak --user remote-add --if-not-exists --from flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak --user install flathub org.gnome.Platform//42

Run from source (advanced)

If you want to run directly from the source code, first make sure you have the following dependencies installed:

  • AppIndicator3 Library
  • Python packages listed in the requirements file

In Ubuntu, you can install the dependencies using:

sudo apt-get install gir1.2-appindicator3-0.1
pip install -r requirements.txt

then clone this repository and start using Gneelignt:

git clone https://github.com/vinsce/gneelight.git
cd gneelight
sudo cp res/me.vinsce.Gneelight.gschema.xml /usr/share/glib-2.0/schemas/
sudo glib-compile-schemas /usr/share/glib-2.0/schemas/

python3 src/GneelightApp.py

Screenshot

screenshot

Note: feel free to contribute to the project and suggest new features.

License

This project is licensed under the GNU GPL v3 License - see the LICENSE file for details

gneelight's People

Contributors

vinsce avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mohagames205

gneelight's Issues

cant connect to my mi bedside lamp

When I change my workround to kde - I cant connect anymore to my bedside lamp. App is running in first case, but dont see lamp (lan control is enabled)

/usr/bin/flatpak run --branch=master --arch=x86_64 --command=runner.sh --devel -v me.vinsce.Gneelight
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /home/user216/.local/share/flatpak
F: Opening user flatpak installation at path /home/user216/.local/share/flatpak
F: Opening user flatpak installation at path /home/user216/.local/share/flatpak
F: Opening system flatpak installation at path /var/lib/flatpak
F: Cleaning up unused container id 329591372
F: Allocated instance id 2007594071
F: Add defaults in dir /me/vinsce/Gneelight/
F: Add locks in dir /me/vinsce/Gneelight/
F: Disallowing ipc access
F: Allowing wayland access
F: Allowing x11 access
F: Running 'bwrap --args 36 xdg-dbus-proxy --args=38'
F: Running 'bwrap --args 36 runner.sh'

python3 src/GneelightApp.py
Traceback (most recent call last):
  File "src/GneelightApp.py", line 7, in <module>
    from MainWindow import MainWindow
  File "/home/user216/gneelight/src/MainWindow.py", line 37
    self.bulb_wrapper: BulbWrapper = None
                     ^
SyntaxError: invalid syntax

Menu buttons not working

Another small issue that I've come across, when I click on the about screen clicking the button that says "close" does nothing and I have to click the X in the top right corner. As a small suggestion, maybe integrate the menu for the settings into the icon on the right instead of having 2 menus that more or less do the same.

Can't run code from source

Hey I downloaded the source but every time I try to run the app that way, it gives me the following error.

~/Programming/gneelight-master$ python3 src/GneelightApp.py
Traceback (most recent call last):
File "/home/robbie/Programming/gneelight-master/src/GneelightApp.py", line 7, in
from MainWindow import MainWindow
File "/home/robbie/Programming/gneelight-master/src/MainWindow.py", line 7, in
gi.require_version('AppIndicator3', '0.1')
File "/usr/lib/python3/dist-packages/gi/init.py", line 126, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace AppIndicator3 not available

Unable to detect my lights

Now that I have the app running (thanks). I am unable to detect my lights. I know you have said that you have only tested it with the white bulb. I do have LAN control set up already because I can control them using Home Assistant. I have no idea what else to try for getting them detected.

Can't install

Hey I am unable to install the app with flatpak. It gives me the following error:

flatpak install --user gneelight.flatpak error: The application me.vinsce.Gneelight/x86_64/master requires the runtime org.gnome.Platform/x86_64/master which was not found

run / install not possible on Debian Sid

Hi there,

I would test your software, but I can get it to work.
run

sysiphus ~/source/gneelight [master|✚ 1 …3] $ python3 src/GneelightApp.py

(Gneelight:5490): GLib-GIO-ERROR **: 18:02:09.637: Settings schema 'me.vinsce.gneelight' is not installed
Trace/Breakpoint ausgelöst

flatpack

sysiphus:~/source/downloads$ flatpak install --user gneelight.flatpak

Note that the directories

'/var/lib/flatpak/exports/share'
'/home/mdomann/.local/share/flatpak/exports/share'

are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

Fehler: The application me.vinsce.Gneelight/x86_64/master requires the runtime org.gnome.Platform/x86_64/master which was not found

I would run it without flatpack, just from source. Can you give me some advice how to use it?

Thanks Micha

can't install flatpak package on Ubuntu 20.10

flatpak install --user gneelight.flatpak

Note that the directories 

'/var/lib/flatpak/exports/share'
'/home/XXXX/.local/share/flatpak/exports/share'

are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

error: The application me.vinsce.Gneelight/x86_64/master requires the runtime org.gnome.Platform/x86_64/3.38 which was not found

error when running

i'm new to linux and never coded in python,

since I could not find a way to use the flatpack on ubuntu 20.04. I tried downloading the src and running the py file. however I get this error

python3 GneelightApp.py Traceback (most recent call last): File "GneelightApp.py", line 7, in <module> from MainWindow import MainWindow File "/home/raiton/Documents/software/gneelight-master/src/MainWindow.py", line 7, in <module> gi.require_version('AppIndicator3', '0.1') File "/usr/lib/python3/dist-packages/gi/__init__.py", line 129, in require_version raise ValueError('Namespace %s not available' % namespace) ValueError: Namespace AppIndicator3 not available raiton@raitons-laptop:~/Documents/software/gneeligh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.