philsmd / sharpfin

Sharpfin: update, patch, modify the firmware of your internet radio
GNU General Public License v3.0
18 stars 11 forks source link

Reciva Presets work unreliably after editing with Sharpfin #53

Open m-z-b opened 2 years ago

m-z-b commented 2 years ago

Not sure if this is the right place, but...

If you observe the problem that sometimes the preset buttons / remote go to the wrong place, the problem may be how sharpfin updates the presets stored in /root/config/presetXX.xml.

In/mnt/debug/webserver/cgi-bin, the files control_Presets.cgi and Presets_edit.cgi both have a line in them similar to: LINE1="<preset type='PresetType:Internet' id='$PLACE'><station id='3801'> This makes all presets edited through Shapfin have the same station id; the radio then gets confused when changing presets.

If you change this line of code to: LINE1="<preset type='PresetType:Internet' id='$PLACE'><station id='99$PLACE'> Each edited preset will get a unique station id, and after you've edited each preset the preset buttons should work correctly again.

(I'm assuming anyone who reads this knows how to login to their radio and view/edit the relevant files.)

I couldn't find the source files for the webserver: if anybody knows of a more suitable place to post this fix so that it can be found by someone else with the same problem, please PM me.

While you are editing this, you may might want to add an /etc/hosts file which points ntp.reciva.com at your favourite NTP server too.