BadApple9 / speedtest-x

A self-hosted speedtest appilication with an awesome test result datasheet.
GNU Lesser General Public License v2.1
1.76k stars 409 forks source link

local .js auto start? #27

Closed webresurs closed 3 years ago

webresurs commented 3 years ago

Подскажете как автоматически запускать speedtest-x на сайте? например через js...

Хочу тестировать локальную сеть...

Can you tell me how to automatically run speedtest-x on the site? for example via js ...

I want to test a local network ...

BadApple9 commented 3 years ago

I'm sorry I didn't quite understand what you said.

If you want to deploy it easily, you can use Docker pull its image and run it.

webresurs commented 3 years ago

Хочу установить на внутренний сайт, как счетчик для сбора статистики по скорости с компьютеров в сети. скрытно.

I want to install it on an internal site as a counter for collecting speed statistics from computers on the network. secretly .

in speedtest-x/index.html

 <script type="text/javascript">
    document.querySelector('#startStopBtn').addEventListener('click', () => {console.log('clicked')});
    document.querySelector('#startStopBtn').click();
 </script>

in Web site <iframe src="http://10.0.0.1/stat/speedtest/" width="1" height="1"> </iframe>

BadApple9 commented 3 years ago

in speedtest-x/index.html

in Web site

This solution you writed can work, what do you want is a better way?

webresurs commented 3 years ago

запускать speedtest одной строкой на javascript без iframe ...

run speedtest in one line in javascript without iframe ...

BadApple9 commented 3 years ago

запускать speedtest одной строкой на javascript без iframe ...

run speedtest in one line in javascript without iframe ...

Sorry, this project may can't meet your needs.It can't be embedded into a website perfectly. :)