Skip to Content
It is currently March 7th, 2021, 4:25 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 35 posts ]  Go to page 1, 2, 3  Next
Author Message
PostPosted: June 20th, 2020, 12:32 pm 
Offline
Super User
Super User

Joined: August 18th, 2005, 10:25 am
Posts: 1321
I just installed samHTMLweb. Everything works fine except Requests. I get no pop-up when I click the Request this track now! link. I hold the shift key, in case Chrome is blocking the pop-up. Requested track does not appear in either SAM or Audiorealm.


Top
 Profile  
Reply with quote  
PostPosted: June 20th, 2020, 2:50 pm 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 8156
Location: Cologne (Germany)
Mind sharing your site's URL?
IIRC opening a new window via JavaScript is perfectly fine as long as it's triggered by a user action (here: Clicking the request button)

If it doesn't work, go to _header.html and change requestAudioRealm to requestPrivate, then generate new playlist files, upload them (or wait until SAM is finished uploading) and see if it now tries to open a non-existing request.html file on the very same site with the SAM playlist instead of on audiorealm.com.

Also find out the songID of one of your songs and the IP and port of your SAM machine as configured in _config.html and open http://request.audiorealm.com/req/req.h ... 56.789.001 (replace 12345 with a valid songID for your SAM, 1221 with your SAM port (if needed) and 123.456.789.001 with the correct IP you configured/found.

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

Shop for readymade PAL scripts by countrywesterndj - Or get a custom script made by me (or others)

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
PostPosted: June 20th, 2020, 2:56 pm 
Offline
Super User
Super User

Joined: August 18th, 2005, 10:25 am
Posts: 1321
Your manual override works fine: https://is.gd/uB7owx. I changed to requestPrivate, but try a request here: https://is.gd/r0nfrL, and it still won't work. I tried Chrome, Explorer, Edge, and still nothing.

Any ideas?


Top
 Profile  
Reply with quote  
PostPosted: June 21st, 2020, 6:47 am 
Offline
SVS Member
SVS Member

Joined: May 8th, 2004, 9:00 am
Posts: 10527
Location: Denver, CO
Your _config.html has an internal address for the SAM host value, this won't work you need your external IP address.

_________________
- Rob Oyler, SVS
Image


Top
 Profile  
Reply with quote  
PostPosted: June 21st, 2020, 7:57 am 
Offline
Super User
Super User

Joined: August 18th, 2005, 10:25 am
Posts: 1321
Here's the config file
Code:
<!--VAL(logo,"images/logo.gif")-->
<!--VAL(email,"soukous@africamail.com")-->
<!--VAL(picture_dir,"pictures/")-->
<!--VAL(timeout,90000)-->

<!--VAL(samhost,"$host$")-->
<!--VAL(samport,"$port$")-->

<!--DEF(song.buycd,"http://www.audiorealm.com/findcd.html?artist=#song.artist#&title=#song.title#&album=#song.album#")-->
<!--DEF(song.website,"http://www.audiorealm.com/findwebsite.html?artist=#song.artist#&title=#song.title#&album=#song.album#")-->
<!--DEF(song.picture,"na.gif")-->

<!--DEF(history.buycd,"http://www.audiorealm.com/findcd.html?artist=#history.artist#&title=#history.title#&album=#history.album#")-->
<!--DEF(history.website,"http://www.audiorealm.com/findwebsite.html?artist=#history.artist#&title=#history.title#&album=#history.album#")-->
<!--DEF(history.picture,"na.gif")-->

<!--DEF(songlist.buycd,"http://www.audiorealm.com/findcd.html?artist=#songlist.artist#&title=#songlist.title#&album=#songlist.album#")-->
<!--DEF(songlist.website,"http://www.audiorealm.com/findwebsite.html?artist=#songlist.artist#&title=#songlist.title#&album=#songlist.album#")-->
<!--DEF(songlist.picture,"na.gif")-->

<!--DEF(requests.buycd,"http://www.audiorealm.com/findcd.html?artist=#requests.artist#&title=#requests.title#&album=#requests.album#")-->
<!--DEF(requests.website,"http://www.audiorealm.com/findwebsite.html?artist=#requests.artist#&title=#requests.title#&album=#requests.album#")-->
<!--DEF(requests.picture,"na.gif")-->

<!--DEF(query.buycd,"http://www.audiorealm.com/findcd.html?artist=#query.artist#&title=#query.title#&album=#query.album#")-->
<!--DEF(query.website,"http://www.audiorealm.com/findwebsite.html?artist=#query.artist#&title=#query.title#&album=#query.album#")-->
<!--DEF(query.picture,"na.gif")-->
Which is the internal address? Is my external address just my SAM machine's IP address? If not, what is it?


Top
 Profile  
Reply with quote  
PostPosted: June 21st, 2020, 8:42 am 
Offline
SVS Member
SVS Member

Joined: May 8th, 2004, 9:00 am
Posts: 10527
Location: Denver, CO
Code:
<!--VAL(samhost,"$host$")-->
<!--VAL(samport,"$port$")-->
these values must be entered in the config and the config MUST be uploaded to the root directory of your web page. Your public IP address (where SAM is located) is entered in host and include the quotes around it. No $ signs. If your address changes frequently then use a dns redirect service (free).
The port is entered as "1221".

_________________
- Rob Oyler, SVS
Image


Top
 Profile  
Reply with quote  
PostPosted: June 21st, 2020, 9:38 am 
Offline
Super User
Super User

Joined: August 18th, 2005, 10:25 am
Posts: 1321
I did this, uploaded it to my webhost, but it still doesn't work:
Code:
<!--VAL(logo,"images/logo.gif")-->
<!--VAL(email,"soukous@africamail.com")-->
<!--VAL(picture_dir,"pictures/")-->
<!--VAL(timeout,90000)-->

<!--VAL(samhost,"100.33.93.149")-->
<!--VAL(samport,"1221")-->

<!--DEF(song.buycd,"http://www.audiorealm.com/findcd.html?artist=#song.artist#&title=#song.title#&album=#song.album#")-->
<!--DEF(song.website,"http://www.audiorealm.com/findwebsite.html?artist=#song.artist#&title=#song.title#&album=#song.album#")-->
<!--DEF(song.picture,"na.gif")-->

<!--DEF(history.buycd,"http://www.audiorealm.com/findcd.html?artist=#history.artist#&title=#history.title#&album=#history.album#")-->
<!--DEF(history.website,"http://www.audiorealm.com/findwebsite.html?artist=#history.artist#&title=#history.title#&album=#history.album#")-->
<!--DEF(history.picture,"na.gif")-->

<!--DEF(songlist.buycd,"http://www.audiorealm.com/findcd.html?artist=#songlist.artist#&title=#songlist.title#&album=#songlist.album#")-->
<!--DEF(songlist.website,"http://www.audiorealm.com/findwebsite.html?artist=#songlist.artist#&title=#songlist.title#&album=#songlist.album#")-->
<!--DEF(songlist.picture,"na.gif")-->

<!--DEF(requests.buycd,"http://www.audiorealm.com/findcd.html?artist=#requests.artist#&title=#requests.title#&album=#requests.album#")-->
<!--DEF(requests.website,"http://www.audiorealm.com/findwebsite.html?artist=#requests.artist#&title=#requests.title#&album=#requests.album#")-->
<!--DEF(requests.picture,"na.gif")-->

<!--DEF(query.buycd,"http://www.audiorealm.com/findcd.html?artist=#query.artist#&title=#query.title#&album=#query.album#")-->
<!--DEF(query.website,"http://www.audiorealm.com/findwebsite.html?artist=#query.artist#&title=#query.title#&album=#query.album#")-->
<!--DEF(query.picture,"na.gif")-->


Top
 Profile  
Reply with quote  
PostPosted: June 23rd, 2020, 6:37 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 8156
Location: Cologne (Germany)
You forgot to upload the other stuff in the samHTMLweb folder.
The JS and CSS files as well as all the images for the template are missing.
IIRC you need to perform the initial upload by hand and only the changing HTML files are uploaded by SAM automatically.

i.e.: http://radioafricaonline.com/samHTMLweb/js/common.js is not on your server.
Same for http://radioafricaonline.com/samHTMLweb ... /style.css
So you need to upload the styles, js and images folders from within the samHTMLweb on your harddisk to the FTP by hand.
In order to get the cover artworks uploaded, you can use SAM's internal feature for that again: Tools=>HTML Output=>Upload all pictures

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

Shop for readymade PAL scripts by countrywesterndj - Or get a custom script made by me (or others)

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
PostPosted: June 24th, 2020, 5:16 am 
Offline
Super User
Super User

Joined: August 18th, 2005, 10:25 am
Posts: 1321
Thanks for that. playing.html looks less crude now. I tried a request, but still nothing is happening. I've clicked Upload Pictures many times, but it's always said 3,900 pictures in FTP queue, and done nothing. I think adding the js and style folder is now preventing playing.html from self-updating.


Top
 Profile  
Reply with quote  
PostPosted: June 24th, 2020, 6:12 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 8156
Location: Cologne (Germany)
Actually the opposite is true.
Without the JS files you can update the page, but noone will notice until they refresh the page.
With the JS files, the page auto-refreshes every few seconds so users can see a new track when it has changed.

