-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notify only 1 line #241
Comments
This is expected behavior. The condition
Issue |
it was already set to 0.... any sugestions? [21:00:07] <*push> +========================+===============================================+ |
If you're not even getting the first line sometimes, that's a different issue. I haven't used the Telegram integration, but my Pushover clients get everything they should. (My Could be Telegram rate limiting, for all I know. I do know you should change your Telegram secret, now that you've pasted it here. |
No problem. It’s a fake secret key. Do you know somethings free service like Telegram? |
Quick check of Telegram's FAQ says sending more than one message per second to a given chat is discouraged, and will eventually receive errors. So the rate-limit theory is indeed possible. I don't know your platform, and honestly haven't looked at notification services in years (since starting to use Pushover for my stuff), but znc-push's readme has a list of supported ones. If none of those suits you, but you can find another you like, adding support for a new service isn't too difficult. |
How can I setup notifications with this service? https://pushfleet.com |
I threw together a quick version of the module that supports Pushfleet: https://raw.githubusercontent.com/dgw/znc-push/e4d6e1f0f709960613d708337cdca903fb584fd9/push.cpp Haven't tested it, but it did compile on my ZNC server. App ID is baked-in; set znc-push's Let me know how it goes, and if all's good I'll flesh out the documentation and open a PR later this week. (If all is not good, I'll try to fix it tomorrow.) |
@deltagnan Any issues? Good to go? |
@dgw not yet. I don’t think I will be to able to do it 😅 |
@deltagnan To do what? All you should need is to download that version of the module code to your ZNC machine, I just need confirmation that it works. You don't need to do any code-related work! 😸 |
Ok i will do it tonight 😃 |
Forgot to mention that you'll need to tell ZNC to update the module, or restart ZNC, depending on version. Might as well write detailed instructions, as I don't know how experienced you are. (And it never hurts to over-document… well, almost never!) After you install the new Once you've set the service to |
wge etc... it's not in wrong place: /.znc/modules/push.so (i renamed old one in pushh.so) |
Sorry, I forgot there are two if-else trees. Fixed version, which should recognize the new service name: https://raw.githubusercontent.com/dgw/znc-push/428599026bc61aa0ab707ec8815dc0eadbc7f5f7/push.cpp |
ok, it's work but doesnt work sending notification [16:10:14] send prova |
Must I setup only target with my User Token? |
Yes, user token goes in I found another problem (finally broke down and built a local ZNC instance, which is why it took me so long to answer) and pushed another new version. Pushfleet doesn't like POST requests, which is apparently what znc-push sends by default. Fixed that: https://github.com/dgw/znc-push/blob/3e3d84f5a1ebe0a84a41b01b5676a2299d1cc5ca/push.cpp Haven't yet figured out how to completely suppress the This link will always refer to the latest revision of the pushfleet branch, as well: https://raw.githubusercontent.com/dgw/znc-push/add-pushfleet/push.cpp (or at least, it will until I eventually delete the branch) |
FYI, it might or might not work. The appid has disappeared from my Pushfleet account dashboard, and I'm done creating new ones until I hear back from support about why this keeps happening. Feel free to make your own appid and replace mine in the code if it doesn't work, @deltagnan. |
I dont know why but everytime i made an app on Pushfleet after few hours the app disappears from my app list... http://i67.tinypic.com/10gz5hf.jpg |
Well, it might be pointless to keep working on Pushfleet support in znc-push, if apps get removed every few hours. That's exactly what happened to my apps, too. I'll still give them until next week to answer, and might polish up the code and PR it anyway as a WIP, but it won't be of any practical use until this appid thing gets sorted. I thought maybe they had a bot scanning GitHub for appids and deleting apps whose keys were published (since mine were committed and pushed to a public repo). But I doubt you were publishing your keys, and they were deleted too. |
on
[15:25:41] <\d> test
[15:25:42] <\d> test 2
[15:25:47] <\d> test 3
I receive only one line
[\d: [\d] test
debug:
[15:25:40] <*push> service: telegram
[15:25:40] <*push> service_host: api.telegram.org
[15:25:40] <*push> service_url: /bot326151331:AAElXCttbr4thZkHQw1WsNdhJ4F1545ZdII/sendMessage
[15:25:40] <*push> service_auth:
[15:25:40] <*push> use_port: 443
[15:25:40] <*push> use_ssl: 1
[15:25:40] <*push> use_post: 1
[15:25:40] <*push> using libcurl
[15:25:40] <*push> curl: HTTP status code 200
The text was updated successfully, but these errors were encountered: