StravaUpload 1.0.0
See the version list below for details.
dotnet add package StravaUpload --version 1.0.0
NuGet\Install-Package StravaUpload -Version 1.0.0
<PackageReference Include="StravaUpload" Version="1.0.0" />
paket add StravaUpload --version 1.0.0
#r "nuget: StravaUpload, 1.0.0"
// Install StravaUpload as a Cake Addin #addin nuget:?package=StravaUpload&version=1.0.0 // Install StravaUpload as a Cake Tool #tool nuget:?package=StravaUpload&version=1.0.0
Strava upload
Strava Upload is s simple library to synchronize (create, update) activities on Strava with other activities. Currently it provides synchronization with Suunto Movescount moves that are provided by MovescountBackup library.
Version
- Version 1.0.0 - 2018-03-15
Getting Started/Installing
PM> Install-Package StravaUpload -Version 1.0.0
Project Description
The solution consists of the following projects:
StravaUpload.Lib is the main library containing
Uploader
class.StravaUpload.Console is just a sample that downloads Movescount data, store them on local dist and sync them with Strava.
StravaUpload.StravaUploadFunction Azure function that periodically downloads data from Movescount, store them in Azure Blob Storage and sync them with Strava.
StravaUpload.Lib.Spec TODO.
Prerequisites
- .NET Core 2.0.
- For more details about MovescountUpload check the project site
Configuration
StravaUpload.Lib
- StravaAccessToken - Name of the member whose data we want to get.
StravaUpload.Console
- MovescountAppKey - App key to be able to query Movescount API.
- MovescountUserKey - User key to be able to query Movescount API.
- MovescountUserEmail - User email to be able to query Movescount API.
- MovescountMemberName - Name of the member whose data we want to get.
- CookieValue - A cookie value that is needed to export GPX, TCX and other move files.
This value can be get by the following steps:
- Open console in your browser to se network requests.
- Login into Movescount.
- Select a requeset to
http://www.movescount.com/api/members/private/messages
. - Copy value of
Cookie
key in request header. It should start withASP.NET ...
.
- BackupDir - Directory where moves should be stored. Required for
FileSystemStorage
. - StorageConnectionString - Connection string to Azure Blob Storage. Required for
CloudStorate
. - ContainerName - Container name on Azure Blob Storage. Required for
CloudStorate
. - StravaAccessToken - Strava access token wit write rights.
StravaUpload.StravaUploadFunction
- MovescountAppKey - App key to be able to query Movescount API.
- MovescountUserKey - User key to be able to query Movescount API.
- MovescountUserEmail - User email to be able to query Movescount API.
- MovescountMemberName - Name of the member whose data we want to get.
- CookieValue - A cookie value that is needed to export GPX, TCX and other move files.
This value can be get by the following steps:
- Open console in your browser to se network requests.
- Login into Movescount.
- Select a requeset to
http://www.movescount.com/api/members/private/messages
. - Copy value of
Cookie
key in request header. It should start withASP.NET ...
.
- BackupDir - Directory where moves should be stored. Required for
FileSystemStorage
. - StorageConnectionString - Connection string to Azure Blob Storage. Required for
CloudStorate
. - ContainerName - Container name on Azure Blob Storage. Required for
CloudStorate
. - StravaAccessToken - Strava access token wit write rights.
- SendGridApiKey - API key for SendGrid mail service to be able to send status messages.
- EmailFrom - Email from.
- EmailTo - Email to.
StravaUpload.Lib.Uploader.cs
Uploader is the main class for activity synchronization. It downloads activities list from Strava, compare them with list of moves that should be added/updated. The first comparison is done by activity/move start/end datetime. If an acitvity is found in Strava, it is updated. If the activity is not found in Strava, fit, gpx or other activity data file is uploaded. It can happen that newly uploaded activity is already in Strava. This state is evaluated from the upload response. In this case, the activity is just updated.
Deployment
You can use this libraly to be run manually (StravaUpload.Console.Program.cs
) or you can create, e.g., a Azure function (StravaUpload.StravaUploadFunction.Function.cs
) or Lambda function on AWS, that can run periodically.
Contributing
Any contribution is welcomed.
Authors
- Marek Polak - Initial work - marazt
License
© 2018 Marek Polak. This project is licensed under the MIT License - see the LICENSE.md file for details.
Acknowledgments
- Enjoy it!
- If you want, you can support this project too.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Extensions.Configuration.CommandLine (>= 2.0.0)
- Microsoft.Extensions.Configuration.Json (>= 2.0.0)
- Microsoft.Extensions.Logging (>= 2.0.0)
- MovescountBackup (>= 1.0.2)
- Newtonsoft.Json (>= 10.0.3)
- StravaDotNet (>= 3.5.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.