Webos-renew-dev icon indicating copy to clipboard operation
Webos-renew-dev copied to clipboard

session time is not resting on TV

Open abdulazizalmass opened this issue 2 years ago • 7 comments

Thanks for the amazing tip.

After following the steps, this was received {"result":"success","errorCode":"200","errorMsg":"GNL"} .

The session was not extended as tested on the developer mod app from LG tv. By any chance, did this happen to you ?

reverse engineering might work through ssh with localhost:9922/status but will consider this after your response

abdulazizalmass avatar Jan 12 '23 10:01 abdulazizalmass

Thanks for the amazing tip.

After following the steps, this was received {"result":"success","errorCode":"200","errorMsg":"GNL"} .

The session was not extended as tested on the developer mod app from LG tv. By any chance, did this happen to you ?

reverse engineering might work through ssh with localhost:9922/status but will consider this after your response

Same here.

licensed avatar Sep 03 '23 13:09 licensed

@SR-Lut3t1um @abdulazizalmass I also get the same issue, timer not updating on the Developer Mode app. This might only be a cosmetic thing?

xcorp avatar Nov 10 '23 21:11 xcorp

@SR-Lut3t1um @abdulazizalmass I also get the same issue, timer not updating on the Developer Mode app. This might only be a cosmetic thing?

After installing the latest code update from LG, LG developers added an amazing feature to extend the session to 999 hours. For now, this is a good alternative to try.

Best of luck 🤞

abdulazizalmass avatar Nov 11 '23 06:11 abdulazizalmass

@SR-Lut3t1um @abdulazizalmass I also get the same issue, timer not updating on the Developer Mode app. This might only be a cosmetic thing?

After installing the latest code update from LG, LG developers added an amazing feature to extend the session to 999 hours. For now, this is a good alternative to try.

Best of luck 🤞

Yeah, but I'm using this with https://github.com/SLG/tv-service so would be nice to not have to bother all together :)

xcorp avatar Nov 11 '23 12:11 xcorp

Sorry for the late respone. In theory it should still work, even if the timer is not correctly shown on the TV. You can verify the timer with https://developer.lge.com/secure/CheckDevModeSession.dev?sessionToken={your_token}. If that fails, you will need to redo the process. So using the actual script might be a more stable solution, keep in mind it will need to start the TV.

SR-Lut3t1um avatar Nov 14 '23 14:11 SR-Lut3t1um

Yeah, seems to reset fine, many thanks :)

xcorp avatar Nov 14 '23 16:11 xcorp

I seems the time counter doesn't update in the Developer Mode App until you turn off the TV and also unplug it. So, indeed, querying the CheckDevModeSession endpoint is the most fiable way.

By the way, you can also query the session token, after Connecting TV and PC, just executing:

ares-novacom --device tv --run "cat /var/luna/preferences/devmode_enabled"

posti85 avatar Jan 10 '24 19:01 posti85

I just run into this, I can also confirm that I cannot see the timer reset on the TV even when the CheckDevModeSession endpoint confirms that it has been reset. I'll need to test unplugging the tv, but I'm a bit worried that the tv might just reset all the apps installed when its counter goes to zero, regardless of what the remote API endpoint says.

Anyway, I created a small Cloudflare Worker to reset the counter. You can run it for free (don't remember the free tier limit on Cloudflare but it's high), you just need to add a trigger to schedule the execution as often as you want (I set it once a week) and add an LG_API_KEY secret variable with your key under Variables and Secrets in the Cloudflare dashboard.

You can also reset the counter manually by calling the worker url.

async function fetchLGapi(api_key){
  let res = await fetch(`https://developer.lge.com/secure/ResetDevModeSession.dev?sessionToken=${api_key}`);
  return res;
}

export default {

  async fetch(request, env, ctx) {
    return await fetchLGapi(env.LG_API_KEY);
  },

  async scheduled(event, env, ctx) {
    return ctx.waitUntil(fetchLGapi(env.LG_API_KEY));
  }

};

gfrancesco avatar Oct 29 '24 16:10 gfrancesco