Viktor Jaep
Part of the Furniture
PWRMON v1.2.9
Released February 7, 2024
Executive Summary: PWRMON is a shell script that provides near-realtime stats about your Tesla Gateway/Powerwall2/Solar environment. This utility will show all the current electrical loads being generated or consumed by your solar system, the grid, your home and your Powerwall(s). Electrical transmission flows are accurately being depicted using >> and << types of arrows, as electricity moves between your solar, to/from your batteries, to/from the grid and to your home. In the event of a electrical grid outage, PWRMON will calculate your estimated remaining runtime left on your batteries based on the amount of kW being consumed by your home. Weather has now been incorporated to give you a 3 day outlook on what kind of weather to expect for generation or off-grid consumption due to regional disasters or weather events.
Instead of having to find this information on various different web pages or apps, this tool was built to bring all this info together in one stat dashboard. Having a 'system' dashboard showing current solar, grid, home and powerwall stats would compliment other dashboard-like scripts greatly (like RTRMON or VPNMON-R2), sitting side-by-side in their own SSH windows to give you everything you need to know with a glance at your screen.
PWRMON is free to use under the GNU General Public License version 3 (GPL 3.0).
This project is hosted on GitHub
Changelog here | Jump to latest release | What's new: Feature Level Updates, SMS/Text Notifications, Weather Forecasts, Email Notifications, (P)rev Page + Logs, PW Mode, Reserve and % Remaining added to Large Icon Dashboard, Large Outage/Sync Icon Update, Large Font Dashboard, Initial Release, Added New Page 2 Stats!
Screenshots:
Page 1 -- Yes, this is my pathetic attempt at trying to duplicate the Tesla Gateway flow diagram functionality in ASCII format... yeah, LOL
Page 2
Large Font Dashboard Page 3
Hitting the "sc" option, there are currently 9 items you can configure (you can also access this screen by using 'pwrmon.sh -config'):
Requirements:
1.) This has been written and tested on an Asus RT-AC86U WiFi Router, and should be compatible with the vast majority of Asus routers out there that are compatible with custom Asus-Merlin firmware. Your router must be running custom Asus-Merlin firmware (https://www.snbforums.com/threads/about-asuswrt-merlin-custom-firmware-for-asus-routers.7846/), Entware (installed by running AMTM from an SSH command prompt) and jffs scripts enabled and installed (using the Asus-Merlin router UI -> Administration -> System).
2.) You must have a locally accessible Tesla Gateway device, reachable through your LAN (A Tesla Gateway is a device that monitors and distributes power between your solar, grid, home and batteries. It's very possible to run this setup if you only have batteries, or only have solar, but a Gateway device is still necessary)
3.) You will need to make absolutely sure your email address and password are correct in order to be able to log into your Tesla Gateway. A good way to initially test it is to browse to your Tesla Gateway (ex: https://192.168.45.22 or whatever your Gateway IP is), and making some attempts to log in there there first. Your default password to log into your Tesla Gateway is typically a 5-letter alpha upper-case combination that's found on a sticker inside your Tesla Gateway enclosure. It's also the same password you would use to authenticate to the Tesla Gateway TEG-### Wi-Fi network.
I'm definitely looking for your feedback... what works, what doesn't... what else would you like to see. But all-in-all, as good ideas come up for things to possibly add, very much a WIP (work-in-progress). Lots more stuff to come... I'm looking at adding other power-related stats, as well as good visual indicators showing grid outages, etc.
Released February 7, 2024
Executive Summary: PWRMON is a shell script that provides near-realtime stats about your Tesla Gateway/Powerwall2/Solar environment. This utility will show all the current electrical loads being generated or consumed by your solar system, the grid, your home and your Powerwall(s). Electrical transmission flows are accurately being depicted using >> and << types of arrows, as electricity moves between your solar, to/from your batteries, to/from the grid and to your home. In the event of a electrical grid outage, PWRMON will calculate your estimated remaining runtime left on your batteries based on the amount of kW being consumed by your home. Weather has now been incorporated to give you a 3 day outlook on what kind of weather to expect for generation or off-grid consumption due to regional disasters or weather events.
Instead of having to find this information on various different web pages or apps, this tool was built to bring all this info together in one stat dashboard. Having a 'system' dashboard showing current solar, grid, home and powerwall stats would compliment other dashboard-like scripts greatly (like RTRMON or VPNMON-R2), sitting side-by-side in their own SSH windows to give you everything you need to know with a glance at your screen.
PWRMON is free to use under the GNU General Public License version 3 (GPL 3.0).
This project is hosted on GitHub
Changelog here | Jump to latest release | What's new: Feature Level Updates, SMS/Text Notifications, Weather Forecasts, Email Notifications, (P)rev Page + Logs, PW Mode, Reserve and % Remaining added to Large Icon Dashboard, Large Outage/Sync Icon Update, Large Font Dashboard, Initial Release, Added New Page 2 Stats!
Screenshots:
Page 1 -- Yes, this is my pathetic attempt at trying to duplicate the Tesla Gateway flow diagram functionality in ASCII format... yeah, LOL
Page 2
Large Font Dashboard Page 3
How is this script supposed to run?
I would recommend running this script in its own SSH window from a PC that's connected directly to the Asus router, or from a utility like 'Screen', as it loops and checks the various stats every 10 seconds. Instructions:- Download and install directly using your favorite SSH tools, copy & paste this command (or update from within PWRMON):
Code:curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/PWRMON/master/pwrmon-1.2.9.sh" -o "/jffs/scripts/pwrmon.sh" && chmod 755 "/jffs/scripts/pwrmon.sh"
- Configure it using this command:
Code:sh /jffs/scripts/pwrmon.sh -setup
- Run it standalone in an SSH window with this command:
Code:sh /jffs/scripts/pwrmon.sh -monitor
- Or, using the screen utility, which has now been built-in:
Code:sh /jffs/scripts/pwrmon.sh -screen
- To make things easier, you can now just type the script name itself (without the path/extension), like so:
Code:pwrmon -screen
Do I need to configure anything?
You can enter the setup screen with the command 'pwrmon.sh -setup' or by hitting the 's' key from within the UI:Hitting the "sc" option, there are currently 9 items you can configure (you can also access this screen by using 'pwrmon.sh -config'):
Requirements:
1.) This has been written and tested on an Asus RT-AC86U WiFi Router, and should be compatible with the vast majority of Asus routers out there that are compatible with custom Asus-Merlin firmware. Your router must be running custom Asus-Merlin firmware (https://www.snbforums.com/threads/about-asuswrt-merlin-custom-firmware-for-asus-routers.7846/), Entware (installed by running AMTM from an SSH command prompt) and jffs scripts enabled and installed (using the Asus-Merlin router UI -> Administration -> System).
2.) You must have a locally accessible Tesla Gateway device, reachable through your LAN (A Tesla Gateway is a device that monitors and distributes power between your solar, grid, home and batteries. It's very possible to run this setup if you only have batteries, or only have solar, but a Gateway device is still necessary)
3.) You will need to make absolutely sure your email address and password are correct in order to be able to log into your Tesla Gateway. A good way to initially test it is to browse to your Tesla Gateway (ex: https://192.168.45.22 or whatever your Gateway IP is), and making some attempts to log in there there first. Your default password to log into your Tesla Gateway is typically a 5-letter alpha upper-case combination that's found on a sticker inside your Tesla Gateway enclosure. It's also the same password you would use to authenticate to the Tesla Gateway TEG-### Wi-Fi network.
I'm definitely looking for your feedback... what works, what doesn't... what else would you like to see. But all-in-all, as good ideas come up for things to possibly add, very much a WIP (work-in-progress). Lots more stuff to come... I'm looking at adding other power-related stats, as well as good visual indicators showing grid outages, etc.
Last edited: