{"id":16812188,"url":"https://github.com/flet/dailyconnect","last_synced_at":"2025-08-18T05:16:01.508Z","repository":{"id":22174721,"uuid":"25506581","full_name":"Flet/dailyconnect","owner":"Flet","description":"Node JavaScript API to access data from dailyconnect.","archived":false,"fork":false,"pushed_at":"2015-03-21T08:13:51.000Z","size":232,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T04:22:49.302Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Flet.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-10-21T06:39:22.000Z","updated_at":"2024-12-10T18:38:11.000Z","dependencies_parsed_at":"2022-08-20T21:10:55.817Z","dependency_job_id":null,"html_url":"https://github.com/Flet/dailyconnect","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Flet/dailyconnect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flet%2Fdailyconnect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flet%2Fdailyconnect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flet%2Fdailyconnect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flet%2Fdailyconnect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Flet","download_url":"https://codeload.github.com/Flet/dailyconnect/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flet%2Fdailyconnect/sbom","scorecard":{"id":50913,"data":{"date":"2025-08-11","repo":{"name":"github.com/Flet/dailyconnect","commit":"a093bdeb7e2f6943eb7f20b36dc6474bb0654898"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/19 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: ISC License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}}]},"last_synced_at":"2025-08-14T23:40:57.865Z","repository_id":22174721,"created_at":"2025-08-14T23:40:57.865Z","updated_at":"2025-08-14T23:40:57.865Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270946087,"owners_count":24672894,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-13T10:20:59.704Z","updated_at":"2025-08-18T05:16:01.488Z","avatar_url":"https://github.com/Flet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM](https://nodei.co/npm/dailyconnect.png?compact=true)](https://nodei.co/npm/dailyconnect/)\n[![Build Status](https://travis-ci.org/Flet/dailyconnect.svg?branch=master)](https://travis-ci.org/Flet/dailyconnect)\n![Dependencies](https://david-dm.org/flet/dailyconnect.png)\n\ndailyconnect\n============\n\nNode JavaScript API to access data from Daily Connect. I built this mainly for myself so I could get pictures of my son  pushed via a slackbot. :) Feel free to use and enhance as needed (patches always welcome).\n\n\nAPI\n----\nAll functions accept [Error-First callbacks](http://fredkschott.com/post/2014/03/understanding-error-first-callbacks-in-node-js/) with the response data as the second argument.\n\n**var dc = new DailyConnect(user, pass)**\ninstantiate a new instance with the supplied user/pass\n\n**dc.login(callback)**\nCall the login service. This call must be performed before using any other functions. Returns error as first argument to the `callback` if login failed.\n\n**dc.getUserInfo(callback)**\nReturn the info of the logged in user.\nSample response:\n```javascript\n{\n  \"Name\": \"John Doe\",\n  \"Ut\": 1,\n  \"Email\": \"fake@fakey.nope\",\n  \"created\": \"5/12/2014\",\n  \"myKids\": [{\n    \"Name\": \"Baby Doe\",\n    \"Created\": 140512,\n    \"Contacts\": [{\n      \"phone\": \"8005551212\",\n      \"name\": \"Some name-  home\"\n    }],\n    \"PhotoInd\": 2,\n    \"Id\": 1234567890123456,\n    \"Parents\": [{\n      \"Name\": \"John Doe\",\n      \"Ut\": 1,\n      \"Email\": \"fake@fakey.nope\",\n      \"Id\": 6543210987654321\n    }, {\n      \"Name\": \"Jane Doe\",\n      \"Ut\": 1,\n      \"Email\": \"alsofake@fakey.nope\",\n      \"Id\": 1231231231231231\n    }, {\n      \"Name\": \"Great Preschool Room 1\",\n      \"Ut\": 10,\n      \"Email\": \"fakeschool@fakey.nope\",\n      \"Id\": 9879879879879879,\n      \"cc\": [6767676767676767]\n    }, {\n      \"Name\": \"Great Preschool-SomeCity\",\n      \"Type\": 2,\n      \"ccId\": 6767676767676767,\n      \"Id\": 6767676767676767\n    }],\n    \"Boy\": true,\n    \"Allergies\": \"\",\n    \"Photo\": 5656565656565656,\n    \"BDay\": \"10/26/2011\"\n  }],\n  \"nws\": true,\n  \"Id\": 6543210987654321\n}\n```\n\n  **dc.getKidSummary(kidId, callback)**\nReturn a summary for the specified kidId for today.\n\n**dc.getKidSummaryByDay(kidId, inDate, callback)**\nReturn a summary for the specified kidId for a specific date.\n\nkid summary Sample output:\n```javascript\n{\n  \"summary\": {\n    \"totalSleepDuration\": 130,\n    \"timeOfLastSleeping\": \"10/22/2014 14:53\",\n    \"kidId\": 1234567890123456,\n    \"timeOfLastFood\": \"10/22/2014 11:33\",\n    \"nrOfSleep\": 1,\n    \"longuestSleepDuration\": 130,\n    \"day\": 141022,\n    \"timeOfLastDropOff\": \"10/22/2014 7:45\",\n    \"isSleeping\": false\n  }\n}\n```\n\n**dc.getKidStatus(kidId, callback)**\nReturn the summary and a detailed list of events for the specified kidId for today.\n\n**dc.getKidStatusByDay(kidId, inDate, callback)**\nReturn the summary and a detailed list of events for the specified kidId a specific date\n\nkid status sample output:\n```javascript\n{\n  \"summary\": {\n    \"totalSleepDuration\": 130,\n    \"timeOfLastSleeping\": \"10/22/2014 14:53\",\n    \"kidId\": 1234567890123456,\n    \"timeOfLastFood\": \"10/22/2014 11:33\",\n    \"nrOfSleep\": 1,\n    \"longuestSleepDuration\": 130,\n    \"day\": 141022,\n    \"timeOfLastDropOff\": \"10/22/2014 7:45\",\n    \"isSleeping\": false\n  },\n  \"staff\": [],\n  \"users\": [{\n    \"Name\": \"Great Preschool Room 1\",\n    \"Ut\": 10,\n    \"Email\": \"fakepreschoo@fakey.nope\",\n    \"Id\": 9879879879879879,\n    \"cc\": [6767676767676767]\n  }],\n  \"ts\": 166481228455,\n  \"kidId\": 1234567890123456,\n  \"pdt\": 141022,\n  \"list\": [{\n    \"By\": 9879879879879879,\n    \"Kid\": 1234567890123456,\n    \"Ptm\": 1010,\n    \"e\": \"10/22/2014 09:45\",\n    \"Cat\": 101,\n    \"Txt\": \"Baby Doe  is dropped off\",\n    \"ms\": 166464259139,\n    \"lId\": 145293057051,\n    \"Utm\": 945,\n    \"isst\": 1,\n    \"Id\": 1509600413,\n    \"Pdt\": 141022\n  }, {\n    \"By\": 9879879879879879,\n    \"Kid\": 1234567890123456,\n    \"Ptm\": 1010,\n    \"e\": \"10/22/2014 10:01\",\n    \"Cat\": 700,\n    \"Txt\": \"Baby Doe  is on the playground \",\n    \"ms\": 166464248036,\n    \"lId\": 145293043669,\n    \"Utm\": 1001,\n    \"isst\": 1,\n    \"Id\": 1496860453,\n    \"Pdt\": 141022\n  }, {\n    \"By\": 9879879879879879,\n    \"Ptm\": 1253,\n    \"e\": \"10/22/2014 10:50\",\n    \"ms\": 166474032684,\n    \"n\": \"Apple bobbing- the kids used tongs to bob for apples. This activity worked on hand-eye coordination and fine motor skills.\",\n    \"lId\": 145302826419,\n    \"isst\": 1,\n    \"Pdt\": 141022,\n    \"Kid\": 1234567890123456,\n    \"Cat\": 700,\n    \"Txt\": \"Baby Doe  is working on curriculum \",\n    \"Utm\": 1050,\n    \"Id\": 1466741737\n  }, {\n    \"By\": 9879879879879879,\n    \"Ptm\": 1242,\n    \"e\": \"10/22/2014 11:33\",\n    \"ms\": 166473351097,\n    \"n\": \"Mashed potatoes, chicken gravy, steamed veggies, pears, milk\",\n    \"lId\": 145302146106,\n    \"isst\": 1,\n    \"Pdt\": 141022,\n    \"Kid\": 1234567890123456,\n    \"Cat\": 200,\n    \"Txt\": \"Baby Doe  ate Lunch\",\n    \"Utm\": 1133,\n    \"Id\": 1472060549\n  }, {\n    \"By\": 9879879879879879,\n    \"Kid\": 1234567890123456,\n    \"Ptm\": 1243,\n    \"e\": \"10/22/2014 12:43\",\n    \"Cat\": 501,\n    \"Txt\": \"Baby Doe  starts sleeping\",\n    \"ms\": 166473418212,\n    \"lId\": 145302215272,\n    \"Utm\": 1243,\n    \"isst\": 1,\n    \"Id\": 1515291700,\n    \"Pdt\": 141022\n  }, {\n    \"By\": 9879879879879879,\n    \"Ptm\": 1412,\n    \"e\": \"10/22/2014 14:12\",\n    \"ms\": 166478753386,\n    \"lId\": 145307545600,\n    \"isst\": 1,\n    \"Pdt\": 141022,\n    \"Photo\": 1508541205,\n    \"Kid\": 1234567890123456,\n    \"Cat\": 1000,\n    \"Txt\": \"Photo\",\n    \"Utm\": 1412,\n    \"Id\": 1508541205\n  }, {\n    \"By\": 9879879879879879,\n    \"Kid\": 1234567890123456,\n    \"Ptm\": 1431,\n    \"e\": \"10/22/2014 14:31\",\n    \"Cat\": 1100,\n    \"Txt\": \"Please bring more diapers by next Wednesday. \",\n    \"ms\": 166479897971,\n    \"lId\": 145308694731,\n    \"Utm\": 1431,\n    \"isst\": 1,\n    \"Id\": 1466362335,\n    \"Pdt\": 141022\n  }, {\n    \"By\": 9879879879879879,\n    \"Ptm\": 1453,\n    \"d\": 130,\n    \"e\": \"10/22/2014 14:53\",\n    \"ms\": 166481228455,\n    \"lId\": 145310026415,\n    \"isst\": 1,\n    \"Pdt\": 141022,\n    \"Kid\": 1234567890123456,\n    \"Cat\": 502,\n    \"Txt\": \"Baby Doe  napped (2h10m)\",\n    \"Utm\": 1243,\n    \"Id\": 1488191935\n  }],\n  \"deleted\": [],\n  \"all\": true\n}\n```\n\n**dc.getPhoto(photoId, callback)**\nReturn a binary buffer containing the specified photo. the `buffer.type` value will be set to the content-type of the image (for example: `image\\jpeg`).\n\n\n\nExample\n----------\nThis example takes a username and password as arguments and returns the latest status for all children.\n```javascript\nvar DailyConnect = require('dailyconnect')\nvar async = require('async')\nvar dateformat = require('dateformat')\n\nvar user = process.argv[2]\nvar pass = process.argv[3]\n\nvar mydc = new DailyConnect(user, pass)\n\nasync.waterfall([\n  mydc.login.bind(mydc),\n  mydc.getUserInfo.bind(mydc),\n  gatherKidsLatestStatus\n], completed)\n\nfunction gatherKidsLatestStatus(userInfo, cb) {\n\n  var latestKidEvents = []\n  async.each(userInfo.myKids, getLatestEvent, function (err) {\n    if (err) {\n      return cb(err)\n    }\n    cb(null, latestKidEvents)\n  })\n\n  function getLatestEvent(kid, cb) {\n    mydc.getKidStatus(kid.Id, function (err, kidStatus) {\n      if (err) {\n        return cb(err)\n      }\n\n      var status = 'no activity'\n      var ts = ''\n      if (kidStatus.list.length \u003e 0) {\n        var entry = kidStatus.list[kidStatus.list.length - 1]\n        status = entry.Txt\n        ts = entry.e\n      }\n\n      latestKidEvents.push(dateformat(ts, 'isoDateTime') + ': ' + kid.Name + ': ' + status)\n      cb(null)\n    })\n  }\n}\n\nfunction completed(err, result) {\n  if (err) {\n    console.error(err)\n  }\n  console.log(result)\n}\n\n```\n\noutput:\n```javascript\n[ '2014-12-17T19:55:00: Some Baby: Some Baby napped (1h41m)',\n  '2014-12-17T15:15:00: Other Baby: Other Baby ate a snack' ]\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflet%2Fdailyconnect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflet%2Fdailyconnect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflet%2Fdailyconnect/lists"}