Reconnect Macro Wifi for FireTV

tanutanu

Active member
your new version of the macro works on first try, if it keeps that way its the perfect solution for me.

THX tanutanu

Maybe you upload it (in Macrodroid) so others can find your template in the app search, i know a few ppl who would like this macro
You're welcome and it sounds great to hear you like it:)
Well, I made some macro and released as templates. After polishing up, maybe adding extra fetuses like additional devices support and so on, I might push it into the template store. You can find my macros at the store with these keywords, 1tm or tanutanu.
 

tanutanu

Active member
In the long run the macro did not work proberly
Sorry, I don't catch what you meant without the macro activity information exactly.
Can you show me your MD system log when the problems happened. I might say something if you let me see it.

Please remember any macro what people made are no warranties and no guarantees basically. You can modify the macro as you want freely, even if just a fixing a issue and/or tweaking for your environment. I hadn't test it on Fire TV yet, and I don't want to reproduce any issues in my environment, because I don't need the macro for me.
 

jake85

New member
Sorry, I don't catch what you meant without the macro activity information exactly.
Can you show me your MD system log when the problems happened. I might say something if you let me see it.

Please remember any macro what people made are no warranties and no guarantees basically. You can modify the macro as you want freely, even if just a fixing a issue and/or tweaking for your environment. I hadn't test it on Fire TV yet, and I don't want to reproduce any issues in my environment, because I don't need the macro for me.
does this help?
 

Attachments

  • screenshot.png
    screenshot.png
    867.2 KB · Views: 5

tanutanu

Active member
does this help?
Probably the macro stops as the designed logic. It repeats reconnecting 100 times only to avoid infinite loop, even though still failure. I don't know your Fire TV had already connected your network again and the reason why the macro recognized your Fire TV was not connected. Simply reconnect manually when the macro stopped, otherwise change the while loop condition to be infinite, I don't recommend though.
Pleased note that 100 times x 20 seconds is over 30 minutes. Your network might have hidden problem to prevent it from reconnecting, or the Fire TV itself might not detect the wifi connection status usually. I highly recommend you to connect via wired, not wireless as I do. It doesn't have any problem. The adapter cost 15 euros or so. Pay money sometimes save time.
 
Last edited:

tanutanu

Active member
does this help?
The stopwatch might be over 1 minutes. Please reset it manually.
I noticed another macro to execute ram cleaner. It has possibility not only to make MD background loop slower but also terminated finally.
In my opinion, such apps are meaningless, especially for Android devices because having no huge swap, virtual memory in the storage, only having small cache as a part of work ram.

And one more thing, MD is NOT designed for Fire TV use, for generic Android devices. Therefore, it has possibility to happen unexpected behaviors. When the stick is sleeping, I don't know what happens. That is at your own risk. I'm not a MD support guy, nor an Amazon customer service rep, a MD user same as you.
 
Last edited:

jake85

New member
The stopwatch might be over 1 minutes. Please reset it manually.
I noticed another macro to execute ram cleaner. It has possibility not only to make MD background loop slower but also terminated finally.
In my opinion, such apps are meaningless, especially for Android devices because having no huge swap, virtual memory in the storage, only having small cache as a part of work ram.

And one more thing, MD is NOT designed for Fire TV use, for generic Android devices. Therefore, it has possibility to happen unexpected behaviors. When the stick is sleeping, I don't know what happens. That is at your own risk. I'm not a MD support guy, nor an Amazon customer service rep, a MD user same as you.
any idea to just make my simple script more simply, its only thing which works no matter what even if it only covers above 3min connection lost so far (this often i repeated the commands) and i know i dont need the first trigger....
 

Attachments

  • reconnect first try.jpeg
    reconnect first try.jpeg
    91.2 KB · Views: 4

tanutanu

Active member
any idea to just make my simple script more simply, its only thing which works no matter what even if it only covers above 3min connection lost so far (this often i repeated the commands) and i know i dont need the first trigger....
I don't think it can cover 3 minutes because it repeats 3 times to reconnect, totally 1 minute = 3 x 20 seconds.
It is almost same as do it by yourself manually when you noticed.
If you want to simplify it, just display a popup alert on the middle of your TV when the network connection lost. It helps you reconnect manually.
 

tanutanu

Active member
any idea to just make my simple script more simply, its only thing which works no matter what even if it only covers above 3min connection lost so far (this often i repeated the commands) and i know i dont need the first trigger....
If you mean just making it shorter, start over fitst step. You just put 2 statements, Wait and Wifi reconnect actions into the while loop. Be careful for infinite loop.
 

jake85

New member
I don't think it can cover 3 minutes because it repeats 3 times to reconnect, totally 1 minute = 3 x 20 seconds.
It is almost same as do it by yourself manually when you noticed.
If you want to simplify it, just display a popup alert on the middle of your TV when the network connection lost. It helps you reconnect manually.
you cant see the full macro in the screen.... 3 min 40 sec so far
 

tanutanu

Active member
you cant see the full macro in the screen.... 3 min 40 sec so far
It doesn't the matter how long it is. The answer is the same thing. You can use while loop as its exact manner I had already explained 2 or 3 times.
I understand it is complicated for you to write in English but it is same for me. You didn't write what you want enough, so I can't imagine that, I'm always trying though.
 

jake85

New member
It doesn't the matter how long it is. The answer is the same thing. You can use while loop as its exact manner I had already explained 2 or 3 times.
I understand it is complicated for you to write in English but it is same for me. You didn't write what you want enough, so I can't imagine that, I'm always trying though.
ok sorry i would be happy if had a working 5 min loop instead of writing the same commands that often
 

420

Active member
ok sorry i would be happy if had a working 5 min loop instead of writing the same commands that often
You can get a working loop, it is very simple, the only thing is that you have to actually put the actions inside the loop and not above it, like tanutanu already told you.

I've attached an example for an infinite loop (aslong as wifi is not connected), and one that will run for max 5 minutes.
 

Attachments

  • Screenshot_20211013-182653.png
    Screenshot_20211013-182653.png
    134.8 KB · Views: 4
  • Screenshot_20211013-183315.png
    Screenshot_20211013-183315.png
    154.5 KB · Views: 4

tanutanu

Active member
So be back to #2;) The screenshot has wrong trigger and 20 ms wrong wait time instead of 20 seconds though. 100 times loop means 33.33 minutes. It's enough for OP and if too much, just reduce to 15 times loop(20s x 15 = 300s / 60s = 5m).
@420, thanks for your help:)
 
  • Like
Reactions: 420

jake85

New member
thx @ both of you i found one issue... the stupid stick deactivated wifi according to MD thats why it dont work all the time because if the stick deactivated wifi its too stupid to reactivate... why deactivate in the first place.... no idea
 

tanutanu

Active member
thx @ both of you i found one issue... the stupid stick deactivated wifi according to MD thats why it dont work all the time because if the stick deactivated wifi its too stupid to reactivate... why deactivate in the first place.... no idea
If MD can't your wifi enabled, you might not install its helper app. I'm not sure the helper can work on Fire TV and really need it, but it has possibly to solve the issue.
I also suspect process management of the stick. Basically it has enough reason to kill all processes when it entered sleep mode. So MD stops and need 3 or more minutes to come back to normal running mode. If so, your wifi connection should be back and no longer execute the macro until next disconnection. However, even if so, your stick is already back at the moment and don't have to do anything before next disconnection.

If your MD can enable the wifi without problem when you test it, simply add wifi configure - enable wifi trigger in the macro on #33.
 

jake85

New member
thx i give it a try but enable wifi in extra macro? because if its in trigger it does not enable wifi aswell or?
 
Last edited:

tanutanu

Active member
thx i give it a try but enable wifi in extra macro? because if its in trigger it does not enable wifi aswell or?
After enabling wifi, if Fire TV attempt to connect to wifi by MD macro, it's ok, doesn't cause any problem because it has break action with constant to avoid meaningless retry too much. It might be overrunning 1 or 2 times, plus the device itself try parallelly though. Don't be sensitive:)

Don't forget adding one more trigger to the macro on #33, Wifi configure - wifi disconnected, as well.
 
Top