GithubHelp home page GithubHelp logo

lewissmallwood / iot-logitech-z906 Goto Github PK

View Code? Open in Web Editor NEW
13.0 1.0 3.0 29.2 MB

Logitech Z906 control over the internet via a HTTP API. ๐Ÿ”Š ๐Ÿ“ฑ

Home Page: https://lewissmallwood.github.io/IoT-Logitech-Z906/

License: MIT License

C++ 82.15% C 17.85%
connected control internet internet-of-things iot logitech wifi

iot-logitech-z906's Introduction

iot-logitech-z906's People

Contributors

3limin4tor avatar lewissmallwood avatar systemofapwne avatar zarpli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

iot-logitech-z906's Issues

Keep getting status disconnected

I installed the software with the arduino editor on a ESP8266 (nodemcu v3) and connected the setup as showed in the docs with a rewirable FEMALE plug layout.

I tried the following but it all gave the same results:

  • I used the pin layout as described in the README with a rewirable female connector
  • I attached the wires directly attached to the subwoofer
  • Started with the http://nodemcu/power/on
  • Switched the RX and TX connection just to be sure.
  • Attached the 3 ground pins to all the 3 ground pins on the nodemcu (docs said it should not matter because ground is all connected as one.)

The nodemcu starts up and is reachable via HTTP with all tries and I keep getting: {"status": "disconnected"} on every HTTP GET call i try and i am running a bit out of idea's. I would hope you could point me in the right direction on how to debug this further.

decode and effects based on sound source

Hello again. I was wondering if it would be possible to make this emulator behave as the original controller: based on the type of the source sound to turn on automatically the decode option and disable the effects. To my Knowledge, if the input sound(digital) is detected as being DTS or Dolby Digital, the decode will kick in automatically, thus disabling the effects. Is this possible to replicate? At this moment i have to turn decode off and effects off, in order to have a proper sound. I am using one of the optical inputs mainly.

Z906.cpp compile error

Hello,
i was trying to compile your project onto a D1 mini(ESP 8266) but i get an error and I do not have the propper knowledge to interpret it:
"
int Z906::cmd(uint8_t cmd_a, uint8_t cmd_b) {
// Update the internal status buffer with the current device status
update();

// Normalize volume to the range 0...255 if applicable
if (cmd_a == MAIN_LEVEL || cmd_a == REAR_LEVEL || cmd_a == CENTER_LEVEL || cmd_a == SUB_LEVEL) {
    cmd_b = static_cast<uint8_t>((static_cast<uint16_t>(cmd_b) * MAX_VOL) / 255);
}

// Update the specified parameter in the internal status buffer
status[cmd_a] = cmd_b;

// Update the checksum in the status buffer
status[STATUS_CHECKSUM] = LRC(status, status_len);

// Send the updated status buffer to the Z906 device
write(status, status_len);

// Discard the acknowledgment (ACK) message to maintain a clean serial buffer
flush();

}
"
it sais that is should have a return or void somwhere . i added a return 0; but i am not sure if it is ok.

Also, i see that the status for power always returns the 0 value. is it because it is defined as GET_STATUS and it should be defined as STATUS_STBY according to the data in the serial command table?

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.