streamdeck-toggl icon indicating copy to clipboard operation
streamdeck-toggl copied to clipboard

Updated Release for APIv8 Depreciation

Open angry-bender opened this issue 1 year ago • 16 comments
trafficstars

I noticed @matejcerny was able to upgrade the API to v9 2 days ago.

Just wondering if @tobimori can look to release an updated compiled version for the Elgato store before the upcoming V8 API depreciation on May16? As per PR #40 or if we should look to compile locally?

angry-bender avatar Apr 26 '24 06:04 angry-bender

Unfortunately the contact which @tobimori used for pushing updates left Elgato, so we need to find another way. Do you have any experience with the Elgato store?

matejcerny avatar Apr 26 '24 06:04 matejcerny

Has that been tested? I couldn't get your version to work locally. I did however find another fork that already did some v9 conversion, which does work (but has some issues with displaying the time, and could use some polishing): https://github.com/Barndtt/streamdeck-toggl

malde avatar Apr 26 '24 07:04 malde

Regarding the Elgato store - there is some information at https://docs.elgato.com/sdk/plugins/distribution.

Submit your plugins by sending an email to [email protected] with the following:

Download: A link to download the plugin.

User: A unique username or an email address.

Release Notes: What changed with the new version of your plugin? (features/bug fixes)

Support: Where can users contact you if they have problems? (email, contact form, etc.)

Category: Under which category do you want to have your plugin listed in the store (only one category is allowed at the moment).

jpcartailler avatar Apr 26 '24 11:04 jpcartailler

Unfortunately the contact which @tobimori used for pushing updates left Elgato, so we need to find another way. Do you have any experience with the Elgato store?

Me personally, no, I havent even compiled a plugin locally unfortunately, was more looking to scope out the requirements before May to see what I need to learn, or if we could get an updated release 🫠

angry-bender avatar Apr 26 '24 13:04 angry-bender

"back then" compilation was just making a zip file with the elgato cli, not sure if that has changed much.

tobimori avatar Apr 26 '24 13:04 tobimori

Sorry guys, as the change was not that big, I only tested it in postman. @malde You are right, I will try to fix it as soon as possible.

matejcerny avatar Apr 29 '24 06:04 matejcerny

This one has been tested and it works. Sadly, the issue with displaying the time persists. Can anyone investigate it 🙏? https://github.com/tobimori/streamdeck-toggl/pull/42

matejcerny avatar Apr 29 '24 08:04 matejcerny

Just by downloading your zip, and replacing the contents in the %appdata%\elgato\StreamDeck\Plugins\io.moeritz.streamdeck.toggl.sdplugin it appears to work for time tracking.

I don't see the time issues in my version of toggl 😊

Similar to other repos listed in this issue, might be good to update the readme with the instructions so people don't think they need to recompile 😊

Thank you

angry-bender avatar Apr 30 '24 00:04 angry-bender

This is how it looks like.

image

matejcerny avatar Apr 30 '24 06:04 matejcerny

Now that I see the full number (I didn't because font-size), I'm pretty sure that's just a local datetime conversion issue on the deck. Those 476,238 hours at least match the hours since 1.1.1970.

malde avatar Apr 30 '24 06:04 malde

Well, it looks like API does not send a duration anymore:

{
    ...
    "task_id": null,
    "billable": false,
    "start": "2024-04-30T06:43:55+00:00",
    "stop": null,
    "duration": -1,
    "description": "work",
    "tags": [],
    "tag_ids": [],
    "duronly": true,
    "at": "2024-04-30T06:43:56+00:00",
    "server_deleted_at": null,
    ...
    "permissions": null
}

matejcerny avatar Apr 30 '24 06:04 matejcerny

Works on my machine. @malde Can you please also test it? Thanks a lot! https://github.com/tobimori/streamdeck-toggl/pull/43

matejcerny avatar Apr 30 '24 07:04 matejcerny

Looks to be working for me 👍

malde avatar Apr 30 '24 08:04 malde

This is how it looks like.

image

Ahh I removed that text In the UI for my use case 😊. Looks to be an epoch time.

angry-bender avatar Apr 30 '24 09:04 angry-bender

I already fixed it in https://github.com/tobimori/streamdeck-toggl/pull/43 @angry-bender, can you please also test it? To check that there is no problem with the timezone.

matejcerny avatar Apr 30 '24 10:04 matejcerny

Looks to be right for me image

angry-bender avatar Apr 30 '24 10:04 angry-bender

Hopefully the last change: (https://github.com/tobimori/streamdeck-toggl/pull/45)

matejcerny avatar May 10 '24 09:05 matejcerny

Regarding the Elgato store - there is some information at https://docs.elgato.com/sdk/plugins/distribution.

Submit your plugins by sending an email to [email protected] with the following:

Download: A link to download the plugin.

User: A unique username or an email address.

Release Notes: What changed with the new version of your plugin? (features/bug fixes)

Support: Where can users contact you if they have problems? (email, contact form, etc.)

Category: Under which category do you want to have your plugin listed in the store (only one category is allowed at the moment).

@tobimori Can you please send it as an author? This is the bundle, just delete the .md extension (I was unable to upload it here without it)

io.moeritz.streamdeck.toggl.streamDeckPlugin.md

matejcerny avatar May 10 '24 09:05 matejcerny

Regarding the Elgato store - there is some information at https://docs.elgato.com/sdk/plugins/distribution.

Submit your plugins by sending an email to [email protected] with the following:

Download: A link to download the plugin.

User: A unique username or an email address.

Release Notes: What changed with the new version of your plugin? (features/bug fixes)

Support: Where can users contact you if they have problems? (email, contact form, etc.)

Category: Under which category do you want to have your plugin listed in the store (only one category is allowed at the moment).

@tobimori Can you please send it as an author? This is the bundle, just delete the .md extension (I was unable to upload it here without it)

io.moeritz.streamdeck.toggl.streamDeckPlugin.md

Looks like it's published https://marketplace.elgato.com/product/toggl-b040b224-5e61-4722-957f-91a662792441

angry-bender avatar May 10 '24 16:05 angry-bender

thanks all for your efforts with this and sorry I wasn't able to provide more assistance than this :)

tobimori avatar May 10 '24 16:05 tobimori