tereius / noxon-server Goto Github PK
View Code? Open in Web Editor NEW๐ป A simple server getting legacy iRadio devices up and running again
๐ป A simple server getting legacy iRadio devices up and running again
Hi, I was very happy to find a way to use my iRadio 300 again with your project. Unfortunately I can't get it to work.
Tried it with the Windows binary for a first quick and dirty test, but my config.toml does not work. For example I always get this error message:
Config file could not be parsed properlyerrorsome fields could not be decodedfields[dns.domains]
I tried many different styles for the domain array, but nothing worked: single quotes, double quotes, comma, semicolons, ... Double quotes and comma should work (https://github.com/BurntSushi/toml), but they do not.
Then I tried docker. Did not work either. I have to say that I operate my own DNS resolver (as a Docker container), so I did set the env variable DNS_ENABLED to false. Of course I made entries for noxonserver and vtuner in my resolver. I did reset my iRadio 300 to factory settings. Then I restartet it und tried "Internetradio". It loads and loads end never comes to an end. I checked what it is doing with wireshark, and this is the result:
So the iRadio requests the loginXML.asp, and the answer is always 301 (Location: https://legacy.noxonserver.eu/setupapp/fs/asp/BrowseXML/loginXML.asp?token=0).
Any idea what happens here?
Another question: How can I get to the status.html? With Windows I tried localhost and 127.0.0.1 as well as / and /status.html. Result is always 404. In Linux I created a FQDN in my reverse proxy, but the result is also always 404 ...
Help would be very much appreciated. Thanks!
Hi i dont know a lot programming and i dont how to se up this if you have time can you make a guide how to set up this and make it work step by step . thank you !
I am running Docker in WSL Ubuntu on Windows, but iRadio300 only shows 'connecting...' can you help?
my config.yaml:
dns.enabled = true
dns.hostIp = "172.31.93.37"
dns.domains = ['noxonserver.eu', 'vtuner.com']
dns.ntpHost = "de.pool.ntp.org"
endpoints.login = ["/setupapp/fs/asp/BrowseXML/loginXML.asp", "/setupapp/radio567/asp/BrowseXPA/LoginXML.asp"]
endpoints.search = ["/setupapp/fs/asp/BrowseXML/Search.asp"]
endpoints.getPreset = ["/Favorites/GetPreset.aspx"]
endpoints.addPreset = ["/Favorites/AddPreset.aspx"]
whitelist = ['*']
blacklist = []
my docker-compose.yaml:
version: "3"
services:
noxon-server:
image: noxon-server
container_name: noxon-server
build:
context: ../
dockerfile: ./docker/Dockerfile
ports:
- 80:80/tcp
- 53:53/udp
environment:
- DNS_ENABLED=true
- DNS_HOST_IP=${HOST_IP}
volumes:
- ./stations.json:/noxon/stations.json
- ./presets.json:/noxon/presets.json
- ./config.toml:/noxon/config.toml
the terminal
sudo HOST_IP=172.31.93.37 docker-compose -f docker/docker-compose.yaml up
Starting noxon-server ... done
Attaching to noxon-server
noxon-server | time="2024-06-01T17:42:36Z" level=info msg="Starting dns server"
noxon-server | time="2024-06-01T17:42:36Z" level=info msg="Registered ip '172.31.93.37' for domain 'noxonserver.eu'"
noxon-server | time="2024-06-01T17:42:36Z" level=info msg="Registered ip '172.31.93.37' for domain 'vtuner.com'"
noxon-server | time="2024-06-01T17:42:36Z" level=info msg="Registered ntp host 'de.pool.ntp.org' for domain 'wifiradiofrontier.com'"
noxon-server | time="2024-06-01T17:42:36Z" level=info msg="Starting noxon server"
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) to the noxon-server raspberry binary downloaded from this project.
The iRadio web requests are visible on the raspberry console. Although a stations.json file is present In the same directory as the binary, the console indicates it's returning a statusCode=404. Below is a copy from the console . . .
pi@raspberrypi:~/noxon$ sudo GIN_MODE=release ./noxon-server
INFO[0000] Starting dns server
INFO[0000] Registered ip '192.168.7.250' for domain 'noxonserver.eu'
INFO[0000] Registered ntp host 'time.apple.com' for domain 'wifiradiofrontier.com'
INFO[0000] Starting noxon server
WARN[0005] 192.168.7.97 - raspberrypi [30/Jan/2024:15:31:32 -0700] "GET /setupapp/radio567/asp/BrowseXPA/LoginXML.asp" 404 0 "" "Mozilla/4.0 (compatible)" (1ms) clientIP=192.168.7.97 dataLength=0 hostname=raspberrypi latency=1 method=GET path=/setupapp/radio567/asp/BrowseXPA/LoginXML.asp referer= statusCode=404 userAgent="Mozilla/4.0 (compatible)"
Initially I suspected the issue was related to the domain name, then a configuration issue, but after further investigation it appears the iRadio is requesting a different URL that those in the noxon.go code.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.