Our current SDR online list: https://sdr-list.xyz/

Suggestions for App.svelte and other components

Started by Emmanuel SV1BTL, Jan 04, 2025, 12:11 PM

Previous topic - Next topic

hb3xdc

Quote from: Emmanuel SV1BTL on Jan 04, 2025, 10:33 PM
Quote from: hb3xdc on Jan 04, 2025, 10:29 PMit'd be nice if your own memories
Maybe it would be better to build memories and save them to a file, so to upload them everywhere into every PhantomSDR is used, and not to re-create them, and a cookie cleanup to erase them...

SV2AMK (Sakis) is working on it, but he faces too many problems.



Thats a very good idea to me. Would be a nice feature.

Ah some small thing I forgot about, maybe we find a way, how Tuning Step Selection is also usable, when user scrolls in freq part of the waterfall. I tried about this by my self some weeks ago, but didnt found out how its done.
Gianni - HB3XDC
WebSDR Lucerne
Sardinia SDR

Phil - NY4Q

Check this out. Development mode vs Compiled Mode - looks like a bug in the compiler or the system does not like the way the software is using dynamic variables in that else loop.
---
You cannot view this attachment.

You cannot view this attachment.

Emmanuel SV1BTL

Quote from: Phil - NY4Q on Jan 05, 2025, 12:55 AMDevelopment mode vs Compiled Mode

New problem now! And how are we going to use this Development mode?

Phil - NY4Q

Ok, the latest build file is up with the fix and additions mentioned from Emmanuel. There is a new place to add data on the site_information.json file - it is your ITU region. That variable builds the proper buttons for your area based on the bands in the waterfall.js file.

Gianni, I will look at your suggestions in the morning.

Phil

Emmanuel SV1BTL

Phil, i saw that MUTE issue is done for your site, but I cannot find a solution for this "development mode", so to fix also mine.

Emmanuel SV1BTL

I have also tried to activate AGC modes, but you are maybe working on it, 'cause it does not function as expected.

Phil - NY4Q

Quote from: Emmanuel SV1BTL on Jan 05, 2025, 10:53 AMI have also tried to activate AGC modes, but you are maybe working on it, 'cause it does not function as expected.

AGC is not 'ready for prime time'. ha

It should be commented out.


Phil - NY4Q

#22
Quote from: Emmanuel SV1BTLPhil, i saw that MUTE issue is done for your site, but I cannot find a solution for this "development mode", so to fix also mine.

Go to the function and change the quotation marks enclosing the colors to back quotes.
From -> color: "red"
To -> color: 'red'

Phil - NY4Q

I plan to look at Gianni's filters today then next to move the Recording Options to the Audio section like you have Emmanuel - add the link for the player and such as time allows.

Emmanuel SV1BTL

Quote from: Phil - NY4Q on Jan 05, 2025, 11:21 AMFrom -> color: "red"
To -> 'red
It was already with back quotes... No success, never mind!


Well, the player is a copy from "Audiomotion.js" https://audiomotion.app/, but it is downloaded to the disk and included to frontend/dist as folder : "audio"

The link to go there is http://ip:port/audio.index.html

The problem is that every time a compile is running, the dist folder is recreated, so the audio folder has to uploaded manually

I am including a .zip file


Phil - NY4Q

Quote from: Emmanuel SV1BTL on Jan 05, 2025, 11:51 AMIt was already with back quotes... No success, never mind!

Out of curiosity, create a new user on your system and pull a full new package and then run the install.sh and recompile the frontend after that. Maybe something in your current setup is corrupt. I know this svelte / vite / npm is very temperamental!

frontend build when the install is new
npm install
npm audit fix
npm run build




Emmanuel SV1BTL

Dear Phil,
For your WebSDR the MW list has to be adapted to your region. So you have to change
<button class="glass-button text-white py-1 px-3 mb-2 lg:mb-0 rounded-lg text-xs sm:text-sm" style="color:rgba(0, 225, 255, 0.993)" onClick="window.open('http://www.mwlist.org/mwlist_quick_and_easy.php?area=1&amp;kHz='+{Math.round(frequency)},'websdrstationinfo','');">
                  <span class="icon">MW List</span>

to:

<button class="glass-button text-white py-1 px-3 mb-2 lg:mb-0 rounded-lg text-xs sm:text-sm" style="color:rgba(0, 225, 255, 0.993)" onClick="window.open('http://www.mwlist.org/mwlist_quick_and_easy.php?area=3&amp;kHz='+{Math.round(frequency)},'websdrstationinfo','');">
                  <span class="icon">MW List</span>

The "area" in the code depends on the ITU area where the WebSDR is located, so to show the broadcasting MW stations properly.

According to the code:
area=1 ->  Europe, Africa and Middle East
area=2 ->  Asia and Pacific
area=3 ->  North America, Central America, Caribbean
area=4 ->  South America

For SW tool, there is nothing more to do. As you maybe noticed, the tool pickups your locator (from your IP I suppose) and shows you the broadcasting stations received by your WebSDR location.

Phil - NY4Q

Quote from: Emmanuel SV1BTL on Jan 05, 2025, 03:41 PMDear Phil,
For your WebSDR the MW list has to be adapted to your region. So you have to change
<button class="glass-button text-white py-1 px-3 mb-2 lg:mb-0 rounded-lg text-xs sm:text-sm" style="color:rgba(0, 225, 255, 0.993)" onClick="window.open('http://www.mwlist.org/mwlist_quick_and_easy.php?area=1&amp;kHz='+{Math.round(frequency)},'websdrstationinfo','');">
                  <span class="icon">MW List</span>

to:

<button class="glass-button text-white py-1 px-3 mb-2 lg:mb-0 rounded-lg text-xs sm:text-sm" style="color:rgba(0, 225, 255, 0.993)" onClick="window.open('http://www.mwlist.org/mwlist_quick_and_easy.php?area=3&amp;kHz='+{Math.round(frequency)},'websdrstationinfo','');">
                  <span class="icon">MW List</span>

The "area" in the code depends on the ITU area where the WebSDR is located, so to show the broadcasting MW stations properly.

According to the code:
area=1 ->  Europe, Africa and Middle East
area=2 ->  Asia and Pacific
area=3 ->  North America, Central America, Caribbean
area=4 ->  South America

For SW tool, there is nothing more to do. As you maybe noticed, the tool pickups your locator (from your IP I suppose) and shows you the broadcasting stations received by your WebSDR location.

I plan to make changes to that later. I made myself a note. Thanks!

Emmanuel SV1BTL

P.S. Moving the cursor through the whole band, we all notice that the modulation and the band button indicator is changing. This is very good. Shall we think the same thing for the step also? E.g. Broadcasting band to automatically tuned to 5KHz step, european MW to 9KHz etc, but when we move away from the band with a cursor, the step to change to given default?

Powered by EzPortal