Commit Graph

24 Commits

Author SHA1 Message Date
Mark Milligan
c8319d6369 Migrating from from wiringpi to pigpio. This increases the sample rate by a factor of 3 and will allow creation of a board that can monitor over 30 breakers with a single raspberry pi.
This is based on pi4j 2.0 which is in a beta status.  I have fixed a few bugs in a local version of pi4j 2.0 to get it to work but I haven't submitted those changes to pi4j yet.

This change requires a migration to Java 11 and will *NOT* be backwards compatible.  Upgrading to this hub software will require that java 11 and pigpio be installed on the hub.  This can be done from an ssh session with the following commands:

apt-get update
apt-get install openjdk-11-jre-headless
apt-get install pigpio

Alternatively, you can download a new sd image, reflash your sd card, and re-adopt your hub.
2022-04-29 14:59:56 -05:00
MarkBryanMilligan
d30fc4b4ce Fix a bug that was making it impossible to display billing information in the android app. 2022-04-04 17:20:15 -05:00
MarkBryanMilligan
a892c7f0e8 Auto-detect frequency on first hub startup. If frequency is 50Hz, assume 230V. (This should work for 95% of cases) 2022-02-10 13:21:18 -06:00
MarkBryanMilligan
eaf1e4504f Allow exporting all data in bson, json, or csv formats. 2022-01-29 18:25:19 -06:00
MarkBryanMilligan
ed75ab1f05 Improve 3A+ case, making it easier to take the pi out. Improve the fit of the Z2 case.
Make it possible for a hub to reload a config automatically when it changes without being restarted.
Prevent the auto-calibration on first install from being stomped by the app.
Allow updating the hub software via the app.
2022-01-13 14:33:21 -06:00
MarkBryanMilligan
883cf7865d Add billing plans so different plans can be compared. Performance enhancements to charge calculations. 2021-10-18 15:46:25 -05:00
MarkBryanMilligan
0cfdaaa272 Keep track of peak production, peak consumption, peak from grid, and peak to grid values to aid in solar panel and storage sizing. 2021-09-07 22:56:22 -05:00
MarkBryanMilligan
77ceec745c Update summaries when billing rate configuration changes. Refactor some of the billing rate variable names to be more clear. 2021-08-11 14:12:27 -05:00
MarkBryanMilligan
cb774d1950 Fix some timezone bugs. 2021-08-09 12:43:47 -05:00
MarkBryanMilligan
5a1f97abca Add some boilerplate to the password reset. 2021-08-07 17:01:11 -05:00
MarkBryanMilligan
8d09ac39f2 Add billing rates and track cost for all energy readings. 2021-08-03 16:47:28 -05:00
MarkBryanMilligan
3d5cd6500f Add a rules engine so I can be notified when I forget to close my garage door. 2021-07-15 23:34:15 -05:00
MarkBryanMilligan
2a5674b736 Allow the pi to be shutdown from the app via bluetooth. 2021-03-06 20:20:55 -06:00
MarkBryanMilligan
a43222049d Fix some timezone bugs. 2021-03-06 15:45:09 -06:00
MarkBryanMilligan
16c853bf86 Allow pulling part of the log file from a hub via bluetooth. 2021-02-28 23:36:58 -06:00
MarkBryanMilligan
a75231dc43 Support using one CT to monitor a double breaker by only monitoring one pole and doubling its power. 2021-02-26 10:56:05 -06:00
MarkBryanMilligan
ea07715c46 Support posting power to an MQTT topic for Home Assistant. 2021-02-21 18:56:58 -06:00
mmilligan
90002ab4d4 Don't remove breakers if a hub port hasn't been selected. This is a valid case if someone doesn't have hubs configured yet. 2021-02-19 23:59:53 -06:00
mmilligan
0cc1ec55ff Remove random invalid import. 2021-02-19 14:39:56 -06:00
Mark Milligan
7075c702df Allow binary and dimmer switches to be grouped together. Allow a custom host to be sent to the power monitor hubs. 2021-01-30 17:11:12 -06:00
Mark Milligan
1a1acb9cbc Add BOM generation from within the app. 2021-01-29 17:23:41 -06:00
Mark Milligan
fa606cce84 Allow calibration of all ports on a hub at once in addition to individually. 2021-01-24 12:41:46 -06:00
Mark Milligan
3d7f116baa Forgot that I still had everything hard-coded to central time. Changed it to be configurable per account. 2021-01-16 21:15:07 -06:00
Mark Milligan
1334c110ff Initial Commit 2021-01-14 16:28:24 -06:00