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

index.html

Started by HB9RYZ, Sep 12, 2024, 11:22 PM

Previous topic - Next topic

HB9RYZ

Hello
I know how to change the index.html file in /PhantomSDR-Plus/frontend/dist/index.html the Titel for the bookmark.

Where can I add a titel with bold letters where I can make a statement about the WebSDR such as "PhantomSDR-Plus Rigi Scheidegg at 1'660m in the Swiss Alps operated by HB9RYZ with a RX888 SDR". I would like to give the users more information about the SDR they listen to.

73 de HB9RYZ
Wolfgang

magicint1337

For now its not that easy, im working to make it easy. Thats the issue with the current approach.
Maintainer and Developer of PhantomSDR-Plus

9a7aof

Hello,

I change /PhantomSDR-Plus/frontend/dist/index.html Titel and add my favicon.ico but <bold>Titel</bold > does't not working.

And I have Enigma, how add Boomark for 2755000 USB, mark.json does not working for this.

Please, add example file for this problem.

Thanks!

Darko, 9a7aof



magicint1337

You cant really change stuff yet, its compiled svelte code. For every change you have to compile. Im working on a standalone website atm, wait for this then you can add more

Im working on it.

https://imgur.com/MMBwMB1
Maintainer and Developer of PhantomSDR-Plus

linkz

Wolfgang, you mean a title above the waterfall ?
like in this:


if yes and you can't wait for Steve to publish the new frontend version ;) I've done this simple trick in the past, if I remember well, the mod is in /frontend/src/App.svelte (search for 'pt-20' to find the line)



then rebuild the frontend
cd frontend
npm install
npm audit fix
npm run build

and restart spectrumserver

magicint1337

#5
Quote from: linkz on Sep 13, 2024, 01:58 PMWolfgang, you mean a title above the waterfall ?
like in this:


if yes and you can't wait for Steve to publish the new frontend version ;) I've done this simple trick in the past, if I remember well, the mod is in /frontend/src/App.svelte (search for 'pt-20' to find the line)



then rebuild the frontend
cd frontend
npm install
npm audit fix
npm run build

and restart spectrumserver

Yes, this works. But as said its really stupid that its this complex. But we have to move on from old parts of the original project. And svelte frontend in my eyes is something that makes no sense.

For now this approach is fine, ill keep yall updated on the new approach. I already have a working basic waterfall.

Version 1.5.5 will be a big update, probably one of the biggest and best single updates.

Much work will go into the new approach of html without compiling, a redesigned look, more features in the frontend.

I will post more polls on some stuff im thinking about for yall to vote if its a good or bad idea.

There may also be some compression changes but thats not confirmed and a bit of rework on the agc but most will happen in the frontend.

Much effort will flow into the 1.5.5 as its not that easy as it may seem from the outside.

Edit: just the fact that you have to recompile changes is absurd for a websdr, it will stress the cpu and you cant make changes fast without affecting the usage of the sdr
Maintainer and Developer of PhantomSDR-Plus

Bas ON5HB

Quote from: 9a7aof on Sep 13, 2024, 09:53 AMAnd I have Enigma, how add Boomark for 2755000 USB, mark.json does not working for this.

The markers.json need to be in the PhantomPlus directory.

It looks like this:

{
  "markers": [
    {
      "frequency": 9000,
      "name": "Lightning",
      "mode": "AM"
    },
    {
      "frequency": 172000,
      "name": "SAQ Alexanderson",
      "mode": "CW"
    },
    {
      "frequency": 30000,
      "name": "Lightning",
      "mode": "AM"
    },
    {
      "frequency": 77500,
      "name": "DCF77",
      "mode": "CW"
    }
  ]
}
Best regards,

Bas ON5HB

Ps. the Community Edition can be found here: https://github.com/ny4qphil/PhantomSDR-Plus

HB9RYZ

Quote from: linkz on Sep 13, 2024, 01:58 PMWolfgang, you mean a title above the waterfall ?
like in this:


if yes and you can't wait for Steve to publish the new frontend version ;) I've done this simple trick in the past, if I remember well, the mod is in /frontend/src/App.svelte (search for 'pt-20' to find the line)



then rebuild the frontend
cd frontend
npm install
npm audit fix
npm run build

and restart spectrumserver

Yes, I will try this tomorrow.
73 Wolfgang

9a7aof

Quote from: Bas ON5HB on Sep 13, 2024, 05:09 PMThe markers.json need to be in the PhantomPlus directory.

It looks like this:

Thanks Bas, this work fine.

You cannot view this attachment.

HB9RYZ

Quote from: linkz on Sep 13, 2024, 01:58 PMWolfgang, you mean a title above the waterfall ?
like in this:


if yes and you can't wait for Steve to publish the new frontend version ;) I've done this simple trick in the past, if I remember well, the mod is in /frontend/src/App.svelte (search for 'pt-20' to find the line)



Was not working - I did the changes, and the PhantomSDR Plus was not starting anymore !!!!!


then rebuild the frontend
cd frontend
npm install
npm audit fix
npm run build

and restart spectrumserver

hb3xdc

I tried this today, but the compiling of the frontend fails allways:

gianni@sdr-srv01:/home/websdr/PhantomSDR-Plus/frontend$ npm run build

> my-svelte-app@0.0.0 build
> vite build

file:///home/websdr/PhantomSDR-Plus/frontend/node_modules/vite/bin/vite.js:7
    await import('source-map-support').then((r) => r.default.install())
    ^^^^^

SyntaxError: Unexpected reserved word
    at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
    at async link (internal/modules/esm/module_job.js:42:21)
gianni@sdr-srv01:/home/websdr/PhantomSDR-Plus/frontend$

Gianni - HB3XDC
WebSDR Lucerne
Sardinia SDR

linkz

I have the same issue on my Raspberrypi4 setup
I can't rebuild the frontend either

magicint1337

This issue can be fixed by updating the version of vite
Maintainer and Developer of PhantomSDR-Plus

Powered by EzPortal