Send Push Notifications From Your Raspberry Pi!

Поділитися
Вставка
  • Опубліковано 10 тра 2021
  • A colleague of mine is always doing IOT and server projects, he told me about a project known as gotify which is a self hosted, open source project for sending push notifications. This is a quick overview of how to use it on a raspberry pi with python and curl.
    Links:
    Github: github.com/gotify/server
    API Docs: gotify.net/api-docs
    APP: play.google.com/store/apps/de...
  • Навчання та стиль

КОМЕНТАРІ • 24

  • @tsbohc
    @tsbohc 2 роки тому +1

    Exactly the kind of solution I was looking for for my new home server. Thank you!

  • @Mr76Pontiac
    @Mr76Pontiac 2 роки тому +3

    I've been using other 3rd party software and services external to my home. I run basically a NOC here in my basement (A pair of Dell retired servers I got from work that have 40+ thread CPUs and three digit RAM sizes) and I would SO much rather have this moved in house. Wicked find. Weekend project!

  • @Motomurphy
    @Motomurphy 2 роки тому

    Great video! Thank you.

  • @gannouniafif7950
    @gannouniafif7950 3 роки тому +3

    nice work bro

  • @OLebongiler
    @OLebongiler 2 роки тому +1

    Hi, I just want to know something : which version of raspberry pi do you have and which operating system version do you use? Because It seems I can't send email from raspbian buster with my raspberry pi 3b+ (compatibility problem). Thanks for your answer! One "like" more for you!

    • @bluehippotech
      @bluehippotech  2 роки тому

      I'm using a Pi 4 and the newest raspberry pi OS.
      Sending emails from a pi is something different entirely from sending push notifications. If you want to send emails I'd recommend using python and SMTP and send through something like a Gmail or whatever kind of mail you have :)
      What compatability problem are you having?

  • @billboutchou1871
    @billboutchou1871 3 роки тому +1

    That is super cool. It is working on the RasPi. But for some reason, I don't receive any notification on my Android. Any suggestion? Thanks

    • @bluehippotech
      @bluehippotech  2 роки тому +2

      I would suggest to check within the gotify app, if you can see the messages in there. If you can, the issue will be with the phones battery optimization options or the notification settings. Hope this helps :D

  • @Worldexplorer2390
    @Worldexplorer2390 Рік тому

    Hello, did you upload a video where you sent information/ alerts to a website?

  • @daviddidas4266
    @daviddidas4266 2 роки тому +1

    Can i make this Work in the pico as Well? On it there is no os so i cant pip Install gotify

    • @bluehippotech
      @bluehippotech  2 роки тому +1

      Unfortunately not, the pico is a micro controller more similar to an arduino, whereas a normal pi is a full ARM based Linux computer.

  • @KisameSempai
    @KisameSempai Рік тому +1

    I understand this does not use gcm on Android for notification? How does it affect battery life?

    • @bluehippotech
      @bluehippotech  Рік тому +1

      That is true, unfortunately it functions by using a socket connection. I haven't noticed any battery impact though as it just sends a very small keep alive packet once in a while when inactive.

    • @lifeforce3451
      @lifeforce3451 Рік тому

      If you use it , in your self made android app like I did , you will just use a websocket listener, in a android service for exemple and then trigger an android notification , I do not see how this is differrent of what a gcm notification would work, and how it would have a differrent impact on battery life.

    • @KisameSempai
      @KisameSempai Рік тому

      @@lifeforce3451 I assume GCM is more optimised and being built in the OS probably optimised for deep sleep states

    • @lifeforce3451
      @lifeforce3451 Рік тому

      @@KisameSempai I think, the battery life depend on the code optimisation skills, I am using google maps api and it is just a classical REST service nothing differrent that you would do, Beside this no doubt, that google know better than us how to optimise apps on his own system ...

  • @lifeforce3451
    @lifeforce3451 Рік тому

    I do not find any documentation about how to listen Gotify notification from a self made android app , do you have sample codes ? Kotlin or even Java ?

    • @bluehippotech
      @bluehippotech  Рік тому

      Unfortunately not, that's something I never got around to needing :/

    • @lifeforce3451
      @lifeforce3451 Рік тому

      I found a code in python , it is a good beginning, but may I ask whay you cannot connect to the server from outside using the public ip ?

    • @bluehippotech
      @bluehippotech  Рік тому +1

      You have to open the ports in your router and have a static IP for that part to work :)

    • @lifeforce3451
      @lifeforce3451 Рік тому +1

      @@bluehippotech thanks for the hint, actualy you said it but you speak so fast I am not english speaker lol.

    • @bluehippotech
      @bluehippotech  Рік тому

      I'm not a native English speaker as well but I'm sorry if I spoke too fast