GithubHelp home page GithubHelp logo

sfedotoff / miwifiradio Goto Github PK

View Code? Open in Web Editor NEW
29.0 29.0 28.0 640 KB

Wrapper on Xiaomi Mi WiFi Online radio to add functionality for adding own radio stations. Remember to read the instructions first.

PHP 44.38% ApacheConf 0.01% CSS 12.51% JavaScript 41.65% HTML 1.46%

miwifiradio's People

Contributors

ashdkv 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

Watchers

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

miwifiradio's Issues

Docker version not working, need update...

After started docker version, application work, can add radios... all fine, but now how i see changed request links...
example : /live/get_radios_by_ids?access_token=5xxxdf71796bbed9c5b9634fdef46ae&app_key=6b44556xxxxbf8fbbd46c1a9a3&client_os_type=4&device_id=xxxf&ids=2080&nonce=6cv2e3xvmcmdswbhyv
aph3kn32aamus4&pack_id=com.xiaomi.gateway&sdk_version=v6.1.0&server_api_version=1.0.0&sig=xxxx

need make changes in nginx configuration and index.php. nginx like this:

location /openapi-gateway-app/live/radios {
    try_files $uri $uri/ /index.php;
}
location /openapi-gateway-app/search/radios {
    try_files $uri $uri/ /index.php;
}
location /openapi-gateway-app/live/get_radios_by_ids {
    try_files $uri $uri/ /index.php;
}

location /live/radios {
    try_files $uri $uri/ /index.php;
}
location /search/radios {
    try_files $uri $uri/ /index.php;
}
location /live/get_radios_by_ids {
    try_files $uri $uri/ /index.php;
}

also change index.php:

// Index
header("Location: admin.php");

}elseif($requestParams['requestPath'] == '/openapi-gateway-app/live/radios') {
// Radio search request
include($global_path . 'include/api/radiosearch.php');
} elseif($requestParams['requestPath'] == '/openapi-gateway-app/search/radios') {
// Radio search request
include($global_path . 'include/api/radiosearch.php');
}
elseif($requestParams['requestPath'] == '/openapi-gateway-app/live/get_radios_by_ids') {
// Radio list by ids
include($global_path . 'include/api/get_radios_by_ids.php');

}elseif($requestParams['requestPath'] == '/live/radios') {
// Radio search request
include($global_path . 'include/api/radiosearch.php');
} elseif($requestParams['requestPath'] == '/search/radios') {
// Radio search request
include($global_path . 'include/api/radiosearch.php');
}
elseif($requestParams['requestPath'] == '/live/get_radios_by_ids') {
// Radio list by ids
include($global_path . 'include/api/get_radios_by_ids.php');

after this update now working...

Cannot add Radios

Hi,

I've installed successfully all the wrapper, but when I'm going to add Radio, it tells me that "Radio was added" but there is nothing in the list :(

in the NGINX logs there are no errors.. any hints?

Also the git repository is missing "composer.json" that you have put on the MiForum

Thanks!

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.