open different panorama according the time (day/night) or certain month/season

  • Hi all,
    Recently I have a hotel client, where I shot the panoramas in the winter and now in summer too.
    I want to achieve this: when opening the Virtual Tour from the hotel website, the winter panorama will be opened in the winter time and summer in the summer. Or similarly with the night/day.
    The same with the hotspots - let´s say we are in the hotel room and click on the balcony hotspot - if it is winter, the winter panorama would open etc...
    How to achieve that? I did not find any internal krpano action which could help me with that, so I assume I will need to do this in javascript?
    Thank you in advance!

    Best regards,
    Igor Socha

  • I believed this code by Zephyr could help, but somehow it returns some error:

    html:

    Sorry Im a bit rusty with xml if statements, so mind the typos. But you get the idea :)

    Here is the original post: https://krpano.com/forum/wbb/inde…24185#post24185

    I wanted to alter this code for my purposes, but first I wanted to try how it works. ANd this is what I get:

    Warning: js() - calling Javascript "get date()" failed: Error: TypeError: krpano.set is not a function

    Any help? Are there any typos?

    Best regards,
    Igor Socha

  • OK, I had a luck and found where was the problem:

    Quote

    Flashplayer Notes: This function requires the External Interface of the Flashplayer! This means the call-back will work offline/locally only when the security settings of the Flashplayer were adjusted. See here for more detatils - Local / Offline Usage.


    https://krpano.com/docu/html/#onready Seems that the same applies also to my problem (I was testing on the desktop with flash player)

    Best regards,
    Igor Socha

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!