{"id":27122218,"url":"https://github.com/vmapps/polargraphs","last_synced_at":"2025-04-07T11:26:20.249Z","repository":{"id":230784090,"uuid":"197638110","full_name":"vmapps/polargraphs","owner":"vmapps","description":"Dynamic graphs from Polar A360 tracker","archived":false,"fork":false,"pushed_at":"2019-07-18T21:13:50.000Z","size":3437,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-03-31T23:23:04.669Z","etag":null,"topics":["graphs","javascript","plotlyjs","polar"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/vmapps.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}},"created_at":"2019-07-18T18:32:20.000Z","updated_at":"2024-03-31T23:23:08.029Z","dependencies_parsed_at":"2024-03-31T23:23:07.902Z","dependency_job_id":"09a6075b-9004-440c-b4bb-5ff4b3fe0b4d","html_url":"https://github.com/vmapps/polargraphs","commit_stats":null,"previous_names":["vmapps/polargraphs"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmapps%2Fpolargraphs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmapps%2Fpolargraphs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmapps%2Fpolargraphs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmapps%2Fpolargraphs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vmapps","download_url":"https://codeload.github.com/vmapps/polargraphs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247642320,"owners_count":20971874,"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":["graphs","javascript","plotlyjs","polar"],"created_at":"2025-04-07T11:26:19.421Z","updated_at":"2025-04-07T11:26:20.232Z","avatar_url":"https://github.com/vmapps.png","language":"HTML","readme":"# polargraph\nTransform data from Polar A360 tracker into HTML dynamic graphs\n\n## Purpose \nPurpose of this very simple tool is to :\n- read JSON data from Polar A360 tracker \n- add data to web graph generated with Ploty javascript module\n- let user add/remove new data to the existing graph\n\nThis small project has been first been developed to complete web\ninterfaces proposed by Polar.\n\n## Requirements\nFollowing javascript modules are required :\n- [jQuery](https://jquery.com/)\n- [jQuery UI](https://jqueryui.com/)\n- [Plotly.js](https://plot.ly/javascript/)\n\n## Get data from Polar Flow\nFirst of all, you will have to get data from A360 tracker. As the \nactivity tracker is able to synchronize with Polar Flow website,\nit is easier to extract data as JSON file directly from ths website:\n- log into [Polar Flow](https://flow.polar.com/) using Chrome\n- go to `Agenda` menu, then `Activity` submenu\n- in the meantime, open `Developer Tools` console in Chrome\n- open `Network` tab in the developer console\n- in Polar Flow, click on left arrow to select yesterday (do not use the calendar)\n- in developer console, right-click on URL displayed in network tab\n- select `Copy` and `Copy link address`\n- now paste into Chrome URL bar to get JSON data with regards to yesterday\n- save JSON data into `data` local directory as `/data/\u003cyear\u003e/\u003cmonth\u003e/\u003cyear\u003e-\u003cmonth\u003e-\u003cday\u003e.json`\n\nNote that URL to get will look like this:\n```\nhttps://flow.polar.com/api/activity-timeline/load?day=2019-07-08\u0026maxSampleCount=200\n```\n\n## Run web server\nOnce you have retrieved all JSON data, run a simple web server by running that commad into root directory:\n```\n$ python -m SimpleHTTPServer 80\n```\nNow, go to the browser and type `http://127.0.0.1/polargraph-heart-rate.html` to see the graph.\n\n## User interface\nOn top-left corner, you could click on calendar button to graph data from a specific day:\n- first click on a day will add data to the graph\n- second click on already selected day will remove data from the graph\n\nOn top-right corner, you will find out Plotly graph toolbar.\n\n## Sample \n![polargraph-heart-rate](samples/polargraph-heart-rate.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmapps%2Fpolargraphs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvmapps%2Fpolargraphs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmapps%2Fpolargraphs/lists"}