{"id":23551134,"url":"https://github.com/octoblu/microblu_ws","last_synced_at":"2025-04-28T11:15:22.921Z","repository":{"id":13862123,"uuid":"16559914","full_name":"octoblu/microblu_ws","owner":"octoblu","description":"SkyNet Arduino Firmware","archived":false,"fork":false,"pushed_at":"2014-07-10T06:31:45.000Z","size":985,"stargazers_count":12,"open_issues_count":9,"forks_count":9,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-04-28T11:15:17.376Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://skynet.im","language":"Arduino","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/octoblu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-05T21:56:39.000Z","updated_at":"2019-08-13T15:34:57.000Z","dependencies_parsed_at":"2022-09-23T16:01:38.717Z","dependency_job_id":null,"html_url":"https://github.com/octoblu/microblu_ws","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octoblu%2Fmicroblu_ws","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octoblu%2Fmicroblu_ws/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octoblu%2Fmicroblu_ws/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octoblu%2Fmicroblu_ws/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/octoblu","download_url":"https://codeload.github.com/octoblu/microblu_ws/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251302782,"owners_count":21567601,"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":[],"created_at":"2024-12-26T10:18:33.485Z","updated_at":"2025-04-28T11:15:22.903Z","avatar_url":"https://github.com/octoblu.png","language":"Arduino","funding_links":[],"categories":[],"sub_categories":[],"readme":"#SKYNET MAIN HAS TRANSITIONED TO SOCKETIO 1.0, making this repo no longer functional. We may update in the future but for now please see our new MQTT client https://github.com/skynetim/skynetos_mqtt\n\n```\n SSSSS  kk                            tt\nSS      kk  kk yy   yy nn nnn    eee  tt\n SSSSS  kkkkk  yy   yy nnn  nn ee   e tttt\n     SS kk kk   yyyyyy nn   nn eeeee  tt\n SSSSS  kk  kk      yy nn   nn  eeeee  tttt\n                yyyyy\n```\n\nSkynet OS allows you to connect to Skynet.im via your Arduino and an Arduino ethernet or wifi shield (or any other device that properly implements the Client interface)\n * http://arduino.cc/en/Main/ArduinoEthernetShield\n * http://arduino.cc/en/Main/ArduinoBoardEthernet\n * http://arduino.cc/en/Main/ArduinoWiFiShield\n * https://www.sparkfun.com/products/12071\n * https://pinocc.io/\n * https://www.spark.io/\n\n##Videos\n* https://www.youtube.com/watch?v=oQzWKPER_ic\n* https://www.youtube.com/watch?v=ZJNlqZXbrbM\n\n##Install\n* Clone or download and unzip.\n* Rename the resulting folder to remove any - characters, and import library via Arduino menu Sketch-\u003eImport Library-\u003eAdd Library\n* After adding, you'll find File-\u003eExamples-\u003eSkynetClient\n\n##Examples\nFind full examples in the File-\u003eExamples-\u003eSkynetClient menu but generally, theres 3 ways to use: onMessage, log message, or bind.\n###onMessage\nThe simplest method is to register a function to be called when Skynet receives a message for your device:\n```cpp\nvoid setup()\n{\n  //...\n  skynetclient.setMessageDelegate(onMessage);\n}\nvoid loop(){\n  skynetclient.monitor();\n}\n```\n\nThen you can do whatever you want with that message. You can even grab a third party json parser, here we print it to console:\n```cpp\nvoid onMessage(const char * const data) {\n\n  Serial.print(\"Parse: \");\n  Serial.println(data);\n\n}\n```\n###Log\nEven simpler than that is to just send data to Skynet with the logMessage command: \n```cpp\nvoid loop(){\n  //Craft a string with your data like \"light\":\"423\",\"temp\":\"356\"\n  skynetclient.logMessage(message);\n}\n```\nNow you can subscribe to your data elsewhere. See the api page for rest examples with Rest, Javascript, and more! http://skynet.im/#api\n###Bind\nLastly, we've created the ability to bind 2 devices to just Skynet like a virtual serial cable. This is good for passing lots of information between devices without all the addressing overhead. You can read the data out of the Skynet Client just like a Serial device:\n```cpp\nvoid loop() {\n  skynetclient.monitor();\n  while(skynetclient.available())\n  \tSerial.print(skynetclient.read());\n}\n```\nThis can be seen in our Firmata sketch paired with the Node example in the node_client directory. (see also: https://www.npmjs.org/package/skynet-serial) NOTE: This sketch requires the new Arduino 1.5 IDE! http://arduino.cc/en/main/software\n\nLICENSE\n-------\n\n(LGPL License)\n\nCopyright (c) 2014 Octoblu \u003cinfo@octoblu.com\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctoblu%2Fmicroblu_ws","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foctoblu%2Fmicroblu_ws","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctoblu%2Fmicroblu_ws/lists"}