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 (edited)
42 minutes ago, 10der said:

@FonsBrand

 

Please login or register to see this link.

 

¯ \ _ (ツ) _ / ¯

Nice,

 but for me still not working.

 

As described before:
I placed the files index.html, load.php, devices.json and rooms.json in the www dir, in this case Fibaro2.

 

The file index.html has not been modified.

In the file load.php I have modified:

$username = $settings['username'];  <-- for username I filled in my username
$password = $settings['password'];  <-- for password I filled in my password
$url = $settings['hc2Url']; <-- for hc2Url I filled in my local IP adress

 

After opening index.html a blanc page and in de www dir, the devices.json and rooms.json are changed to 0 bytes.

 

 

Edited by FonsBrand
  • 0
  • Inquirer
  • Posted (edited)
    6 minutes ago, FonsBrand said:

    devisec.json and rooms.json are changed to 0 bytes.

    the root issue here.

    but. you can;

    rename load.php to load.php.bak

    re-save devisec.json and rooms.json from browser manually

    and you should get a picture :)

     

    what happens with load.php you may see before... for example, you may call http://localhost/load.php.... add to load.php debug messages like die :) print var_dump etc :)

     

    Edited by 10der
    • Like 1
    • 0
    Posted
    13 minutes ago, 10der said:

    the root issue here.

    but. you can;

    rename load.php to load.php.bak

    re-save devisec.json and rooms.json from browser manually

    and you should get a picture :)

     

    what happens with load.php you may see before... for example, you may call http://localhost/load.php.... add to load.php debug messages like die :) print var_dump etc :)

     

    Thanks 10der,

     

    after renaming load.php to load.php.bak it is working.

     

    Please login or register to see this attachment.

    • 0
  • Inquirer
  • Posted

    @FonsBrand welcome!

    • 0
    Posted

    10der please, you can also add the old version that existed before changing to Select device: input.
    I was stupid to download and overwrite the old index and load files. The new files do not work at all. Rooms and Devices files become 0 bytes with the latest version.
    The previous version just gave me the result I wanted.

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

    10der please, you can also add the old version that existed before changing to Select device: input.
    I was stupid to download and overwrite the old index and load files. The new files do not work at all. Rooms and Devices files become 0 bytes with the latest version.
    The previous version just gave me the result I wanted.

    instruction how to config load.php in header!

    @RH_Dreambox simnple create and fill

     

    example load.settings  for load.php

    Please login or register to see this code.

    Edited by 10der
    • 0
    Posted

    Load.php is properly configured but the latest version no longer works, Rooms and devices are empty.
    I do not have a web server so I run PHP on Windows according to tips from you.

    • 0
  • Inquirer
  • Posted

    @RH_Dreambox can you call load.php directly ?

    But anyway thank for reporting I’ll check at evening. Issue not in index.html — issue just in load.php

    • 0
  • Inquirer
  • Posted (edited)

    @RH_Dreambox can you put this file and call load.php directly?  here is an example what you should get.

     

    Please login or register to see this image.

     

    Edited by 10der
    • 0
    Posted

    http://My_PC_IP/php/load.php

    The result, not so good...

     

    The site can not be reached
    ERR_CONNECTION_REFUSED

     

    If I run index.html the files rooms and devices is still empty (0 bytes)

    • 0
  • Inquirer
  • Posted

    @RH_Dreambox Sir. kill load,php at all. 

    save files manually.

    otherwise configure load.php via load settings properly!

    • 0
    Posted (edited)

    The new load.php is properly configured and I use exactly the same login as on the older load.php that worked.
    Unfortunately, I was stupid enough not to make copies of the older files before I tested the latest version.


    But if you have copies of the older files, I'm grateful if you want to post copies of them.

    I can, however, manually create rooms and devices, but it will be quite tediously every time you want to check the routing because I have two HC2.

    There must be something with the new code that does not work with PHP installed locally on my PC.

     

    Please login or register to see this attachment.

    Edited by RH_Dreambox
    • 0
  • Inquirer
  • Posted

    old php file was 

     

    (only start fragment)

     

    Please login or register to see this code.

     

    • 0
    Posted

    OK, but the index-file? There is a new input dialog that was not previously available. Could there be something changed that does not work for me?

    I am now testing to rename load.php and manually download rooms and devices.
    Then index.html works.

    • 0
    Posted
    2 hours ago, RH_Dreambox said:

    OK, but the index-file? There is a new input dialog that was not previously available. Could there be something changed that does not work for me?

    I am now testing to rename load.php and manually download rooms and devices.
    Then index.html works.

    I had the same issue.

    • 0
  • Inquirer
  • Posted

    @FonsBrand @RH_Dreambox guys. put your creds in php file directly instead of a config file. idk why it's not works.

    if smb have a time - I can provide some instructions for php and we can trying to find issue.

    • 0
    Posted

    I don't use the load.php file, only the index.html and the self made devices.json and rooms.json

     

    Please login or register to see this code.

    is simply not working, if u use the load.php it wil clear the both .json files.

     

    • 0
  • Inquirer
  • Posted

    added screen diagnostic

     

    Please login or register to see this attachment.

    @RH_Dreambox

    • 0
    Posted

    that load.php doesn't works for me :D

    • 0
    Posted

    Hello Guys,

     

    new files working fine for me. @FonsBrand, @Dreambox did you create new file with credentials? I think the intention is to have your special settings in a seperate file so you can update load.php anytime without canging your login data. Create empty file "load.settings" in same directory as other files an put:

    Please login or register to see this code.

    with your settings in in. Works very well...

     

    Anyway, whould it be usefull displaying older LWR in other colour? In my net most devices update LWR within 3 days. There are some few with older LWR which have no wakeup interval or have any problem reporting it to HC. In my opinion it can be a nice feature mark those devices in the visualiser and whould help find problems at first glance. @10der what do you think? ;)

     

     

    • Thanks 1

    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...