使用bark来通知你定时喝水

简介

ios 15 新增了一个siri自动播放通知的功能,配合airpods真的无敌

Bark 是一款 iOS 应用程序,可让您将自定义通知推送到您的 iPhone

所以两个配合下,只要你带着airpods,通过bark发送通知,你就可以及时听到bark发送过来的信息了

搭建bark

搭建很简单,我直接扔在k8s上了

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: bark
namespace: bark
spec:
selector:
matchLabels:
app: bark
serviceName: bakr
replicas: 1
template:
metadata:
labels:
app: bark
spec:
imagePullSecrets:
- name: regcred
containers:
- name: bark
image: registry.bboysoul.cn/finab/bark-server:v2.0.2
ports:
- containerPort: 8080
name: web
volumeMounts:
- name: data
mountPath: /data
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 20Gi
storageClassName: "managed-nfs-storage"

---

apiVersion: v1
kind: Service
metadata:
name: bark
namespace: bark
spec:
type: LoadBalancer

selector:
app: bark
ports:
- port: 80
targetPort: 8080


之后使用nginx去做转发就可以了

手机上下载bark app,使用curl

curl https://bark.bboysoul.cn/jsadhjahk/要喝水了宝贝

欢迎搭建使用我上面的bark服务器

欢迎关注我的博客www.bboy.app

Have Fun

欢迎关注我的其它发布渠道