Giter Site home page Giter Site logo

xonox's People

Contributors

lmigula avatar x789 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

lmigula kaykouo

xonox's Issues

Order Station List Alphabetically

Using my iRadio, I want to easily navigate through the list of available stations. Therefore the stations should be ordered alphabetically and not in the order they were added to xonox.

how to config local DNS?

how to config the local DNS to make the NOXON iRadio 300 recognize the legacy.noxonserver.eu etc?

we can change the local DNS for the windows or linux system, but the NOXON will not know unless we setup a local DNS server? can we directly config it in the docerfile to make the DNS server automatic starting?

Configure Your Environment
The NOXON(tm) devices locate their services via DNS. To allow them to find the alternative service, you need to configure your local DNS so that the following names point to the host that runs xonox.

legacy.noxonserver.eu
gate1.noxonserver.eu

xonox 0.0.7.2 does not start when installed after 2023-04-25

When xonox is installed in a clean environment after the 25th of April 2023, Flask and Werkzeug >=2.3 are installed automatically. However, xonox is incompatible with these versions.

A possible workaround is to downgrade Flask and Werkzeug.

pip install --force-reinstall "Flask==2.2.5"
pip install --force-reinstall "Werkzeug==2.2.3"

I will work on an updated version that fixes this issue.

(See the discussion of issue #13 and Flask's changelog for v2.3.0 for more details.)

Management API does not return JSON

I'm already trying to create a Web-Frontend.
When getting the Data through the API the stations are interpreted as string and need to be converted to JSON.

And the attribute stationUrl isn't consistent. When using a GET Request the stationUrl is returned stream but is expected as streamUrl when creating a new station with a POST request.

Fehlermeldung bei pip

Hallo,
ich habe Python 3.8.0 auf dem Raspi und bekomme u.a. Meldung bei pip install xonox. Any ideas?

pi@raspberry:~ $ python -V
Python 3.8.0
pi@raspberry:~ $ pip install xonox
Collecting xonox
Could not find a version that satisfies the requirement xonox (from versions: )
No matching distribution found for xonox

Add Support for Favorite/Preset-Buttons

Hallo x789,
zunächst einmal möchte ich mich vielmals bei dir für deine unglaublich gute Lösung namens Xonox bedanken, die meinem Noxon ein zweites Leben ermöglicht hat! DANKE! Um das Noxon gänzlich wie vorher nutzen zu können, möchte ich freundlich folgendes Feature für Xonox anfragen: Gäbe es vielleicht eine Möglichkeit, dass Xonox auch die Presets der Noxon-Radios abbilden kann?
Wenn ich die Preset-Tasten (1-5) auf der Fernbedienung nutzen möchte, werden im Xonox werden folgende 404-Fehler angezeigt und das Radio bootet neu, da die für die Abfrage bzw. Einrichtung serverseitigen Strukturen fehlen.
Öffnen des Preset1-Senders (kurzes Drücken der Taste auf der FB):
GET /Favorites/GetPreset.aspx?mac=xxxx&dlang=ger&fver=79&hw=10143&id=1&itemid=...
Speichern eines Senders als Preset1 (längeres Drücken der Taste auf der FB):
GET /Favorites/AddPreset.aspx?mac=xxxx&dlang=ger&fver=79&hw=10143&id=1&itemid=...
Inwiefern das Speichern der Presets über Curl im Xonox (analog der Sender) einfacher und für dich besser zu realisieren wäre, kann ich nicht beurteilen. Ebenso kann ich den Aufwand dafür absolut nicht einschätzen oder beurteilen, ob Zeit und Nutzen hierfür in einem ausgewogenen Verhältnis stehen. Sofern das Feature realisierbar wäre, würde mich dessen Implementierung sehr freuen, bis dahin erfreue ich mit dem dank Xonox geretteten Noxon-Internetradio. Beste Grüße und vielen, vielen Dank für deine geleistet Arbeit!!!

Verbindung fehlgeschlagen

Hi,

evtl. kann mir ja jemand helfen.

Ich hab ein iRadio 300 und würde das hier gerne zum laufen bekommen.

Was ich getan habe:

xonox server gestartet - OK
DNS Einträge umgebogen -OK
Aufrufe getestet (via DNS) - OK

Das Ding läuft also soweit.

Mein Problem ist jetzt aber, dass das Radio offensichtlich garnicht erst soweit kommt. Nach "klick" auf "Internet Radio" im Hauptmenü, versucht er sich ne Zeit lang zu verbinden, irgendwann kommt dann Netzwerkfehler.

Habe auch schon an der Fritzbox den Datenverkehr mitgetracked und mit Wireshark analysiert, aber zu dem Punkt, an dem er mal die entsprechenden Requests an den Server schicken würde, kommt er erst garnicht.

Der schickt irgendwelche TCP requests an die 0.0.0.0, die timen dann aus, ein paar Retries, und irgendwann kommt die Meldung und es passiert gar nichts mehr.

Hat evtl. irgendjemand einen Tip, was da evtl. falsch ist?

Support for Noxon 2 Audio?

After blowing off the dust of an old Noxon 2 Audio, I found out the hardcoded domainnames no longer work, Google pointed me to this project.

Unfortunately, judging by https://pypi.org/project/xonox/ , it only supports devices using legacy.noxonserver.eu and gate1.noxonserver.eu?

Mine seems to depend on radio567.vtuner.com, radio5672.vtuner.com and a couple of subdomains of my-noxon.net.

Now since those seem to be documented ( https://cweiske.de/noxon-api.htm ), any change of adding support for the Noxon 2 Audio as well? Maybe this product works similar to the iRadio's :)

Station IDs are not unique

Station-IDs are not unique but they should. This may cause a station other than the expected one to be played.

How to reproduce

  1. Add three individual stations
  2. Delete station with ID 1
  3. Add a new station
    4.Retrieve the station list. The last added station has ID 2. In total, the stations have the IDs 0, 2 and 2.

Expected behavior
Station IDs are unique and not reused.

Problems with xonox 1.0.1 in Ubuntu 22.04.4 LTS (Jammy Jellyfish)

Hello TillW,
before I explain my problem, it is very important for me to thank you for the great program "xonox" that has saved my five Noxon devices from being thrown away for the last two years and makes me very happy. :-)
I'm running xonox in a VM with Ubuntu 18.04 LTS (Bionic Beaver) and the program version v0.0.7.2 nearly since two years. Everything runs without any problems (except some preset-buttons, but that can be neglected).
Unfortunately, the support for my Ubuntu version has expired, so that I have to deal with a change to the current LTS version (Ubuntu 22.04.4 LTS, Jammy Jellyfish).
Regardless of whether I upgrade the existing installation or do a completely clean installation of Ubuntu with a new installation of xonox 1.0.1 (dependencies successfully installed: Jinja2-3.1.3, MarkupSafe-2.1.5, Werkzeug-3.0.1, blinker-1.7.0, click-8.1.7, flask-3.0.2, itsdangerous-2.1.2) the started program reports the following error messages after the call by the devices:

---------------------
ERROR ln app: Exception on /setupapp/fs/asp/BrowseXML/Search.asp [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 1463, in wsgi_app
response = self.full_dispatch_request ()
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 872, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 870, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 855, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type : ignore[no-any-return]
File "/usr/local/lib/python3.10/dist-packages/xonox/server.py", line 103, in search_station
station = stationRepository.get(requestedStationId)
File "/usr/local/lib/python3.10/dist-packages/xonox/station_repository.py", line 26, in get
raise KeyError()
KeyError
---------------------

In a new installation of xonox it seems to me that there won't be created a new config file (xonox.conf) automatically.
Unfortunately, I cannot interpret the error messages. Is it a program error or a problem on my part?

I am aware that you manage the maintenance of the program in your very limited free time and I don't want to burden you with too many questions. But perhaps this problem is also relevant for other users and also solves their problem.

Of course, I don't expect an immediate solution, but I would be happy if you could check the problem at the next opportunity with some time. Thank you very much in advance and best wishes for Easter. Thank you very much for your commitment.

Best wishes and regards
SaschaRei

Support for Noxon iRadio

My iRadio is running Firmware-Version 3.8.36.6923, Bootloader-Version 6834 (available here http://ultron.info/NOXON/NOXON_iRadio/Update/Beta/).

The iRadio DNS queries radio567.vtuner.com, radio5672.vtuner.com, www.terratec.com and www.my-noxon.com - there are NO DNS queries to noxonserver.eu. These domains are being redirected (via PiHole).

Using another tool I was able to monitor the iRadio web requests. Initially I suspected the issue was related to the domain name or a configuration issue, but after further investigation it appears the iRadio is requesting a different URL that the one in your code.

Here are the 3 online queries and the URL's

Internet Radio = /setupapp/radio567/asp/BrowseXPA/LoginXML.asp
Podcasts = /setupapp/radio567/asp/BrowseXPA/loginXML.asp
My Noxon = /RadioNativeLogin.php

For reference the image linked below is the iRadio model being used.

https://www.noxon.ch/wp-content/uploads/2017/10/noxon-iradio-300x215.jpg

Finally: I've run strings on the 4 most recent firmware versions from http://ultron.info/NOXON/NOXON_iRadio/Update/ and the two firmware versions available at https://www.noxon.ch/support/downloads/ (under iRadio) - they all contain the previous listed 4 domains and none contain any noxonserver.eu domains.

Originally posted by @Hack5190 in #13 (comment)

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.