Skip to content

A python script based on tinytuya to extract current information from Tuya Weather stations (Setup for a qxj device)

License

Notifications You must be signed in to change notification settings

kiwi-cam/tuya-WeatherStation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

A python script based on tinytuya to extract current information from Tuya Weather stations (Setup for a qxj device)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages