Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Montag, 23. Juli 2018, 14:44

pass parameters to testing server

is it possible to pass parameters to testing server (win or mac)? for example startscene=5

Beiträge: 717

Wohnort: Sevastopol, Crimea, Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

2

Montag, 23. Juli 2018, 15:08

Hi)

Yes, that's possible. For example,

Quellcode

1
http://192.168.0.103:58393/?startscene=1
Regards,

Alexey

3

Montag, 23. Juli 2018, 15:21

нет, я про запуск исполняемого файла с параметрами)

Beiträge: 717

Wohnort: Sevastopol, Crimea, Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

4

Montag, 23. Juli 2018, 15:25

Нужно запустить testing server.exe и в строке браузера прописать нужные параметры (мой пример выше). Сразу запустить с параметрами - не уверен, что есть такая возможность.
Regards,

Alexey

5

Montag, 23. Juli 2018, 18:05

нужно именно при запуске exe, чтобы из другого ПО вызывать сразу нужные панорамы

6

Montag, 23. Juli 2018, 18:57

english?

Beiträge: 717

Wohnort: Sevastopol, Crimea, Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

7

Dienstag, 24. Juli 2018, 08:22

Hi) Sure,

I answered that it's possible to launch Krpano testing server and in browser address bar add parameters to the link.
Regards,

Alexey

8

Dienstag, 24. Juli 2018, 13:51

i was just wondering what those hyroglyphs meant
*whistling*
*squint*

Beiträge: 717

Wohnort: Sevastopol, Crimea, Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

9

Dienstag, 24. Juli 2018, 14:31

Huh)))) Leo Tolstoy make a good deal writing with these hyroglyphs))) *cool*

The question was how to launch 'tour_testingserver' with parameters right from the start. I said I dunno how to do it without first launching the .exe and then adding parameters in the browser address panel.

I'm not a proger though, maybe some ideas from anybody else?
Regards,

Alexey

10

Mittwoch, 25. Juli 2018, 18:21

Hi dreamcutter,
I do use the initvars. settings for passing the variables. Look on my example with a "default" link
https://pavel.ursiny.sk/pano/at/MillstatterSee_2016/
and the special case when requesting the English language and ultra light design skin:
https://pavel.ursiny.sk/pano/at/Millstat…ign_ultra_light

The use case of using it is in my internationalization "i18n" enhancements for multi language support of krpano:
https://krpano.com/forum/wbb/index.php?p…5255&highlight=
I need to upload the upgraded version of the code running on krpano ver. 1.19.pr16, but you can read about the 'pholosophy' and code after downloading my latest upload.

Have a great day!
Pavel

11

Freitag, 27. Juli 2018, 08:59

thanks, but i need pass parameters to testing server with command line when it starts
for example: C:/Projects/Tour/testing_server.exe startscene=5
and after this command i expect that browser will launch my tour from the pano №6

12

Freitag, 27. Juli 2018, 11:24

@klaus:
maybe it would be an idea
if the testserver executable had some (documented) arguments...

- the path to the folder / file to open
like -p some/subfolder/panotour
or -p some/subfolder/panotour/tour.html

- the url arguments to pass to the tour
maybe in url format like -a "?startscene=5&test=4"
or in a list -a "startscene=5,test=4"

or is that possible already somehow?

jordi

Fortgeschrittener

Beiträge: 419

Wohnort: Barcelona

Beruf: creating ideas & coding them

  • Nachricht senden

13

Freitag, 27. Juli 2018, 16:52

won't it be just easier to create a custom exe/dmg and there you can have control of every varibale ??

https://krpano.com/forum/wbb/index.php?p…75291#post75291
everpano.com smart virtual tours

14

Freitag, 27. Juli 2018, 20:46

won't it be just easier to create a custom exe/dmg and there you can have control of every varibale ??


i dont think that is easier (for most people)
for me it would be cool if the testserver would accept some commandline arguments.

15

Freitag, 27. Juli 2018, 23:48

Hi *,
This is not passing command line, but maybe it helps: to start any scene use the deep linking option introduced by Klaus here:
https://krpano.com/forum/wbb/index.php?p…ews119vtourskin

Quellcode

1
<skin_settings  deeplinking="true"

The syntax and params to pass are in the vtourskin.xml:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
	<action name="skin_deeplinking_update_url_process" scope="local">
		copy(adr, browser.location);
		indexoftxt(qi, get(adr), '?');
		if(qi GT 0, subtxt(adr, adr, 0, get(qi)));
		copy(si, scene[get(xml.scene)].index);
		copy(h, view.hlookat);
		copy(v, view.vlookat);
		copy(f, view.fov);
		copy(d, view.distortion);
		copy(a, view.architectural);
		clamp(d, 0.0, 1.0);
		clamp(a, 0.0, 1.0);
		set(pp, calc(f LT 10 ? 6 : 2));
		roundval(h, get(pp));
		roundval(v, get(pp));
		roundval(f, get(pp));
		roundval(d, 2);
		roundval(a, 1);
		set(adr, calc(adr + '?startscene=' + si + '&amp;startactions=lookat('+h+','+v+','+f+','+d+','+a+');'));
		js( history.replaceState(null, document.title, get(adr)); );
	</action>

Pavel

Beiträge: 717

Wohnort: Sevastopol, Crimea, Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

16

Montag, 30. Juli 2018, 08:17

That doesn't do here, because there's a need to start testing server directly with parameters (without starting the browser first). And in this example, the browser.location is used at the beginning - that means the link in the browser is already open.
Regards,

Alexey