Robo3D / OctoPrint-FirmwareUpdater

Firmware updater with automatic updates check
3 stars 4 forks source link

Check version from github release #3

Open victorevector opened 7 years ago

victorevector commented 7 years ago

Check hex version based our repo's r elease version

Make compatible with C2 and R2 branches

victorevector commented 7 years ago

json response

[
  {
    "url": "https://api.github.com/repos/Robo3D/Marlin/releases/5309789",
    "assets_url": "https://api.github.com/repos/Robo3D/Marlin/releases/5309789/assets",
    "upload_url": "https://uploads.github.com/repos/Robo3D/Marlin/releases/5309789/assets{?name,label}",
    "html_url": "https://github.com/Robo3D/Marlin/releases/tag/beta",
    "id": 5309789,
    "tag_name": "beta",
    "target_commitish": "C2",
    "name": "beta",
    "draft": false,
    "author": {
      "login": "victorevector",
      "id": 10040882,
      "avatar_url": "https://avatars.githubusercontent.com/u/10040882?v=3",
      "gravatar_id": "",
      "url": "https://api.github.com/users/victorevector",
      "html_url": "https://github.com/victorevector",
      "followers_url": "https://api.github.com/users/victorevector/followers",
      "following_url": "https://api.github.com/users/victorevector/following{/other_user}",
      "gists_url": "https://api.github.com/users/victorevector/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/victorevector/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/victorevector/subscriptions",
      "organizations_url": "https://api.github.com/users/victorevector/orgs",
      "repos_url": "https://api.github.com/users/victorevector/repos",
      "events_url": "https://api.github.com/users/victorevector/events{/privacy}",
      "received_events_url": "https://api.github.com/users/victorevector/received_events",
      "type": "User",
      "site_admin": false
    },
    "prerelease": false,
    "created_at": "2017-01-27T19:45:24Z",
    "published_at": "2017-01-30T23:55:56Z",
    "assets": [
      {
        "url": "https://api.github.com/repos/Robo3D/Marlin/releases/assets/3091521",
        "id": 3091521,
        "name": "Marlin-1.0.0.ino.hex",
        "label": null,
        "uploader": {
          "login": "victorevector",
          "id": 10040882,
          "avatar_url": "https://avatars.githubusercontent.com/u/10040882?v=3",
          "gravatar_id": "",
          "url": "https://api.github.com/users/victorevector",
          "html_url": "https://github.com/victorevector",
          "followers_url": "https://api.github.com/users/victorevector/followers",
          "following_url": "https://api.github.com/users/victorevector/following{/other_user}",
          "gists_url": "https://api.github.com/users/victorevector/gists{/gist_id}",
          "starred_url": "https://api.github.com/users/victorevector/starred{/owner}{/repo}",
          "subscriptions_url": "https://api.github.com/users/victorevector/subscriptions",
          "organizations_url": "https://api.github.com/users/victorevector/orgs",
          "repos_url": "https://api.github.com/users/victorevector/repos",
          "events_url": "https://api.github.com/users/victorevector/events{/privacy}",
          "received_events_url": "https://api.github.com/users/victorevector/received_events",
          "type": "User",
          "site_admin": false
        },
        "content_type": "application/octet-stream",
        "state": "uploaded",
        "size": 211539,
        "download_count": 0,
        "created_at": "2017-01-30T23:56:18Z",
        "updated_at": "2017-01-30T23:56:20Z",
        "browser_download_url": "https://github.com/Robo3D/Marlin/releases/download/beta/Marlin-1.0.0.ino.hex"
      }
    ],
    "tarball_url": "https://api.github.com/repos/Robo3D/Marlin/tarball/beta",
    "zipball_url": "https://api.github.com/repos/Robo3D/Marlin/zipball/beta",
    "body": "beta"
  }
]