simo 2.2.12__py3-none-any.whl → 2.2.13__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of simo might be problematic. Click here for more details.

@@ -1,5 +1,5 @@
1
1
  import asyncio
2
- import cv2
2
+ #import cv2
3
3
  import base64
4
4
  import time
5
5
  from asgiref.sync import sync_to_async
@@ -39,8 +39,8 @@ class CamStreamConsumer(AsyncWebsocketConsumer):
39
39
  if not can_read:
40
40
  return self.close()
41
41
 
42
- self.video = cv2.VideoCapture(self.component.config['rtsp_address'])
43
- asyncio.create_task(self.send_cam())
42
+ # self.video = cv2.VideoCapture(self.component.config['rtsp_address'])
43
+ # asyncio.create_task(self.send_cam())
44
44
 
45
45
 
46
46
  async def send_cam(self):
@@ -48,7 +48,7 @@ class CamStreamConsumer(AsyncWebsocketConsumer):
48
48
  current_frame = 0
49
49
  while self.live:
50
50
  _, frame = self.video.read()
51
- _, jpeg = cv2.imencode('.jpg', frame)
51
+ #_, jpeg = cv2.imencode('.jpg', frame)
52
52
  current_frame += 1
53
53
  if current_frame >= every_frame:
54
54
  await self.send(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: simo
3
- Version: 2.2.12
3
+ Version: 2.2.13
4
4
  Summary: Smart Home on Steroids!
5
5
  Author-email: Simanas Venčkauskas <simanas@simo.io>
6
6
  Project-URL: Homepage, https://simo.io
@@ -34,7 +34,6 @@ Requires-Dist: redis ==3.5.3
34
34
  Requires-Dist: django-redis ==4.12.1
35
35
  Requires-Dist: webservices ==0.7
36
36
  Requires-Dist: numpy ==1.26.4
37
- Requires-Dist: opencv-python ==4.5.4.60
38
37
  Requires-Dist: geopy ==2.2.0
39
38
  Requires-Dist: requests ==2.26.0
40
39
  Requires-Dist: suntime ==1.2.5
@@ -10307,7 +10307,7 @@ simo/generic/forms.py,sha256=VzJJjZEuvpDEa2uObw9SkPmzQ4J_LkJ6UCNCoQImm0g,29427
10307
10307
  simo/generic/gateways.py,sha256=cc_q_g2HsI2_rWmr8yZ3spnMPwsgoYS5ApWRimc11wU,18831
10308
10308
  simo/generic/models.py,sha256=flpK2jsBFghrvRHzl6IKT-t3WZ-hNOj4ZP2vmBzx0K8,7657
10309
10309
  simo/generic/routing.py,sha256=elQVZmgnPiieEuti4sJ7zITk1hlRxpgbotcutJJgC60,228
10310
- simo/generic/socket_consumers.py,sha256=NfTQGYtVAc864IoogZRxf_0xpDPM0eMCWn0SlKA5P7Y,1751
10310
+ simo/generic/socket_consumers.py,sha256=K2OjphIhKJH48BvfFfoCOyCQZ1NmXb_phs6y1IP-qaQ,1757
10311
10311
  simo/generic/__pycache__/__init__.cpython-38.pyc,sha256=mLu54WS9KIl-pHwVCBKpsDFIlOqml--JsOVzAUHg6cU,161
10312
10312
  simo/generic/__pycache__/app_widgets.cpython-38.pyc,sha256=0IoKRG9n1tkNRRkrqAeOQwWBPd_33u98JBcVtMVVCio,2374
10313
10313
  simo/generic/__pycache__/base_types.cpython-38.pyc,sha256=ptw6axyAqemZA35oa6vzr7EihzvbhW9w7Y-G6kfDedU,555
@@ -10513,9 +10513,9 @@ simo/users/templates/invitations/expired_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCe
10513
10513
  simo/users/templates/invitations/expired_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10514
10514
  simo/users/templates/invitations/taken_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10515
10515
  simo/users/templates/invitations/taken_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10516
- simo-2.2.12.dist-info/LICENSE.md,sha256=M7wm1EmMGDtwPRdg7kW4d00h1uAXjKOT3HFScYQMeiE,34916
10517
- simo-2.2.12.dist-info/METADATA,sha256=H_OyTQyMFUXkAZxf_qvyTv_9ecYRdM1azzwJd5dkI-g,1881
10518
- simo-2.2.12.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
10519
- simo-2.2.12.dist-info/entry_points.txt,sha256=SJBxiDpH7noO0STxVI_eRIsGR-nLgdXXeqCDe8cXlbM,65
10520
- simo-2.2.12.dist-info/top_level.txt,sha256=GmS1hrAbpVqn9OWZh6UX82eIOdRLgYA82RG9fe8v4Rs,5
10521
- simo-2.2.12.dist-info/RECORD,,
10516
+ simo-2.2.13.dist-info/LICENSE.md,sha256=M7wm1EmMGDtwPRdg7kW4d00h1uAXjKOT3HFScYQMeiE,34916
10517
+ simo-2.2.13.dist-info/METADATA,sha256=Z6M5AAPNQXdgYtIFIw6AtPY4hFizxJxXGWnW4gpO3ww,1841
10518
+ simo-2.2.13.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
10519
+ simo-2.2.13.dist-info/entry_points.txt,sha256=SJBxiDpH7noO0STxVI_eRIsGR-nLgdXXeqCDe8cXlbM,65
10520
+ simo-2.2.13.dist-info/top_level.txt,sha256=GmS1hrAbpVqn9OWZh6UX82eIOdRLgYA82RG9fe8v4Rs,5
10521
+ simo-2.2.13.dist-info/RECORD,,
File without changes