Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lametric Time cloud support fixed #293

Merged
merged 7 commits into from
Sep 14, 2020
Merged

Lametric Time cloud support fixed #293

merged 7 commits into from
Sep 14, 2020

Conversation

caronc
Copy link
Owner

@caronc caronc commented Sep 9, 2020

Description:

Related issue (if applicable): #290
Attempting to make the mode=cloud work :)

Cloud Mode

  1. Sign Up and login to the developer webpage https://developer.lametric.com.
  2. Create a Indicator App if you haven't already done so from here.
    • There is a great official tutorial on how to do this here
  3. Make sure to set the Communication Type to PUSH

When you've completed, the site would have provided you a PUSH URL that looks like this:

  • https://developer.lametric.com/api/v1/dev/widget/update/com.lametric.{app_id}/{app_version}

You will need to record the {app_id} and {app_version} to use the cloud mode.

The same page should also provide you with an Access Token. It's approximately 86 characters with two equal (=) characters at the end of it. This becomes your {app_access_token}. Here is an example of what one might look like:

  • K2MxWI0NzU0ZmI2NjJlZYTgViMDgzMjk2OOTW5mZTIxZThjODRiN8YjlmZjRmNTc4NDVhJzk0RiNjNh0EyKWW==

The syntax for the cloud mode is:

  • lametric://{app_access_token}@{app_id}/{app_version}?mode=cloud

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • No lint errors (use flake8)
  • 100% test coverage

@caronc caronc force-pushed the lametric-cloud-support branch from 14f2597 to d6fafd0 Compare September 9, 2020 21:48
@codecov-commenter
Copy link

codecov-commenter commented Sep 9, 2020

Codecov Report

Merging #293 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #293   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           83        83           
  Lines         9940      9962   +22     
  Branches      1614      1621    +7     
=========================================
+ Hits          9940      9962   +22     
Impacted Files Coverage Δ
apprise/plugins/NotifyLametric.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 490d51d...157e5ba. Read the comment docs.

@caronc caronc merged commit 49faa9a into master Sep 14, 2020
@caronc caronc deleted the lametric-cloud-support branch September 20, 2020 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants