-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnapcraft.yaml
executable file
·200 lines (150 loc) · 4.91 KB
/
snapcraft.yaml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
name: growx
version: '1.1'
base: core18
summary: GrowX the Opensource Greenhouse monitoring App
description: |
** GrowX **
GUI accessible on port 23232
GrowX allows to monitor your greenhouse using standard consumer sensors. Currently we are
supporting the Xiaomi MiFlora and the Xiaomi Mijia Hygrothermo v2 (LYWSDCGQ) but we are planning to expand the number of supported devices. The next version will contain a plant status
evaluation using camera and Artificial Intelligence.
We are currently expanding our APP, if you have any idea or suggestion feel free to contact us via mail or GitHub.
For ubuntu core devices:install snap bluetooth-autosatart to ensure bluetooth enabling at boot
This app requires bluetooth access
USAGE**
1 - install growx
"sudo snap install growx"
2 -connect if needed the proper interfaces
to use bluetooth
"sudo snap connect growx:bluetooth-control"
to use webcamera
"sudo snap connect growx:camera"
3- follow the youtube video:https://youtu.be/ZJ3xdABL6ic
confinement: strict
grade: stable
apps:
desktop-launch:
command: bin/desktop-launch
plugs:
- desktop
camera-server:
command: sh $SNAP/bin/runcamera.sh
plugs: [network, network-bind, mount-observe, network-observe, camera, system-observe, bluetooth-control, joystick, x11]
daemon: simple
environment:
"LD_LIBRARY_PATH": "$LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/lapack:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/blas"
webserver:
command: bin/runserver.sh
plugs: [network, network-bind, mount-observe, network-observe, system-observe, bluetooth-control]
daemon: simple
restart-condition: always
growx-daemon:
command: bin/run.sh
plugs: [network, network-bind, mount-observe, network-observe, system-observe, bluetooth-control]
daemon: simple
restart-condition: always
influxd:
command: bin/runinfluxd.sh
plugs: [network, network-bind]
daemon: simple
restart-condition: always
environment:
INFLUXDB_META_DIR: $SNAP_COMMON/meta
INFLUXDB_DATA_DIR: $SNAP_COMMON/data
INFLUXDB_DATA_WAL_DIR: $SNAP_COMMON/wal
INFLUXDB_CONFIG_PATH: $SNAP_COMMON/conf/influxdb.conf
INFLUXD_BOLT_PATH: $SNAP_COMMON/influxdbv2/influxd.bolt
INFLUXD_ENGINE_PATH: $SNAP_COMMON/influxdbv2/engine
influx:
command: usr/bin/influx
plugs: [network, network-bind]
default-client:
command: bin/defaultclient.sh
plugs: [network, network-bind]
run:
command: bin/run.sh
plugs: [network, network-bind, mount-observe, network-observe, system-observe, bluetooth-control]
info:
command: bin/info.sh
plugs: [network, network-bind, mount-observe, network-observe, system-observe, bluetooth-control]
parts:
ai:
plugin: nil
stage-packages:
- python3-numpy
- python3-opencv
pymongo-part:
plugin: python
python-version: python3
python-packages: [pymongo]
build-packages:
- python3-dev
- build-essential
influxdb-part:
plugin: python
python-version: python3
python-packages: [influxdb]
build-packages:
- python3-dev
- build-essential
paho-mqtt-part:
plugin: python
python-version: python3
python-packages: [paho-mqtt]
build-packages:
- python3-dev
- build-essential
flask-part:
plugin: python
python-version: python3
python-packages: [flask]
build-packages:
- python3-dev
- build-essential
bluepy:
plugin: python
python-version: python3
source: https://github.com/IanHarvey/bluepy
source-type: git
build-packages: [libglib2.0-dev]
miflora:
plugin: python
python-version: python3
python-packages: [miflora]
build-packages:
- python3-dev
- build-essential
influxdb:
plugin: dump
source:
- on amd64: https://dl.influxdata.com/influxdb/releases/influxdb_1.8.3_amd64.deb
- on arm64: https://dl.influxdata.com/influxdb/releases/influxdb_1.8.3_arm64.deb
- on armhf: https://dl.influxdata.com/influxdb/releases/influxdb_1.8.3_armhf.deb
- on i386: https://dl.influxdata.com/influxdb/releases/influxdb_1.8.3_i386.deb
stage-packages:
- libssl1.1
- libcurl3-dev
- libcurl4-openssl-dev
nodejs:
plugin: nodejs
source: .
node-code:
source: ./node-code/
plugin: dump
organize:
'*': bin/
python-libs:
source: ./lib/
plugin: dump
organize:
'*': /lib/python3.6/site-packages/
python-code:
source: ./pythoncode/
plugin: dump
organize:
'*': bin/pythoncode/
shscripts:
source: ./shscripts/
plugin: dump
organize:
'*': bin/