openc3-cosmos-demo 5.4.3.pre.beta0.20230214173509 → 5.5.0.pre.beta0.20230217010435
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/targets/INST/procedures/streaming.rb +15 -0
- data/tools/widgets/BigWidget/BigWidget.umd.min.js +2 -2
- data/tools/widgets/BigWidget/BigWidget.umd.min.js.map +1 -1
- data/tools/widgets/HelloworldWidget/HelloworldWidget.umd.min.js +1 -1
- data/tools/widgets/HelloworldWidget/HelloworldWidget.umd.min.js.map +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25e7b018ee3218db7470c473fbfa478e499ccb7fea02feb4894ce150240749bf
|
4
|
+
data.tar.gz: df9620b6b1e3031feb2a0719e66c994b765089d8b2cdc9eaf131b8e3124a4028
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ffafefc810f0ac537011e8c359389c0c76ad6272fb136a87e0b34040650b7b0158500414bffb671872d5071e4b6e8c6a5bc77d1fa9dc0320ad16553aed8160c
|
7
|
+
data.tar.gz: 5eec9a7aa5522ed86bc4113801b1458bbe0e7acd77497a6b59dc710ff8d2ba7da10ea4b02ff3f5f16e61b34d7ce6988bc642a256aa15e90c3df4571e2e9913ed
|
@@ -0,0 +1,15 @@
|
|
1
|
+
OpenC3::StreamingWebSocketApi.new do |api|
|
2
|
+
api.add(items: ['DECOM__TLM__INST__HEALTH_STATUS__TEMP1__CONVERTED', 'DECOM__TLM__INST__HEALTH_STATUS__TEMP2__CONVERTED'])
|
3
|
+
5.times do
|
4
|
+
puts api.read
|
5
|
+
end
|
6
|
+
api.remove(items: ['DECOM__TLM__INST__HEALTH_STATUS__TEMP1__CONVERTED'])
|
7
|
+
5.times do
|
8
|
+
puts api.read
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
# Warning this saves all data to RAM. Do not use for large queries
|
13
|
+
data = OpenC3::StreamingWebSocketApi.read_all(items: ['DECOM__TLM__INST__HEALTH_STATUS__TEMP1__CONVERTED', 'DECOM__TLM__INST__HEALTH_STATUS__TEMP2__CONVERTED'], end_time: Time.now + 10)
|
14
|
+
puts data.length
|
15
|
+
puts data[0].inspect
|