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... - Навчання та стиль
Exactly the kind of solution I was looking for for my new home server. Thank you!
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!
Great video! Thank you.
nice work bro
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!
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?
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
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
Hello, did you upload a video where you sent information/ alerts to a website?
I'm not quite sure what you mean
Can i make this Work in the pico as Well? On it there is no os so i cant pip Install gotify
Unfortunately not, the pico is a micro controller more similar to an arduino, whereas a normal pi is a full ARM based Linux computer.
I understand this does not use gcm on Android for notification? How does it affect battery life?
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.
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.
@@lifeforce3451 I assume GCM is more optimised and being built in the OS probably optimised for deep sleep states
@@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 ...
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 ?
Unfortunately not, that's something I never got around to needing :/
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 ?
You have to open the ports in your router and have a static IP for that part to work :)
@@bluehippotech thanks for the hint, actualy you said it but you speak so fast I am not english speaker lol.
I'm not a native English speaker as well but I'm sorry if I spoke too fast