【问题标题】:pushbullet API takes 30 minutes to deliver notepushbullet API 需要 30 分钟才能交付注释
【发布时间】:2019-10-07 18:47:57
【问题描述】:

在 Raspberry pi 上使用 Python 2.7,我创建了一个 Pushbullet 帐户并将其安装在我的 iPhone 7 (iOS 12.4) 上。在这种情况下,我使用了来自 https://github.com/rbrcsk/pushbullet.py 的 github 库,但我也注意到使用其他方法的这种滞后。

代码如下:

#!/usr/bin/env python

from pushbullet import Pushbullet

PB_API_KEY = 'o.00000000000000000000000000000000'

print("creating pb object with key:")

try:
   pb = Pushbullet(PB_API_KEY)
except Exception as e:
   print (str(e))
   exit()

print("pushing note:")

try:
   push = pb.push_note('important subject','this is a test')
except Exception as e:
   print (str(e))
   exit()

print ("done")

发生的情况是,当我运行此脚本时,它会打印“用键创建 pb 对象:”,然后它似乎挂起。 30 分钟(左右)后,通知出现在我的手机上,我看到接下来的两个打印行已经出现并且脚本已经完成。

我急于开始使用 Pushbullet 从我的 PI-GPIO 家庭警报器推送警报通知。它似乎有效,但为什么会有很大的滞后?

【问题讨论】:

    标签: python-2.7 pushbullet


    【解决方案1】:

    此问题与我的路由器中不正确的 ipV6 设置有关(例如,由于某种原因启用了它)。这给了我一堆网关和 DNS 地址,这些地址在我发出请求之前必须超时。所以 - 这个问题与 pushbullet 无关。

    很抱歉这个误报。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-05-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-28
      • 2019-06-10
      • 1970-01-01
      相关资源
      最近更新 更多