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 APIsStep 2: click Exchange authorization code for tokensStep 3:HTTP Method: POSTRequest URI: https://www.googleapis.com/weave/v1/registrationTicketsEnter request body: {"userEmail": "me"}Send the requestResponse 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 devicesDevice details page.Available commands click _sample.helloRUN COMMAND