Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 3

Yet Another lastWorkingRoute visualiser


Question

Posted (edited)

Please stop forcing the use this app!

Edited by 10der
  • Like 7
  • Thanks 4

Recommended Posts

  • 0
Posted

An empty frame with this text below.

Relations between the characters of "Les miserables".

Do I need to install something for it to work?

  • 0
  • Inquirer
  • Posted (edited)

    php powered http server.

    apache / ngnix /etc

    Edited by 10der
    • 0
  • Inquirer
  • Posted (edited)

    @RH_Dreambox Hi!

     

    a have updated html code.

    now you do not need any php.

    but you should get manually devices.json and rooms.json.

    simply save this requests and put with index.html

     

    http://192.168.1.36/api/rooms

    http://192.168.1.36/api/devices

     

    where 192.168.1.36 HC2 ipAddress 

     

    Please login or register to see this image.

     

     

    Edited by 10der
    • 0
    Posted

    Sorry 10der, but it will not work for me :-( What can I do more to get it to work?

     

     

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    • 0
  • Inquirer
  • Posted (edited)

    browser console can say more than you :)

    Edited by 10der
    • 0
    Posted (edited)

    In Firefox and Edge OK,

    Chrome and IE don't work

     

    thanks!

     

     

    Edited by petrkl12
    • 0
  • Inquirer
  • Posted (edited)

    fixed!

     

    Please login or register to see this image.

    Chrome OK!

     

    Edited by 10der
    • 0
  • Inquirer
  • Posted (edited)

    now I am trying to call load.php

    load.php - generate devices.json & rooms.json

    index.html load it.

    if load.php not found (404) index.html ignore this event and trying to load devices.json & rooms.json hope what these files already exists

     

    load.php attached as well

     

     

     

     

     

    Edited by 10der
    • 0
    Posted

    Super, all is working including PHP script

    • 0
    Posted

    Tested latest version...

    Chrome :-(                  Version 68.0.3440.106 (Officiell version) (64 bitar)

    Internet Explorer :-(   Version 11.228.17134.0

    Edge :-D                        Microsoft Edge 42.17134.1.0

    • 0
  • Inquirer
  • Posted
    1 minute ago, RH_Dreambox said:

    Tested latest version...

    Chrome :-(                  Version 68.0.3440.106 (Officiell version) (64 bitar)

    Internet Explorer :-(   Version 11.228.17134.0

    Edge :-D                        Microsoft Edge 42.17134.1.0

     

    you stll not providing more information from developer JS console!!!!

    • 0
    Posted

    Sorry, but I would just do it :-)

     

    jquery-3.3.1.min.js:2 Failed to load file:///E:/Fibaro/Fibaro%20route/load.php: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
    send @ jquery-3.3.1.min.js:2
    jquery-3.3.1.min.js:2 Failed to load file:///E:/Fibaro/Fibaro%20route/devices.json?format=json: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

    • 0
  • Inquirer
  • Posted

    lol!

    you trying to open index.html  without http server? just by click and open file in browser?

    lol! mega lol.

    • 0
    Posted

    lol, he he

    But i have devices.json and rooms.json in the same directory (manually created).

    But I will try to move the PHP-file.

    • 0
  • Inquirer
  • Posted

    Please login or register to see this link.

    • 0
    Posted

    Hmmm, I think this goes beyond my capacity.
    I will try installing web server and PHP server on a Raspberry and see if it works.
    Otherwise, I'll use Edge when I want to check the routing :-P

    • 0
  • Inquirer
  • Posted (edited)
    4 hours ago, RH_Dreambox said:

    Hmmm, I think this goes beyond my capacity.
    I will try installing web server and PHP server on a Raspberry and see if it works.
    Otherwise, I'll use Edge when I want to check the routing :-P

    btw,

     

    windows.

     

    1) download 

    Please login or register to see this link.

    2) unpack (for example C:\PHP)

    3) create dir (as I can see you already) fibaro. copy files from this thread

    4) run at current dir c:\php\php -S localhost:8000
    6)

    Please login or register to see this link.

     ta da! 

     

    Edited by 10der
    • Like 1
    • Thanks 1
    • 0
    Posted

    10th, thanks for all the help to a novis man :oops:
    Now it works perfectly. I have two HC2 so I had to make double files index-11.html, load-11.php, index-18.html and load-18.php.
    It took a while before I understood what you mean and how it would be, but after some hard work in the garden everything worked out for me :-D

    This was amazingly good! It should have been integrated into HC2 a long time ago.
    But unfortunately, Fibaro's development department does not recognize what features are needed and what we users want.

    Thank you very much for this!

    • 0
    Posted

    Thanks a lot @10der !

     

    Question about the violet ones. What do you mean with "empty routes" ?

    The violet ones seems to have a connection to the HC2 like others, whats the differents?

     

    • 0
  • Inquirer
  • Posted
    Just now, Remi said:

    Thanks a lot @10der !

     

    Question about the violet ones. What do you mean with "empty routes" ?

    The violet ones seems to have a connection to the HC2 like others, whats the differents?

     

     

    []

     

    Please login or register to see this image.

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...