Tuya Smart is a China-based IoT provider. Tuya Smart provides all kinds of smart home gadgets and gizmos. A cloud support plat form exists as well as an app for Android and an app for IOS.
Here I have an example of the cloud API which can be queried from any device that has internet. The variables are passed as headers in each request.
A simple C# WinForms desktop application to send a text email/send an attachment email.
This application uses no special class. The default mail classes are used namely:
using System.Net.Mail;
using System.Net.Mime;
The email text is sent in HTML format:
var mailMessage = new MailMessage{ From = new MailAddress(Vars._mailFrom),//email Subject = "C# WinForms Test Mail", Body = "<h1>Hello</h1>" + "<h2>C# WinForms Test Mail</h2>", IsBodyHtml = true,};
EZVIZ offers a Real Time Streaming Protocol ( RTSP ) option as well as their desktop and mobile applications. Video can be streamed using any software that allows RTSP streaming ( for example VLC Player ).
The network URL looks like this:
rtsp://admin:verification code@camera LAN IP:554/H.264
Example:rtsp://admin:123456@10.0.0.15:554/H.264
In VLC Player choose Media > StreamNext choose Network and fill in the URL then click on Play.Example screens. Note that there is no sound.
Eskom has a load shedding (Rolling blackouts) API we can utilize. I still need to test the accuracy of the results as well as the functionality of the API.
The good news is that unlike Eskom’s electricity supply this API is always on and actually works (with HTTPS as well)
It looks like Eskom’s software team can do a half decent job. I realize that it’s a bit unfair to give them so much grief. The real issue here is corrupt officials in high places stealing from the people as much as they can before their clocks expire.
There is no excuse… the reality is that we are stuck between a rock and a hard place. I can only hope that the future generations are able to see it for what it is and focus on building South Africa instead of destroying and stealing what others are so desperately trying to improve…
One thing is for sure.. at this rate we are truly moving in the direction of retardation (backwards motion) there’s no middle ground or some type of constant speed things are literally degrading. It’s honestly terrifying to witness this as a youngster.
At least we are not a war torn country like many in the middle east so perhaps I can give credence to the South African police and intelligence agency’s no matter how corrupt they have become they have not stooped to the level of warmongers just yet… (I suppose elite gangsters and mobsters would be a better suited description at this time)
Below is an example of the API I have rewritten in markdown format. A simple four step process to get some usable data.
For years consumers have been asking for steam to add a feature to all them to shutdown their computers after downloading games or after a certain period of time.
This is very useful especially for students who have limited capped internet access due to financial reasons… etc… especially in this day and age where the average game can be roughly up to 120GB!! in size… downloading is a long and tedious task especially in 3rd world country’s…
Enter the C# tray app SteamShutdown. This lightweight app allows users to shutdown, hibernate or put the PC to sleep once all downloads have completed.
The app was designed with the logic being:
Setup downloads at 12am.
Choose an option shutdown, hibernate or sleep.
Go to bed without worrying about bandwidth costs and electricity costs 🙂
When managing multiple servers it’s always a good idea to have a centralised control panel monitoring/logging all the services running. In this example concept I have a WPF(Windows Presentation Foundation) C# page. This works well with 4K screens as well as lower resolutions.
The panel allows control and logging/messaging features.
The Maduino Zero SIM808 GPS Tracker is an IOT (Internet of things) Solution based on the 32-bit Atmel’s SAMD21 MCU and GPRS/GSM GPS module SIM808. It intergrates a micro Controller ATSAMD21G18, GRRS/GSM module SIM808, which is the upgrade version of SIM900, power management and storage, to make the SIM808 GPS Tracker ready for IOT projects such as smart-home, outdoor monitoring, shared bicycle, etc. The Marduino Zero SIM808 GPS Tracker based on the Arduino, users can program it with Arduino IDE, which is very easy especially for the none-programmers.
This is the V3.4 version, Note that to ensure the module starts up right, a lipo battery is needed to power up the Maduino Zero SIM808 GPS tracker V3.4.
Quick Spec
AT Input Voltage: 3.4-4.2V
Microcontroller: ATSAMD21G18, 32-Bit ARM Cortex M0+
Clock Speed: 48 MHz
Micro SIM connector
Integrated Power Control System
AT command interface with “auto baud” detection Quad-band: 850/900/1800/1900Mz
Send and receive GPRS data (TCP/IP, HTTP, etc.)
GPS L1 C/A code
22 tracking /66 acquisition channels
Tracking: -165 dBm
Cold starts: -148 dBm
Time-To-First-Fix:Cold starts-32s (typ.), Hot starts-1s (typ.),Warm starts-5s (typ.)
The 150M Wireless Lite-N USB Module PW-MN427 is designed to provide a high-speed and unrivaled wireless performance for your devices, with a faster wireless connection, you can get a better WLAN/Internet experience. The PW-MN427 150M Wireless Lite-N USB Module complies with IEEE 802.11b, 802.11g and 802.11n standards. It can perfectly interoperate with all of the 802.11b/g/n devices.
The PW-MN427´s auto-sensing capability allows high packet transfer rate of up to 150Mbps for maximum throughput. Additionally, it supports WPS (Wi-Fi Protected Setup) function, which can help you create a wireless connection with effortless security setup, to prevent outside intrusion and protect your personal information from being exposed.
Features
150Mbps wireless transmission rate
Specific PIN for Radio On/Off, LED, and WPS (Wi-Fi Protected Setup)
Supports 64/128-bit WEP, complies with 128 bit WPA standard(TKIP/AES), supports MIC, IV Expansion, Shared Key Authentication, IEEE 802.1X
Phone the device. Answer means there is power and there is signal. The sim is working.
Checks
1. Reboot the device via SMS
2. Check the data.
3. Ask Cale to send server settings.
4. Hard reboot device.
5. Still not working? Double check signal quality, Double check GPS interval, consider replacing sim card, consider replacing antennas.
B.
No answer means the sim card is either Faulty, the device is in a bad signal area, the device is off, the device is cross border, there is no sim in the device. Ask Cale to send server settings. Phone the client to find out if the vehicle is driving.
Checks
1. No power, no 3G, no sim?
2. Is the device under a building or in a bad signal area?
3. Is the vehicles battery flat? Is the device disconnected from the battery?
4. Is the fuse blown?
5. Do the antennas need to be replaced?
6. Replace entire device.
**LOG AND SEND THE NUMBERS OT THE VEHICLES THAT COME ONLINE AFTER THE REBOOT T0 CALE
**LOG OFFLINES
**CHECK IF THE VEHICLE IS NOT IN A BUILDING WHEN BUSY WITH OFFLINES
Hard Drive and SD Errors
General
Device will have no recordings for days when the vehicle was off.
Device will have no recordings if the HDD is problematic.
If there is old firmware send cale a request to update it.
If there is no snapshot plan send a request to Russell.
The SD card mirrors the HD drive.
If the problem persists at this point inform Cale.
Checks
1. Reboot device
2. Check the firmware
3. Check the recording status
4. Check that the recording plan is set up.
Extended
If you still can’t get recordings it could be because of the following:
HDD has faulty sectors on the disk.
Faulty HDD circuit board or disk motor failure.
Double check recording plan not setup in settings, check recording plan. Reboot the device, check the firmware if it’s not the latest request an update from cale, disk check error, if the problem persists after this then request assistance from Paul.
Make sure you keep a list of the HDD/SD errors reported on the drives. Try to write down as many useful facts as possible.
Example.
Write Down
WHATS THE FIRMWARE & BIOS?
IS THE SD/HDD ON ZERO?
ARE THERE RECORDINGS ON DRIVES?
ARE THE RECORDINGS SMOOTH OR FRAGMENTED?
HOW OLD IS THE HDD? HOW LONG HAS IT BEEN IN THE FIELD?
Snapshot Protocols
If no snapshots are picked up for a device……
1) Check data is on device or online status. It will only have snapshots of online
2) Send a reboot message, and wait 60-120mins to check if snapshots appear
3) Check SD1 recording status….. SD1 must be active and there must be recording on SD1. If there is no recording then teh SD card might be faulty
4) At this point, ask Russell to confirm snapshot is configured correctly
5) If SD1 faulty, ask Cale to format SD card.
6) Once formatted, start at 1) again.
7) If no luck, then lodge with Software to investigate further.