Monday, December 21, 2020

Thursday, November 26, 2020

power on off rules for KMC smart switch using tasmota

 

These are just my notes on getting the rules to work for me on a KMC 70011 smart switch.  The documentation is good, but I wanted to show the steps I used that helped me become familiar with the commands.

https://tasmota.github.io/docs/Commands/


power1 on for 2 sec, then turn off.

backlog Power1 on; Delay 20; Power1 off


power1 on for 10sec, run 3x, then stop  (LED wont show status!)

backlog blinkcount 3; blinkTime 100; power blink


power1 on for 13sec, run 1x, then stop

backlog blinkcount 1; pulsetime 113; power1 ON

 

power1 on for 5sec, run 1x, then stop 

backlog blinkcount 1; pulsetime 105; power1 ON

disable pulsetime

pulsetime1 0


power1 on for 5 sec, run 1x (same as above but using rules)

rule1 on Power1#state=1 do ruleTimer1 5 endon on rules#timer=1 do power1 0 endon
rule1 on
power1 on
 
 

delete the rule and turn off power1

backlog rule1 0; rule1 ";power1 off

 

power1 on for 5 sec, power off for 15 sec, run forever

rule1 on Power1#state=1 do ruleTimer1 20 endon on rules#timer=1 do power1 1 endon
rule1 on


power1 on for 5 sec, power off for 15 sec, run forever (all in one command)

backlog rule1 on Power1#state=1 do ruleTimer1 20 endon on rules#timer=1 do power1 1 endon; rule1 on; pulsetime 105; power1 ON


delete the rule1 and turn off power1

backlog rule1 0; rule1 ";power1 off

 

power1 on for 50 sec, power off for 10 sec, run forever (all in one command)

backlog rule1 on Power1#state=1 do ruleTimer1 60 endon on rules#timer=1 do power 1 endon; rule1 on; pulsetime 150; power1 ON


using internal clock: every minute, turn on for 5 seconds

rule1 on Time#Minute|1 DO Backlog pulsetime 105; power1 on ENDON
rule1 on

 

delete the rule1, and turn off power1

backlog rule1 0; rule1 ";power1 off

 

using internal clock: every minute, turn on for 50 seconds.

rule1 on Time#Minute|1 DO Backlog pulsetime 150; power1 on ENDON
rule1 on

 

delete the rule1 and turn off power1

backlog rule1 0; rule1 ";power1 off

 

using internal clock: every 5 minutes, turn on for 60 seconds.

rule1 on Time#Minute|5 DO Backlog pulsetime 160; power1 on ENDON
rule1 on


delete the rule1 and turn off power1

backlog rule1 0; rule1 ";power1 off

Friday, July 03, 2020

Netgear R7000 freshtomato installation STEP BY STEP instructions (updated Apr 2023)

+
https://freshtomato.org



Downloads: from freshtomato

.CHK (used in step 5 below)
https://freshtomato.org/downloads/freshtomato-arm/2023/2023.4/Netgear%20initial%20files/
latest: https://freshtomato.org/downloads/freshtomato-arm/2023/


.TRX freshtomato firmware (step 14 below)

These are the two files you'll need for the R7000. Unzip them and they should look like this. These are what I used at the time of this writing.

freshtomato-R7000-2023.4-initial-64K.chk
freshtomato-R7000-ARM-2023.4-AIO-64K.trx

Hint:  not sure which one to download ?  Refer to this hardware compatibility chart
CPU: R7000 has ARM
NVRAM: R7000 has 64KB
AIO=all in one
firmware is easily identified:  freshtomato-R7000-ARM-[version]-AIO-64K.trx



setup:

connect LAN port on router to computer ethernet port (do not use wifi)
unplug all other connections


1. power on unit, wait 2-5 minutes.
2. reset unit using the reset button using a paperclip (hold for 30sec). Follow netgear's manual if you're having trouble.




3. wait again 2-5 minutes
4. open http://192.168.1.1

5.  Advanced TAB / Administration / Router update.
Browse to the .CHK file you downloaded (freshtomato-R7000-20xx.x-initial-64K.chk). click UPLOAD.

6. OK



7.  YES



updating...


rebooting...




8.  wait 2-5 minutes until presented with a login. DO NOT LOGIN!
(note: if your own IP auto changes to 169.254.x.x,  this is due to windows automatically setting your IP, because it can't find a DHCP server. You can just wait 5 min, and proceed with next step.)





9. press the reset switch once with a paperclip. 







10. While its rebooting, set your computer IP to 192.168.1.9 and gateway to 192.168.1.1

Note: This step may not be necessary, as the router should be running DHCP, and assign you an address.





11. use ping to let you know its completely rebooted.



wait a bit longer...as it reboots and reconnects a couple of times...





now we're ready to connect...




12. open web browser 192.168.1.1

username:  root
pwd:           admin 

Other users report, username: admin   password: @newdig

NOTE: if this doesn't work: 
1. Use a private browser window (incognito window).
2. Clear browser cache.
3. You probably didn't reset the device, or you didn't wait long enough. Please follow step 9.






logged in now:



13.  Configuration / Restore Default Configuration
Erase NVram.





defaults...restoring...


continue (or open 192.168.1.1)



14. upgrade using .TRX file



This is my .trx file at the time of this writing.




15. upgrade

wait..




wait...
16. click continue.






17. erase NVram again...





rebooting..





18. continue








19. ALL DONE!





Want to go back to original firmware?
Read the instructions/video here:
https://freshtomato.org/downloads/freshtomato-arm/Netgear%20back%20to%20OFW/





Friday, December 13, 2019

windows 10 IoT enterprise in virtualbox 6 (ver 6.1.16)

This took me a couple tries to get windows 10 IoT to work under virtualbox, and it is very easy.
END result:



steps:
1. download windows 10 IoT enterprise from microsoft.
evaluation copy of Windows 10 IoT Enterprise here.

Direct link: 19042.508.200927-1902.20h2_release_svc_refresh_CLIENTENTERPRISEEVAL_OEMRET_x64FRE_en-us.iso

At the time of this writing, the file downloaded was: 19042.508.200927-1902.20h2_release_svc_refresh_CLIENTENTERPRISEEVAL_OEMRET_x64FRE_en-us.iso

2. run virtualbox, Create new machine:

 -Memory, 2GB
-Disk, 30GB

3.Settings:
-change the boot order as shown:

-storage
select the evaluation ISO from microsoft

-Audio,
DISABLE (we'll enable after installation)
-Network
DISABLE (we'll enable after installation)

-Everything else, I just left default.

4. take a snapshot before installation.

5. boot up and install windows as usual. 

Select Next, then 'install windows' then next again

 Custom: Install windows only


Select the drive/NEXT

installing...
Set your keyboard, etc.
I don't have internet

Continue with Limited setup.


set your username, passwd and security questions.


select NO


 DECLINE 


No for everything here. Then Accept.


Cortana: Not now

 
windows IoT will auto login:


windows start button/ power/ Shut down.


Take another Virtualbox Snapshot



Turn on audio.


Turn on Networking, leave "Cable Connected" unchecked!


Start up

Disconnect ISO:


Connect the network adapter

NO

Wait, and wait...

SKIP for now.



Create a desktop cmd.exe icon,s
right click and 'run as administrator'
slmgr /rearm


Finally, a 90 day evaluation of Windows 10 IoT:




Go ahead and install virtualbox additions...