Coder Social home page Coder Social logo

noxon-server's Issues

Can't get it to work

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:
image
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!

How to set up this ?

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 !

it doesn't work for the NOXON iRadio 300

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"

Noxon iRadio Support?

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.

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.