{"id":14963865,"url":"https://github.com/mydevicesiot/cayennejs","last_synced_at":"2025-10-25T03:30:49.055Z","repository":{"id":57195099,"uuid":"74326324","full_name":"myDevicesIoT/cayennejs","owner":"myDevicesIoT","description":"Cayenne API for Node.JS","archived":false,"fork":false,"pushed_at":"2023-02-27T19:30:57.000Z","size":71,"stargazers_count":12,"open_issues_count":5,"forks_count":12,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-02-05T17:12:14.050Z","etag":null,"topics":["arduino","esp8266","iot","lorawan","mqtt","nodemcu","raspberrypi"],"latest_commit_sha":null,"homepage":"https://mydevices.com/cayenne","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/myDevicesIoT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-21T04:32:36.000Z","updated_at":"2019-07-23T04:42:23.000Z","dependencies_parsed_at":"2024-06-21T04:28:05.326Z","dependency_job_id":null,"html_url":"https://github.com/myDevicesIoT/cayennejs","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.2142857142857143,"last_synced_commit":"f2121008868b426335c2fdd8edf79d45f96fa7a6"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myDevicesIoT%2Fcayennejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myDevicesIoT%2Fcayennejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myDevicesIoT%2Fcayennejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myDevicesIoT%2Fcayennejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myDevicesIoT","download_url":"https://codeload.github.com/myDevicesIoT/cayennejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238071156,"owners_count":19411600,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","esp8266","iot","lorawan","mqtt","nodemcu","raspberrypi"],"created_at":"2024-09-24T13:32:15.240Z","updated_at":"2025-10-25T03:30:48.731Z","avatar_url":"https://github.com/myDevicesIoT.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cayenne IoT Node.JS API\n\nUse this library to quickly connect your device to Cayenne Cloud. For more information see our [API Documentation](http://www.cayenne-mydevices.com/docs/#bring-your-own-thing-api-mqtt-messaging-topics)\n\n```\nnpm install cayennejs\n```\n\n```javascript\nvar Cayenne = require('cayennejs');\n\n// Initiate MQTT API\nconst cayenneClient = new Cayenne.MQTT({\n  username: \"foobar\",\n  password: \"secret\",\n  clientId: \"thing-id\"\n});\n\ncayenneClient.connect((err, mqttClient) =\u003e {\n  // dashboard widget automatically detects datatype \u0026 unit\n  cayenneClient.kelvinWrite(3, 65);\n\n  // sending raw values without datatypes\n  cayenneClient.rawWrite(4, 123);\n\n  // subscribe to data channel for actions (actuators)\n  cayenneClient.on(\"cmd9\", function(data) {\n    console.log(data);\n  });\n\n});\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmydevicesiot%2Fcayennejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmydevicesiot%2Fcayennejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmydevicesiot%2Fcayennejs/lists"}