Skip to content

grzes71/PyWeatherServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyWeatherServer

Fake weather service to test XML-RPC communication.

Usage:

python -m weatherserver [-h] [-l {DEBUG,INFO,WARNING,ERROR}] [-n NAME] [-s SERVER] [-p PORT] -d DATA

Arguments:

-h, --help            show this help message and exit
-d DATA, --data DATA  file with weather data
-l {DEBUG,INFO,WARNING,ERROR}, --loglevel {DEBUG,INFO,WARNING,ERROR}
                      logging level (default DEBUG)
-n NAME, --name NAME  name of the service
-s SERVER, --server SERVER
                      host to listen
-p PORT, --port PORT  port to listen

Sample .ini file with fake weather data is available:

; location config
[config]
port = 9000
host = localhost
name = Location name

; fake weather data
[site]
temperature = 7.4
humidity = 45
windspeed = 15.5
pressure = 1020

About

Fake weather service to test XML-RPC communication

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages