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


  • 0

location


10der
 Share

Question

@A.Socha Witam!

 

you flatter me  ? Yes I can speak Polish :) but I am leaving in Ukraine not in Poland

 

image.png.46f890f29ab46dbcd8d92f54e3fb4b3c.png

 

image.png.83dbf8ada9dfe2c6a5db06474349bcb1.png

 

 

local lat = fibaro.getValue(2'Latitude'); 
local lon = fibaro.getValue(2'Longitude');  
 
also wromg

 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Yes @10der,

properties of device 2 are in Poland indeed!
I'm using api/panels/location, which is correct

  • Thanks 1
Link to comment
Share on other sites

  • 0
  • Inquirer
  • 11 minutes ago, Bodyart said:

    Yes @10der,

    properties of device 2 are in Poland indeed!
    I'm using api/panels/location, which is correct

    Djakue!

    • Like 1
    Link to comment
    Share on other sites

    • 0

    Please login or register to see this code.

     

    • Thanks 1
    Link to comment
    Share on other sites

    • 0

    i propose to use the localtion api instead, i think the call you using is depracated 

     

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 33 minutes ago, tinman said:

    i propose to use the localtion api instead, i think the call you using is depracated 

     

    Please login or register to see this code.

     

    Tin. Ok. but... why I hearing about deprecation from yout not from offical Fibaro doc?

    why for example M$ can with TL;DR: annoation, but Fibaro with one small notes - not?!

     

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0

    in HC3 swagger you can find only /Panels/family and Panels/Location, containing longitude and latitude. I know that /device/2 contains some values as well, but i think these are only to set once kind of location if user have not set own via configuration panel (e.g. to have non-Zero / valid values for Maps). This is why i said "i think it is depracated API", but i might be wrong with my observation.

    Link to comment
    Share on other sites

    • 0

    Hello,

    Is it possible get location my familly-users? 

     

    I set some locations (work, home, school..).
    My home location is set right, and have flag as "home": true.
    When i try it in the api/panels/family, i get a relevant response "501, Undocumented, Error: Not Implemented" (I tried it with sec. timestamp and msec. timestamp).
    When i try it in the api/users/, i get relevant response for any users: //"tracking":0,"atHome":false,//.
    When i try it in the api/devices/, i get a response for any users (without user2 - admin - this user is still in the Polland):
    //"Latitude":0.0,"Location":"0;0","LocationTime":"","LocationTimestamp":0,"Longitude":0.0,"PreviousLatitude":0.0,"PreviousLocation":"0;0","PreviousLocationTime":"0","PreviousLocationTimestamp":0,"PreviousLongitude":0.0,"SendNotifications":true,"TrackUser":0,"UserType":"user","atHome":false,//.

    Is it trouble in the properties TrackUser ?

    Thanks for some reaction..
    eM.

    • Like 1
    Link to comment
    Share on other sites

    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.

     Share

    ×
    ×
    • Create New...