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

Netatmo i opoznienie podlewania


pooley

Question

Czy ktos ma patent na uzycie czujnika opadow Netatmo do opoznienia podlewania na panelu zraszaczy? Tak zeby w zaleznosci od intensywnosci opadow proporcjonalnie opoznic podlewanie?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
  • Inquirer
  • HC2.

    Zainstalowalem plugin VD z tego watku 

     

    I jest tam elegancko podany opad w ciagu 24h, idealnie zeby tego uzyc, ale nie mam pojecia niestety jak :(

     

    W instrukcji podali teoretycznie jak odczytac dane:

     

    -- Reading data from WeatherState global variable

    local nT = json.decode(fibaro:getGlobalValue("NetatmoWeather")) -- read global variable

    local stationNo = 1 -- set station nuber

     

    i podali zmienna (nie wiem czy tak to sie nazywa):

    wT.netatmo[stationNo].rain.day

     

    Niestety nie umiem programowac w LUA, a tutaj jest to na pewno wymagane :/

     

    Link to comment
    Share on other sites

    • 0

    właśnie to zrobiłem wczoraj, między innymi dzięki Twojemu postowi (nie doczytałem instrukcji) - więc się podzielę ;-)

    Ta scena działa w ciągłej pętli, co pięc minut sprawdzając i aktualizując interesujące mnie parametry i zapisuje je w pabelu zmiennych fibaro.

    Mając to, możesz sobie sam napisać i dodać interesujące Cię parametry.

    Musisz dodać zmienną w panelu zmiennych do górnej tabeli i nazwać dokładnie tak samo jak w skrypcie (np. netatmo_Deszcz24) (wielkie i małe litery mają znaczenie).

    Mając co 5 minut aktualizowaną zmienną w panelu resztę możesz zrobić w scenie blokowej na przykład tak jak [poniżej.

    Opoznienie mam ustawione na 24h - czyli u mnie pomija jedynne dzienne podlewanie, jeśli spadło powyżej 50mm deszczu.

    Z tą ilością na razie nie mam pojęcia jaką ustawić - 50 to tylko strzał, muszę poeksperymentować ze stacją w deszczowe dni najpierw.

    image.png.495d92c248eadcafbdc6f33238202996.png

     

    --[[
    %% properties
    %% events
    %% globals
    %% autostart
    --]]

    local sourceTrigger = fibaro:getSourceTrigger();

    local wT = json.decode(fibaro:getGlobalValue("NetatmoWeather")) -- read global variable
    local stationNo = 1 -- set station nuber

    local netatmo_Deszcz24 = wT.netatmo[stationNo].rain.day
    local netatmo_Podmuch = wT.netatmo[stationNo].wind.gust
    local netatmo_Wiatr = wT.netatmo[stationNo].wind.speed


    if (fibaro:countScenes() > 1) then
      fibaro:abort();
    end


    while true do
      
    fibaro:setGlobal("netatmo_Deszcz24", netatmo_Deszcz24)
    fibaro:setGlobal("netatmo_Podmuch", netatmo_Podmuch)
    fibaro:setGlobal("netatmo_Wiatr", netatmo_Wiatr)

    fibaro:debug("Deszcz w ciągu 24h: " .. wT.netatmo[stationNo].rain.day)
    fibaro:debug("Podmuch wiatru: " .. wT.netatmo[stationNo].wind.gust)
    fibaro:debug("Siła wiatru: " .. wT.netatmo[stationNo].wind.speed)
      
      fibaro:sleep(5*60*1000)
      end
     

    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.

    ×
    ×
    • Create New...