- Copy&paste into Start-up Script in the Conel router menu.
- Fill in your email and mobile number.
- Apply.
- Reboot the router.
Please refer to offical Conel documentation Commands&Scripts_v2_v3_EN
# run that in start-up script | |
# echo "Time UTC (GPS);Latitude;Longtitude;Altitude;Satellites;Fix;Speed over ground;Course over Ground;Date (GPS);Date (router);Time (Router)" > location_report.csv | |
import csv | |
import time | |
import datetime | |
import os.path | |
import os | |
csv_header_text = "Time UTC (GPS);Latitude;Longtitude;Altitude;Satellites;Fix;Speed over ground;Course over Ground;Date (GPS);Date (router);Time (Router); Cell Technology;Cell ID;Signal Strength;Signal Quality\n" |
Solution to disable and enable radio interfaces on Conel, SmartWorkx routers based on time.
Solution is to change the setting of the router enable/disable and reboot the router for the setting to be used by router.
I used two time constants:
TIME_ON
TIME_OFF
Script to copy paste into Configuration
-> Start-up Script
setting of the Conel router.
Here is the start-up
script, which in effect does check of 2 IP addresses
#!/bin/sh
#
# This script will be executed when PPP/WAN connection is established.
#
# Script for checking connection by two ping ip addresses
#
# Put checking ip addresses
{% comment %} | |
if combine_pretext is false, the text before the first <h6> will be shown above all tabs, otherwise added to the first tab | |
{% endcomment %} | |
{% assign combine_pretext = false %} | |
{% assign description = tabbed-description | default: product.description %} | |
{% if description contains "<h6>" %} | |
{% assign tab_heads = '' %} | |
{% assign tab_texts = '' %} | |
{% assign pretext = '' %} |
NTP_ENABLED=0 | |
NTP_PRIMARY_SERVER=pool3.ntp.org |
# created by Tomas Blaha - Dureco | |
# script check camera IP via ping every 30s | |
# if cannot ping it turn Off/On PoE for this camera only | |
# it does not cycle PoE on second PoE port | |
CAMERA_PING=192.168.1.22 | |
while true | |
do | |
ping -c 1 $CAMERA_PING |
import board | |
import busio | |
import digitalio | |
import time | |
uart = busio.UART(board.SARA_TX,board.SARA_RX,rts=board.SARA_RTS, cts=board.SARA_CTS, baudrate=115200,timeout=5) | |
To implement Cross-Origin Resource Sharing (CORS) on OpenWRT within Luci
is actually simple.
After very long search, I have found code in uHTTPd
on gitlab, which clearly shows option for CORS
. I haven't found anything, which would describe how to actually configure it.
There is nothing in uHTTPd documentation describing this functionally, /etc/config/uhttpd
does not mention anything either.
Luckily, you can have a look into how the process is starting and what parameters is checking.
doing
ffmpeg -f avfoundation -i "1" -vcodec libx264 -r 10 -tune zerolatency -b:v 500k -bufsize 300k -f rtp rtp://localhost:1234
ffmpeg -f avfoundation -i "1" -vcodec libx264 -r 10 -tune zerolatency -b:v 500k -bufsize 300k -f rtp udp://127.0.0.1:1234
ffmpeg -f avfoundation -i "1" -vcodec libx264 -r 10 -tune zerolatency -b:v 500k -bufsize 300k -f mpegts udp://127.0.0.1:1234
ffmpeg -f avfoundation -i "1" -vcodec libx264 -r 10 -pix_fmt uyvy422 -tune zerolatency -b:v 500k -bufsize 300k -f mpegts udp://192.168.88.38:1234