Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Paul Massendari
    @paulmassen
    Sure, will do
    Paul Massendari
    @paulmassen
    And I have tons of other ideas for the doc: I'm thinking of a check that will send me the most popular tv show this week every week with their rating, a check to see if an artist has announced new concert dates etc. I will PR this too if you want.
    Peter Demin
    @peterdemin
    Sounds cool!
    Paul Massendari
    @paulmassen
    Hi @peterdemin , do you have any idea why I'm not able to display the value from Stash ?
    checks:
      - name: Fetch Rating TV Shows
        url: https://www.imdb.com/chart/tvmeter
        transform:
          - css-all: .imdbRating>strong
          - text
        notify:
          - stash:
              rating: '{{ lines }}'
    
      - name: Popular TV Shows
        url: https://www.imdb.com/chart/tvmeter
        transform:
          - css-all: .titleColumn>a
          - text
          - jinja: |
               Popular TV shows this week
               {{ lines.0.lower()|title}} - {{ stash.rating|first }}
               {{ lines.1.lower()|title }} - {{ stash["rating"][0] }}
               {{ lines.2.lower()|title }}  - {{ stash["rating"].0 }}
               {{ lines.3.lower()|title }}
               {{ lines.4.lower()|title }}
               {{ lines.5.lower()|title }}
               {{ lines.6.lower()|title }}
               {{ lines.7.lower()|title }}
               {{ lines.8.lower()|title }}
               {{ lines.9.lower()|title }}
               {{ lines.10.lower()|title }}
        notify:
          - telegram
    I'm only able to display the whole list with {{ stash["rating"] }} but I can't access any individual value
    Paul Massendari
    @paulmassen
    I thought maybe it is stored as text, and not list, so I tried to use {% set foo = stash["rating"].split(',') %} {{ foo[0] }}with no success
    Paul Massendari
    @paulmassen
    ah, got it working by using substring, but it does not feel very clean !
    - name: Popular TV Shows
        url: https://www.imdb.com/chart/tvmeter
        transform:
          - css-all: .titleColumn>a
          - text
          - jinja: |
               📼 Popular TV shows this week 📼
               {{ lines.0.lower()|title}} - ⭐ {{ stash["rating"][2:5] }}
               {{ lines.1.lower()|title }} - ⭐ {{ stash["rating"][9:12] }}
               {{ lines.2.lower()|title }} - ⭐ {{ stash["rating"][16:19] }}
               {{ lines.3.lower()|title }} - ⭐ {{ stash["rating"][23:26] }}
               {{ lines.4.lower()|title }} - ⭐ {{ stash["rating"][30:33] }}
               {{ lines.5.lower()|title }} - ⭐ {{ stash["rating"][37:40] }}
               {{ lines.6.lower()|title }} - ⭐ {{ stash["rating"][44:47] }}
               {{ lines.7.lower()|title }} - ⭐ {{ stash["rating"][51:54] }}
               {{ lines.8.lower()|title }} - ⭐ {{ stash["rating"][58:61] }}
               {{ lines.9.lower()|title }} - ⭐ {{ stash["rating"][65:68] }}
               {{ lines.10.lower()|title }} - ⭐ {{ stash["rating"][72:75] }}
        notify:
          - telegram
    Paul Massendari
    @paulmassen
    I noticed that, on this line: https://github.com/kibitzr/kibitzr/blob/d1005a1cb5df27c566c9ce6913cebc26ddf92dc3/kibitzr/notifier/mailgun.py#L31 replacing text:reportwith html:reportwill send instead an html email
    It could be nice to be able to select this somewhere in the conf, for some data-heavy check, it is nice to send the data nicely formatted
    Peter Demin
    @peterdemin
    Makes sense to me. Let me get back to you next week.
    RYeah Sh
    @pantchox
    hi, its this project active?
    Peter Demin
    @peterdemin
    Hi @pantchox , yes, it is. But I'm somewhat slow to answer these days.
    @paulmassen, regarding HTML reports for mailgun. I don't have a mailgun account configured atm. Would you mind contributing this option to the mailgun notifier conf and verifying it works as expected?
    Paul Massendari
    @paulmassen
    @peterdemin Sure, let me try and I will propose a PR
    Peter Demin
    @peterdemin
    Thanks! :thumbsup:
    RYeah Sh
    @pantchox
    @peterdemin I am working on a web app that one of its features are real time push notifications for desktop and mobile. do you think there is enough demend for Kibitzr users for that feature?
    Peter Demin
    @peterdemin
    Hi, thanks for asking! What's the benefit of push notification over a chat message, in Telegram, for example?
    RYeah Sh
    @pantchox
    yeah
    my solution is web app so you just use a browser
    you don't need to install any dedicated app like telegram. also inviting others is easy and you don't need to force them to download an app, example telegram
    RYeah Sh
    @pantchox
    sorry let me rephrase. when you use a chat app, if you already telegram user or pushbullet that is fine. i am offering another alternative that is more light weight, easy API integration and can be accessed from a browser. you can also login from the device you prefer to receive push notifications and the same goes for other users you invite them for the channel. the channel is same as a chat channel but with the API it becomes some kind of a backlog of messages where you can trigger the push nofitication on the device of your choice
    Peter Demin
    @peterdemin
    Sounds interesting. Could be useful for security-inclined folks.
    RYeah Sh
    @pantchox
    @peterdemin can you explain what do you mean by saying security-inclined?
    Peter Demin
    @peterdemin
    Is this a webhook?
    RYeah Sh
    @pantchox
    to access the API yes.
    Peter Demin
    @peterdemin
    Ah, I mean you don't need to have a chat account to receive notifications
    RYeah Sh
    @pantchox
    you do need
    Peter Demin
    @peterdemin
    Ah, I see. Anyways, you can use Zapier notifier as an example: https://github.com/kibitzr/kibitzr/blob/master/kibitzr/notifier/zapier.py
    I'll be happy to review the PR.
    RYeah Sh
    @pantchox
    should be the same since its a webhook
    super thx
    Peter Demin
    @peterdemin
    :thumbsup:
    RYeah Sh
    @pantchox
    but for Zapier and IFTTT to trigger the notification you do need to download their app :)
    Peter Demin
    @peterdemin
    Well, not sure if Zapier has an app - it's more like SaaS routing for webhooks. Can be configured to send an email for example.
    RYeah Sh
    @pantchox
    with my web app you don't need. there is also a nice way to install the web app on your Android mobile so it becomes a native app just like any other app but it is more advanced and not related to this discussion.
    @peterdemin yes but if you want to be notified by push notification it can be done by downloading their app and the app that will show the push notification will be Zapier/IFTTT