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

Export temperature chart data


Question

Posted

Guys, anyone know how can i export temperature sensor's data from chart?

I need to get a longer period (a month maybe) with all values and times measured by the sensor.

Thanks in advance

  • Like 1

Recommended Posts

  • 0
Posted

Yes, maybe there is something wrong with how I specify the api query to /events/history ?

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

    Yes, maybe there is something wrong with how I specify the api query to /events/history ?

    well in this case none of similar devices would be seen, but i tried it with other swithches, and i could see the events.

    • 0
    Posted

    Try this version

    Please login or register to see this code.

    and call it as

    Please login or register to see this code.

     

    • 0
  • Inquirer
  • Posted
    16 minutes ago, jgab said:

    Try this version

    Please login or register to see this code.

    and call it as

    Please login or register to see this code.

     

    this works

     

    Please login or register to see this code.

     

    • Like 1
    • 0
    Posted (edited)

    I don't now why there are double events

    Please login or register to see this code.

    I see them in my history too. 

    I would expect every other turnOn and turnOff

    Edited by jgab
    • 0
    Posted

    @jgab, getting error

    Please login or register to see this code.

     

    Please login or register to see this code.

     

    • 0
    Posted
    36 minutes ago, Sjakie said:

    @jgab, getting error

    Please login or register to see this code.

     

    Please login or register to see this code.

     

    Don’t declare exportTemps as local

    • 0
    Posted

    @jgab sorry to paste incomplete rules

    You gave me 

    Please login or register to see this code.

    if I blanc out local data = exportTemps

    it generate next error

    Please login or register to see this code.

    So I am a tad lost

    • 0
    Posted

    Your exportTemps return nil.

    Can you show the whole code section including the declarations of exportTemps + helper functions and the rules?

    • 0
    Posted

    @jgab I have no clue what I did wrong.

    I redid the whole QA and I don't have any error so I made a typo somewhere, sorry.

     

    Please login or register to see this code.

    This I like it show after restart QA the data of those temperature devices.

     

    The email does't arrive??

    Please login or register to see this code.

     

     

     

     

     

    • 0
    Posted
    32 minutes ago, Sjakie said:

    @jgab I have no clue what I did wrong.

    I redid the whole QA and I don't have any error so I made a typo somewhere, sorry.

     

    Please login or register to see this code.

    This I like it show after restart QA the data of those temperature devices.

     

    The email does't arrive??

    Please login or register to see this code.

    You need to set 'user' in user:email =

    to something valid. Try 2 as it is usually the admin...

     

     

     

     

     

    • 0
    Posted

    @jgab at the beginning of the QA  is mentioned other  rules with email  are okay

    Please login or register to see this code.

     

    • 0
    Posted
    7 minutes ago, Sjakie said:

    @jgab at the beginning of the QA  is mentioned other  rules with email  are okay

    Please login or register to see this code.

     

    Ok, so ER5 has "old" code that only allows 1 id for the email. Try to only use 2 for the rule, like 2:email = ...

    I will fix it in the next release

     

    • 0
    Posted (edited)

    Please login or register to see this code.

    Result>>is sending two emails, email addresses are different.

    Any other idea????

    Edited by Sjakie
    add question
    • 0
    Posted
    19 minutes ago, Sjakie said:

    Please login or register to see this code.

    Result>>is sending two emails, email addresses are different.

    Any other idea????

    Use only one?

    • 0
    Posted

    @jgab If I use {2,20} or {2} or 2 it does't make any difference error stays

    Please login or register to see this code.

     

    • 0
    Posted
    14 minutes ago, Sjakie said:

    @jgab If I use {2,20} or {2} or 2 it does't make any difference error stays

    Please login or register to see this code.

     

    but this error has nothing to do with the users. This is exportTemps(...) returning nil. Have you declared it global?

    • 0
    Posted

    @jgab, sorry lets start again to avoid confusion.

    This is giving me the problem

    Please login or register to see this code.

     

    • 0
    Posted
    1 hour ago, Sjakie said:

    @jgab, sorry lets start again to avoid confusion.

    This is giving me the problem

    Please login or register to see this code.

     

    Ok, so how and where did you define exportTemps? remember it can't be local.

    • 0
    Posted

    ok if it can't be local I create GV also wrong!

    Please login or register to see this code.

    I also have this

    Please login or register to see this code.

     

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