Tools collection
Safe standalone programs

No Installation required

(Latest update 2025-10-13


WebCmd  Command line/batch http/https execution [avoids using browser]
HttpPost  For Sonoff Basic DIY control
JSON converter  To reformat data for better visibility
Epoch date conversion tool Converts an Epoch date to a local ISO date
 


WebCmd

Command line/batch http/https execution

It makes 3 attempts to reach the destination
before failing, if there is a problem.

You can also use the program to view any web page,
to see the source.

HTML and JSON type data is formatted
 
Downloand WebCmd.exe

Note: to avoid unnecessary security popups
if using a PC right click the downloaded file, in the
general tab
click unblock before using

See unblock details





This is a command line tool which avoids the need for a browser.

It is primarily designed to operatea  device's Restful Api interface

1 - If used in a BAT file, this is how it works, with
a status.txt file predefined

@echo off
type nul > status.txt
WebCmd http://192.168.1.130/relay?state=0
echo %errorlevel%
if %errorlevel% == 1 type status.txt
pause


This tells the device to turn off, it doesn't give information back and if ok will simply return 0

If there is an error it will return 1 and the status.txt file is created containing the error and the message is displayed

2 - For the case some return information is expected this would work

@echo off
type nul > status.txt
WebCmd http://192.168.1.130/report
type status.txt
pause


In this instance it will show the expected result or an error message.

3. If you want the program to stop when an error occurs, use

@echo off
del status.txt
WebCmd http://192.168.1.130/relay?state=0
pause

The absence of a status.txt file will cause a popup window to appear with the error shown, if there is one, and execution will stop, otherwise it works normally.


HttpPost

Download Windows HttpPost.exe operating program
Download Windows HttpPost.zip operating program

Note: to avoid unnecessary security popups
if using a PC right click the downloaded file, in the
general tab
click unblock before using

See unblock details

HttpPost parameters and inputs:

Standard calling:

HttpPost IP address Deviceid Request

EG HttpPost 192.168.1.100 10006006f on
This will turn the device at that address on.

Parameters

Ip address: Address of the device on your network
DeviceId: the EWelink deviceID [not checked, so some value]
Request [optional]: can be: on, off, info, input, or omitted
    on: turn the device on
    off: turn the device off
    info: return a file, HttpPost.log with device details
    input: One of the other acceptable commands
        it requires a file named HttpPost.JSON to be present and
        which instructs the device to respond and create an HttpPost.log file with the result
        if the file is missing it will resort to info mode
    if omitted it checks the status of the device

Return code:
0: the device is off
1: the device is on
5: there is an error

10: the device is not responding

When switching on and off the program checks that the action succeeded and returns the current state, if it failed it returns 5

Note: Sonoff Basic R3 in DIY mode is a 4 state device. it can be used to detect if a circuit to which it is attached is on or off, as well as detecting devices it feeds are on or off.

EG HttpPost 192.168.1.100 10006006f
This will return error code 10 if the device is powered off, eg all devices on its circuit are off

If it returns 1 or 0 then the circuit to which it is attached is active.

The 1 or 0 indicates also the state of the output of the Sonoff is on or off, for any devices attached to it.

A sample BAT file

HttpPost 192.168.1.143 10006006d
echo %errorlevel%
HttpPost 192.168.1.143 10006006d on
echo %errorlevel%
HttpPost 192.168.1.143 10006006d
echo %errorlevel%
HttpPost 192.168.1.143 10006006d off
echo %errorlevel%
HttpPost 192.168.1.143 10006006d
echo %errorlevel%
pause

HttpPost 192.168.1.143 10006006d Info
type httpPost.log
echo %errorlevel%

pause


JSON

Download Windows JSON.exe Converter tool
Download Windows JSON.zip Converter tool

Note: to avoid unnecessary security popups
if using a PC right click the downloaded file, in the
general tab
click unblock before using

See unblock details

Tool to convert JSON strings into more readable format
Paste in the string to get the result


json convert

Open program
JSON converted

example conversions



Epoch

Download Windows Epoch Date Converter tool

Simple tool to convert Epoch date format dates
[used by Enphase and others] to ISO


Note: to avoid unnecessary security popups
if using a PC right click the downloaded file, in the
general tab
click unblock before using


See unblock details

prog       input

Paste in the date to be converted

If there are several dates, paste or enter a new date and click Convert




Security issues.


After downloading to its own folder

Right click and select Properties

Select Unblock -==>

Always scan for viruses

Run the executable










========================================

Sample unblock


unblock