Skip to content

Instantly share code, notes, and snippets.

@aslafy-z
aslafy-z / _huawei-sms-forwarder.md
Last active November 1, 2023 22:59
Forward SMS from Huawei LTE router to another number

Forward SMS from Huawei LTE router to another number

Dependencies

Usage

export HUAWEI_ROUTER_IP_ADDRESS="" # Router IP address
I (437) example: Opening file
I (457) example: File written
I (467) example: Renaming file
I (467) example: Reading file
I (467) example: Read from file: 'Hello SU04G!'
This line will be written into the log file, not to UART
@misaelnieto
misaelnieto / live-mjpeg-stream.py
Last active July 18, 2025 18:46
Streaming MJPEG over HTTP with gstreamr and python - WSGI version
#!/usr/bin/python
#based on the ideas from http://synack.me/blog/implementing-http-live-streaming
# Updates:
# - 2024-04-24: Apply suggestions from @Pin80
# Run this script and then launch the following pipeline:
# gst-launch videotestsrc pattern=ball ! video/x-raw-rgb, framerate=15/1, width=640, height=480 ! jpegenc ! multipartmux boundary=spionisto ! tcpclientsink port=9999
#updated command line
#gst-launch-1.0 videotestsrc pattern=ball ! videoconvert ! video/x-raw, framerate=15/1, width=640, height=480 ! jpegenc ! multipartmux boundary=spionisto ! #tcpclientsink port=9999
from multiprocessing import Queue