This directory contains examples implementation of libweave
device daemons.
make all-examples
make out/Debug/weave_daemon_light
set disable-user-service-publishing=no
in /etc/avahi/avahi-daemon.conf
sudo service avahi-daemon restart
Step 1
: enter the Weave API scope https://www.googleapis.com/auth/weave.app
and click to Authorize APIs
Step 2
: click Exchange authorization code for tokens
Step 3
:HTTP Method
: POST
Request URI
: https://www.googleapis.com/weave/v1/registrationTickets
Enter request body
: {"userEmail": "me"}
Send the request
Response
contains a new registrationTicket
resource.{ "userEmail": "user@google.com", "kind": "weave#registrationTicket", "expirationTimeMs": "1443204934855", "deviceId": "0f8a5ff5-1ef0-ec39-f9d8-66d1caeb9e3d", "creationTimeMs": "1443204694855", "id": "93019287-6b26-04a0-22ee-d55ad23a4226" }
registrationTicket
id.sudo out/Debug/weave_daemon_sample --registration_ticket=93019287-6b26-04a0-22ee-d55ad23a4226
Saving settings to /var/lib/weave/weave_settings_XXXXX_config.json Device registered: 0f8a5ff5-1ef0-ec39-f9d8-66d1caeb9e3d
cloud_id
in the configuration$ sudo grep "cloud_id" /var/lib/weave/weave_settings_[XXXXX]_config.json "cloud_id": 0f8a5ff5-1ef0-ec39-f9d8-66d1caeb9e3d
Your devices
Device details
page.Available commands
click _sample.hello
RUN COMMAND