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

Czas (zmienna) w Powiadomieniu Push (LUA lub bloki)


GanzConrad

Question

Cześć,

Jak zmodyfikować komendę wysyłającą powiadomienie push, aby wewnątrz tekstu powiadomienia dołączyć aktualny czas wywołania sceny?

 

hub.alert('simplePush', {[1] = 201, }, os.time() 'Garaż otwarty'false'')
 
pozdrawiam,
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0
  • Inquirer
  • Wielkie dzięki!

    a czy masz pod ręką przepis jak to zmienić na pusha krytycznego?

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • nie bangla...

    próbowałem też w/g podpowiedzi edytora:

    hub.alert("Push", {[1] = 201, }, os.date("%H:%M").. " Garaż otwarty"true''
    też nie bangla
    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • hub.alert("simplePush", {[1] = 201, }, os.date("%X").. " Garaż otwarty"true''
     

    to działa, ale nie wiem czy to na prawdę jest krytyczny, bo wygląda tak samo jak zwykły i dźwięk też ma identyczny. Na iOS podobno krytyczny jest głośniejszy od zwykłego i nie da się go zignorować

    edit: wywołałem ten krytyczny czujką zalania i sam push na androidzie niczym się nie różni od zwykłego, może coś robię nie tak, ale z czujki zalania wywołałem krytyczny poprzez właściwości urządzenia>powiadomienia

    Edited by GanzConrad
    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • nie działa... 😒

    gdzie można znaleźć jakąś aktualną dokumentację do komend?

    czytałem gdzieś na forum, że trzeba się podłączyć do centralki po ssh.

    Link to comment
    Share on other sites

    • 0

    niestety nie mam, 

    Please login or register to see this code.

     

    u mnie cos takiego dziala, sprawdz jeszcze, czy  zamiast [1] = {201} wpiszesz poprostu {201} to pojdzie

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