Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 5 plans #154

Open
4 of 13 tasks
Koenvh1 opened this issue Aug 22, 2021 · 18 comments
Open
4 of 13 tasks

Version 5 plans #154

Koenvh1 opened this issue Aug 22, 2021 · 18 comments
Assignees

Comments

@Koenvh1
Copy link
Owner

Koenvh1 commented Aug 22, 2021

There are a couple of things I want to have done for a version 4 5 of Local Radio. The main overarching goal is to rewrite the core of Local Radio to make it work more reliably. Adding new functionality is a nice bonus if it can be done easily, but that is not the aim at the moment. Local Radio has changed a lot throughout the years, and thus certain design decisions that made sense at the time no longer do currently. This should also make it easier to modify Local Radio later.

This is the list currently:

  • Updating the styling to match the logo's
  • Adding support for one station being in multiple cities without showing up twice
  • Replacing the PeerJS system with a system handled by the server
  • Syncing the state between the web-frontend and the server
  • Making the web-frontend reactive
  • Using websockets for the communication between server and web-frontend
  • Adding better favourites support
  • Adding better proxy support
  • Updating to a new version of the SCS SDK
  • Switching to a different game overlay library
  • Making it easy to switch between versions of the cities/stations
  • Fix HTTPS support for the server
  • Remove admin right requirement

If you have any wishes, feel free to let me know, although I will warn you in advance that I do not guarantee that I will implement it (I probably will not). However, I am looking for people who want to contribute to Local Radio. If you feel like doing some of the things above, or you propose something else, let me know. I do have some ideas about the items above (and there are some things to take into account that you might not expect), but nothing set in stone yet.

(As for when this will be done: no idea, probably 2022 or later.)

@Koenvh1 Koenvh1 pinned this issue Aug 22, 2021
@Escort95
Copy link
Contributor

Step 2 is easy ;) just create a country, name it with radio name ex. "VOX FM" and then add cities where VOX FM is broadcasting in real life. I use this when i edit local radio for myself ;) ( It's switches auto. with no pop-up / white noise)

@Koenvh1
Copy link
Owner Author

Koenvh1 commented Aug 30, 2021

True, that is an ugly hack that works, but the entire point of version 4 is to get rid of those ugly hacks.

@ghost
Copy link

ghost commented Sep 11, 2021

I would have an idea regarding the reception, the volume of the station would go and leave for white noise when the amount of static reaches 1.00, and between 0.50 and 0.85 the volume weakens more and more with variations
So if I am in Spain, if I want to listen to a radio from Sweden the only thing I would hear would be only white noise
I think this is possible

I increased the size of the area so that the reception is ok on a radius of ~ 20km
SWR 3, for example, broadcast in southwestern Germany reaches as far as Bourges in France

Another thing that would be good, would be to add an option to display the radio and the signal at the bottom right (while remaining displayed) (which can be deactivated of course)
It could be great to know the reception in real time without looking on the page (or if it is possible to add it on the mobile interface)

Also enable / disable the fact that the station changes automatically

@Koenvh1
Copy link
Owner Author

Koenvh1 commented Sep 14, 2021

The first thing is already included - the volume does start fluctuating. It hides stations out of reach by default, but you can turn them on again by clicking the "Toggle show all" button on the bottom. Mind you, your browser might start slowing down to a crawl if you do so.

No plans for a permanent overlay - it will most likely interfere with other interface elements. Might add the current signal strength to the mobile interface.

You can already change the fact that it changes automatically by setting a really large threshold in the config.

@ghost
Copy link

ghost commented Sep 14, 2021

Yes I noticed that by clicking on show all radios, it does not change automatically

It would be cool if it is possible to completely mute the volume of the radio once amount of static reaches 1.00 (and between 0.90 and 1.00 a very weak signal audio for a more natural death to the signal)

I would love to be able to integrate the signal strength (the 5 bars) on my stream, (the mobile version or player page with signal strengh add on the top) would be perfect for that
Like this :
image

Because on the main page as the radios change position when I drive it is impossible to frame the exact place (if you see what I mean)

@ghost
Copy link

ghost commented Sep 15, 2021

On the current version, is it possible to modify the value so that at 1.00 the volume drops to 0?

(I am really not familiar with the lines of codes ect)

I see some interesting lines on "Main.js"
on "Local Radio \ web \ lib \ js"

image

If I want to keep it as currently from 0.45 (amount of static) it starts to fluctuate and that between 0.70 and 1.00 (amount of static) I want the volume to be much lower while still fluctuating automatically and past 1.00 there is no sound while keeping the white noise is it possible ?

"0.45" on the line corresponds to amount of static ?
image

@zflash
Copy link

zflash commented May 28, 2022

I would like the following:

  • Option to keep a station fixed when you drive out of range. In some counties in the US, radio stations are horrible.
  • Native VR support maybe? ;-)

@ryanmsj
Copy link

ryanmsj commented Jul 22, 2022

please add support for macOS

@Koenvh1
Copy link
Owner Author

Koenvh1 commented Jul 22, 2022

@ryanmsj Not possible currently due to a limitation in ETS2/ATS.

@zflash
Copy link

zflash commented Aug 10, 2022

I would love an option to lock a station regardless of my location at the time. There are some cool radio stations that I would like to listen to regardless of the county I'm in. As soon as I'm fed up with that station, simple click and I'm back at the location oriented stations.

@Koenvh1
Copy link
Owner Author

Koenvh1 commented Aug 12, 2022

@zflash What do you mean exactly? A set number of stations always available, or ensuring that the current station does not switch? I have been thinking about the latter, but have not come up with a nice approachable way to implement it without causing confusion.

@zflash
Copy link

zflash commented Aug 12, 2022

@zflash What do you mean exactly? A set number of stations always available, or ensuring that the current station does not switch? I have been thinking about the latter, but have not come up with a nice approachable way to implement it without causing confusion.

For example. I'm a fan of rock and metal stations and there are some really good ones, so I favorite them. I would like to have an option to have an extra flag to specific stations that I can cycle through regardless of what state I'm in. Basically I want to listen to a small station from Cali when I'm in Idaho.

@Koenvh1
Copy link
Owner Author

Koenvh1 commented Aug 13, 2022

@zflash Ah okay. I believe you can do that already using the global country. It was initially thought of for something like TruckersFM, but it works with any audio stream.

@zflash
Copy link

zflash commented Aug 17, 2022

@Koenvh1 How can I use the global country? Is that a setting in the ini? Would be a lot cooler that with a simple click I could just keep a station locked until I unlock it.

@Koenvh1
Copy link
Owner Author

Koenvh1 commented Aug 18, 2022

It is something that can be done using custom.js, e.g.:

stations["global"].push({
            name: "Station name",
            logo: "Logo URL",
            url: "Stream URL"
        });

The main issue with locking a couple of stations is that creating a list to pick from is difficult (as the number of available stations means that simply displaying them all will grind your web browser to a halt). Additionally, there is the question whether this should be ephemeral or a permanent thing that remains after reboots etc. Doing something permanently can already be done (admittedly, a button would be easier, but this is not too difficult either). Having something there temporarily is something I have been contemplating (e.g., you find a programme you like and want to hear the end of it).

@zflash
Copy link

zflash commented Aug 20, 2022

@Koenvh1 A button for a temporary lock would be a welcome addition. If a permanent list of station you can rotate is a big issue, I would love just the lock function :)

@JulienEREZ
Copy link

JulienEREZ commented Apr 20, 2023

For v4, it would be so nice if there was the possibility that the audio of the current radio changes from Stereo to Mono as soon as the whitenoise becomes audible in order to give a more realistic look

In the genre when the whitenoise reaches 0.05) it switches to mono
Here is a video to illustrate this ! (I purposely exaggerated the stereo for demonstration)
https://www.youtube.com/watch?v=Uz82PzjpynI

For my part, I made sure that there is gradually no longer any sound of the current station as soon as the whitenoise reaches 0.90

From 0.20 it begins to fluctuate, at 0.40 much more, 0.60 even more, then at 0.80 it is difficult to listen to it

instead of the whitenoise .mp3 file I put the link to a stream that broadcasts a real radio on the neighboring frequency (current station = 95.6, neighboring radio = 95.7)

Here video of the plugin in action:
https://www.youtube.com/watch?v=bDt6buU3GZw

Another thing that would be nice to do, when the truck is stationary, the random fluctuation effect stops, it would be active only when the truck is moving

@Koenvh1
Copy link
Owner Author

Koenvh1 commented Apr 24, 2023

@JulienEREZ Not a bad idea - with the way it currently works it would be quite a feat to add though, but not impossible.

@Koenvh1 Koenvh1 changed the title Version 4 plans Version 5 plans Jun 27, 2024
@Koenvh1 Koenvh1 self-assigned this Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants