- 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
Modify setting of the Blue Solar regulator from Victron for smooth operation with RDC, if not already done by Madison Technologies.
How to connect to the regulator are here: https://www.victronenergy.com/live/ve.direct:mpptprefs
##Short version:
| from pysnmp.hlapi import * | |
| import time | |
| import datetime | |
| # seconds between polls | |
| interval = 60 | |
| # IP address of the Cybertec router | |
| ip_address = '10.10.10.10' | |
| # while True: |
| import shutil | |
| import os | |
| import re | |
| source = os.walk("~/Downloads/camera/") | |
| destination = "~/Downloads/mobotix-pic/" | |
| # for files in source: | |
| for root, dirs, files in source: | |
| # print(files) | |
| for _file in files: |
Script reads BIN0 (binary input 0) on the Conel, SmartWorkx router and displaying it in a console. Can be looged in systemlog as well.
Little modification can be done to log it into the file, in CSV format.
#!/bin/ash
OLD0="-1"
SLEEP_TIME=1
while trueHere 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 addressesTo 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
| # 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 |
| {% 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 |