Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 1.24 KB

README.md

File metadata and controls

15 lines (10 loc) · 1.24 KB

tuya-WeatherStation

A python script based on tinytuya to extract current information from Tuya Weather stations. This was setup for a qxj device image

Requires one argument of a csv file containing information of the devices to be polled. The file must contain these fields, including headings: DeviceID,DeviceIP,DeviceKey,Version,OutFile.

Example:
DeviceID,DeviceIP,DeviceKey,Version,OutFile
asdf1234,192.168.1.123,lkjh9876,3.3,/var/tmp/tuya.txt

For details on obtaining the device details, refer to the tinytuya documentation.

The device IP can be either the hostname or the IP address. Just make sure the hostname is resolvable or that the IP won't change.

The other optional argument is -D or --daemon which will make the script run constantly, polling every 30 seconds. This is useful if you'd like to run as a systemd service (refer to the example)