Git Product home page Git Product logo

pyparrotzik's Introduction

Parrot Zik Applet

Overview

Parrot Zik is one of the most advanced headphones in the market. https://www.parrot.com/en/audio/parrot-zik-3

PyParrot Zik is unofficial tool that show Parrot Zik indicator on Windows and Linux. Thanks to @serathius for Parrot Zik 2.0 support. Thanks to @moimadmax for Parrot Zik 3.0 support.

Windows Usage

https://ci.appveyor.com/api/projects/status/7o0v6hy6fqaeulrr?svg=true Latest build(currently doesn't work): https://ci.appveyor.com/project/m0sia/pyParrotZik/build/artifacts

Outdated version that supports only Zik 1.0: http://goo.gl/dXij2t

Linux Usage

  1. Connect Parrot Zik with standard bluetooth connection
  2. Install the applet
    python setup install
    
  3. Run the applet
    parrot_zik_tray
    

Linux Requirement

Python-bluez is needed. On ubuntu based distro run

sudo apt-get install python-bluez python-appindicator python-beautifulsoup

Mac OS Usage

Based on investigation made for pyParrotZik the excellent Parrot-Status tool was developed specially for Mac OS (https://github.com/vincent-le-normand/Parrot-Status)

pyparrotzik's People

Contributors

esanchezm avatar ivamoto-murillo avatar m0sia avatar mgrishkin avatar moimadmax avatar nicalpi avatar serathius 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

pyparrotzik's Issues

Ubuntu 15.04 : ImportError: No module named appindicator

Hi,

I'm trying your app on U15.04 with a Zic 2.0.

Im getting this :

'Traceback (most recent call last):
File "./ParrotZikTray", line 173, in
indicator = ParrotZikIndicator()
File "./ParrotZikTray", line 45, in init
SysIndicator.init(self,icon = "zik-audio-headset",menu = self.menu)
File "/home/ragnar/Epitech/pyParrotZik-master/SysIndicator.py", line 22, in init
import appindicator
ImportError: No module named appindicator'

Any idea ?

Thanks for the work...

Update README.md

Just add a small line for Ubuntu users.

"Copy share/icons/zik directory to /usr/share/icons/ (you need sudo rights)"

Or something like that

Icons are broken under Ubuntu

Th install script does not install the icons for Linux systems. When i manually copy over the share/ folder to /usr, I get correctly working icons.

app broken on Ubuntu (regression)

Hi,

The app is broken for me since this commit:
commit b349097
Author: Dmitry Moiseev [email protected]
Date: Thu Jan 9 01:17:36 2014 -0800
Native OS X system indicator using PyObjC

The error message is:
./ParrotZikTray
Traceback (most recent call last):
File "./ParrotZikTray", line 9, in
from SysIndicator import *
File "/home/pascalc/applis/pyParrotZik/SysIndicator.py", line 17, in
class StatusApp(NSApplication):
NameError: name 'NSApplication' is not defined

I am on ubuntu 13.10

Pascal

Applet needs beautifulsoup installed to run

Traceback (most recent call last):
  File "./ParrotZikTray", line 7, in <module>
    import ParrotZik
  File "/home/pascalc/repos/github/pyParrotZik/ParrotZik.py", line 11, in <module>
    from BeautifulSoup import BeautifulSoup
ImportError: No module named BeautifulSoup

Package needs to be installed on Ubuntu 14.10:

sudo apt-get install python-beautifulsoup

sudo required to run

First of all, I wanted to say this app is awesome. Being able to use my headphones properly with Ubuntu is something I have wanted ever since I bought my headphones.

Now, I skimmed through the code for a while to figure out why I wasn't working at first until I finally realized I needed to run it with:

sudo ./ParrotZikTray

Is there is a way to make the code run without requiring sudo privileges? Alternatively, do you have an idea of what part of the code requires sudo? If so, do you know of a way that I could change privileges of that required component so that it no longer needs sudo?

Thanks again.

sh: bluez-test-device: command not found

Hi!

I'm current running OpenSUSE (Tumbleweed) with KDE but I am unable to start this nifty little tool. I've installed most packages needed for it to start, including python-pybluez and python-appindicator (from the MATE repository!) but I've finally hit a stop being unable to find which package is missing that would fit the needs to start this program with the message:

sh: bluez-test-device: command not found

I'm not a Python programmer, so any help would be awesome!

How to compile & install ParrotZikTray on windows?

Hi, I just got a parrot zik 3. I saw your project and decided to try it.
I compiled and installed pyParrotZik on windows 10, but installation folder is missing the binary file.
I only see:

  • parrotziktray-0.3.zip
  • unins000.dat
  • unins000.exe

I tried the first time with python 3.5, then with 2.7
Here is what I did with 2.7:

git clone https://github.com/m0sia/pyParrotZik.git
cd .\pyParrotZik\
C:\Python27\python.exe .\setup.py build
C:\Python27\python.exe .\setup.py sdist

I then opened file win32installer.iss with Inno Setup Compiler GUI, went to menu Build and clicked Compile. I obtained an installer setup.exe in folder Output
I ran the installer. It installed with success, then I clicked Finish with the checkbox Launch Parrot Zik Tray checked and got the error

Unable to execute file: C:\Program Files (x86)\ParrotZikTray\ParrotZikTray.exe

CreateProcess failed; code 2.
The system cannot find the file specified.

When I go to the install folder, the file ParrotZikTray.exe indeed does not exist
What did I do wrong? Could you help?

OS X support

Hi,
Nice job here, how did you manage to reverse engineer the firmware?

Anyway, I was able to run the script under OSX 10.9 with some small changes but I stuck on:

Connecting to "Parrot RFcomm service" on 90:03:B7:5E:BE:30
Traceback (most recent call last):
  File "./ParrotZikTrayMac", line 213, in <module>
    if indicator.EstablishConnection():
  File "./ParrotZikTrayMac", line 77, in EstablishConnection
    self.parrot = ParrotZik.ParrotZik(mac)
  File "/Users/bartek/python/pyParrotZik/ParrotZik.py", line 50, in __init__
    self.sock.send('\x00\x03\x00')
  File "/Library/Python/2.7/site-packages/lightblue/_bluetoothsockets.py", line 530, in send
    raise _socket.error(result, "Error sending data")
socket.error: [Errno -536870208] Error sending data

Any ideas on this?

I've seen some OSX support commits, but did you get to have it working under OSX? If so, what are your firmware and lightblue versions?

Cheers,
Bartosz

Problems in Ubuntu 16.10

I have problems running the parrot_zik_tray tool under Ubuntu 16.10. It just does not find my Parrot Zik 2.0. Bluetooth audio output works on the headphones, as well does general input (pause/unpasue, next/previous track, volume changes), it is just that the tray tool does not find the headphones.

Under Ubuntu 16.04, everything works as expected.

I am unsure what info you need in addition to make an educated guess what might be wrong. I'd be willing to try to make changes in the code as well, but I am not on the pythonic side of the force

Zik2

Hi,
I managed to get pyParrotZik working for Parrot Zik2 headset.
I was wondering how did you managedt to get proper querry path. ( like /api/audio/noise_cancellation/enabled/get ) as they are not documented anywhere.
As you may be aware, the zik2 give acces to more options and I was wondering if I could incorporate those options in the pyParrotZik.
I will fork pyParrot in my account and submit my changes for Parrot Zik2.
Cheers,
Antoine

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.