The playlist/playing files not automatically updating might be due to your FTP queue being full with pictures at the moment.
1000 pictures take about 2-3 hours due to the protocol overhead of FTP. (FTP is great for few large files, but can't keep up with modern internet speeds when you need to handle a large number of files. For each file to upload it first opens a connection, then performs the login, then navigates to the target directory, then uploads the file, then closes the connection. If a file is small enough to be uploaded instantly, this will still take 4-5 seconds per file, with the transfer taking up the smallest part of that)

You can clear the queue and then update the playlist/playing file again, but that will start the picture upload job from 0 again.

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

Shop for readymade PAL scripts by countrywesterndj - Or get a custom script made by me (or others)

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
PostPosted: June 24th, 2020, 6:42 am 
Offline
Super User
Super User

Joined: August 18th, 2005, 10:25 am
Posts: 1321
When I click Request this track now!, a blank pop-up shows with waiting for request.audiorealm in the lower left corner, but the track does not play. I tried both versions of header.html, requestAudiorealm and requestPrivate. Got this error message:
Quote:
Sorry, your request failed. The radio station responded with:
Unable to connect to 192.168.1.99:1221. Station might be offline, or connection is being blocked. (Err#: 803)


Top
 Profile  
Reply with quote  
PostPosted: June 24th, 2020, 4:46 pm 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 8156
Location: Cologne (Germany)
That means you didn't adjust the _config.html as you were told by DJ Cassio.
Enter the right IP address in _config.html, click tools-html output-generate and generate playlist, then wait for the updated files to be uploaded.

If you leave the $ stuff in there, SAM will try to figure out the correct IP by looking at your computer's network connection and take the IP address of your computer. SAM does not know the difference between a private/internal IP address and a public IP address and has no way of determining the IP address of your computer other than looking at the network connections in Windows.

If you're living closer to 2020 than to 2002, though, your computer is most likely not directly connected to the internet and does not have any public IP address. Instead it will talk to a wifi-router/ap aka a NAT (Network Address Translation) Gateway, that will forward communication from the internal network to the internet (and back on the same route) and (if you've properly set up port-forwarding) new connections from outside to specified internal addresses.
The built-in mechanism of SAM will not work properly for this scenario and you MUST enter the public IP and port in the _config.html file yourself.

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

Shop for readymade PAL scripts by countrywesterndj - Or get a custom script made by me (or others)

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
PostPosted: June 24th, 2020, 5:23 pm 
Offline
Super User
Super User

Joined: August 18th, 2005, 10:25 am
Posts: 1321
I made all those changes to _config.html Sunday and posted them, but I'll post them again:
Code:
<!--VAL(logo,"images/logo.gif")-->
<!--VAL(email,"soukous@africamail.com")-->
<!--VAL(picture_dir,"pictures/")-->
<!--VAL(timeout,90000)-->

<!--VAL(samhost,"100.33.93.149")-->
<!--VAL(samport,"1221")-->

<!--DEF(song.buycd,"http://www.audiorealm.com/findcd.html?artist=#song.artist#&title=#song.title#&album=#song.album#")-->
<!--DEF(song.website,"http://www.audiorealm.com/findwebsite.html?artist=#song.artist#&title=#song.title#&album=#song.album#")-->
<!--DEF(song.picture,"na.gif")-->

<!--DEF(history.buycd,"http://www.audiorealm.com/findcd.html?artist=#history.artist#&title=#history.title#&album=#history.album#")-->
<!--DEF(history.website,"http://www.audiorealm.com/findwebsite.html?artist=#history.artist#&title=#history.title#&album=#history.album#")-->
<!--DEF(history.picture,"na.gif")-->

<!--DEF(songlist.buycd,"http://www.audiorealm.com/findcd.html?artist=#songlist.artist#&title=#songlist.title#&album=#songlist.album#")-->
<!--DEF(songlist.website,"http://www.audiorealm.com/findwebsite.html?artist=#songlist.artist#&title=#songlist.title#&album=#songlist.album#")-->
<!--DEF(songlist.picture,"na.gif")-->

<!--DEF(requests.buycd,"http://www.audiorealm.com/findcd.html?artist=#requests.artist#&title=#requests.title#&album=#requests.album#")-->
<!--DEF(requests.website,"http://www.audiorealm.com/findwebsite.html?artist=#requests.artist#&title=#requests.title#&album=#requests.album#")-->
<!--DEF(requests.picture,"na.gif")-->

<!--DEF(query.buycd,"http://www.audiorealm.com/findcd.html?artist=#query.artist#&title=#query.title#&album=#query.album#")-->
<!--DEF(query.website,"http://www.audiorealm.com/findwebsite.html?artist=#query.artist#&title=#query.title#&album=#query.album#")-->
<!--DEF(query.picture,"na.gif")-->
Port 1221 checks out with canyoufind.me, but I never got 3306 working. That's why I changed from MySQL to Firebird/samHTMLweb.


Top
 Profile  
Reply with quote  
PostPosted: June 24th, 2020, 7:59 pm 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 8156
Location: Cologne (Germany)
After those changes, you clicked both the Generate and Generate Playlist buttons and SAM successfully uploaded those files?
If that's the case, can you please check the _header.html file and tell me what does it say in lines 19 and 20, that should be:
Code:
                var samhost = "$samhost$";
                var samport = "$samport$";

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

Shop for readymade PAL scripts by countrywesterndj - Or get a custom script made by me (or others)

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
PostPosted: June 24th, 2020, 8:42 pm 
Offline
Super User
Super User

Joined: August 18th, 2005, 10:25 am
Posts: 1321
Lines 19 and 20 are exactly like that, and I generate content, playlist, and pictures whenever I make any changes.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 35 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group