Skip to content
This repository has been archived by the owner on Nov 12, 2018. It is now read-only.

davemasse/webcam-archive-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

WordPress Webcam Archive Plugin Client

This sample client provides an example of how a webcam image and associated meta information can be sent to a WordPress blog that has the webcam-archive plugin installed.

Python Client

Copy settings_example.py to settings.py and modify as necessary.

Usage

client.py -f path/to/image.jpg [-d meta_dict] [-v]

Parameters

  • -f, --file

    The full path to a JPEG image.

  • -d, --data

    Optionally, a pickled Python dictionary or JSON-encoded string of meta key-value pairs. The keys must be defined in the WordPress plugin configuration ahead of time. When you create a meta property, a corresponding unique "short name" reference will be generated automatically. Use these "short names" as the keys in the dictionary that you provide on the command line in the script call.

  • -v, --verbose

    Verbose script output.

Example

client.py -f path/to/image.jpg -d '{"temperature": "79", "weather": "Sunny"}'

About

Command line client examples for the WordPress webcam archive plugin.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages