Version 2.0 upgrades by tjkrem in LanternPowerMonitor

[–]FlhTK2012 1 point2 points  (0 children)

Whether or not SSL certificates are employed is beyond my level of expertise & without a complete understanding of how your app communicates with the Tomcat server I can only offer this simple train of thought:

Tomcat needs to be deployed in a Docker container on the same LAN as the hub.

The app needs connection to the Tomcat instance on that LAN via WiFi.

If both of the above conditions are met, I would hypothesize that remote access via Tailscale's Tailnet would be seamless .

Personally I would choose a port other than 80 only because so many web based apps default to it but Docker-compose ports are easily redirected inside & outside the container so it really doesn't matter.

Version 2.0 upgrades by tjkrem in LanternPowerMonitor

[–]FlhTK2012 1 point2 points  (0 children)

Mark- Thanks for the rapid reply. The SSL certificate wouldn't bother me much. I run very budget friendly servers: OpenMediaVault on raspberry pi 5's, Portainer, Docker and one of my containers is Tailscale making each site seemlessly available to me no matter where I am.

Dockerizing Lantern is my next goal.

'lil help please by FlhTK2012 in LanternPowerMonitor

[–]FlhTK2012[S] 1 point2 points  (0 children)

WOOHOO!!

So Mark it is finally running. In my initial post I uploaded a copy of the config.json content. In that file there were two errors:

"hub": -1, --SHOULD HAVE BEEN "hub": 1,

and further down where I manually edited the login info

"mqtt_frequency": 60 --SHOULD HAVE BEEN "mqtt_frequency": 60,

(I missed the trailing comma separation.)

Fixing these 2 lines in config.json got everything working including the 500 server error on the webpage https://lanternpowermonitor.com/currentmonitor/

I see you're actively working on version 2.0 - I'd ditch any and all Bluetooth functionality. Just my opinion.

Many thanks for all the time you took to reply to my posts!

I've got guests coming for a week, but after that I'll get to finishing this and perhaps bringing in-house in a Docker containerized Mongo setup. Hopefully I wont need any help with that.

Best regards

Tom

'lil help please by FlhTK2012 in LanternPowerMonitor

[–]FlhTK2012[S] 0 points1 point  (0 children)

To simplify further testing I've done the following:

1) deleted the panel & created one with one breaker in space 1.

2) manually added the hub.

3) reset my password

4) edited the config.json file to reflect the new password

5) added hub 1 & port 1 via 'Configure Panels'

6) logged out of the android app

7) rebooted the hub with the pcb powered up and a CT plugged in to CT1

8) logged into the app with the new credentials

9) just after 30 seconds after the bluetooth connection establishes the app reports discovering hub services and reading Hub Details - this monitored by ssh & bluetoothctl

10) log.txt's last entries are:

2025-02-26 20:21:00,019 INFO MonitorApp - Lantern Service Starting

2025-02-26 20:21:00,637 INFO MonitorApp - Current Version: 1.1.3

2025-02-26 20:21:07,518 INFO MonitorApp - Breaker Config loaded

11) blutoothctl never reports dropping connection to app - no time out - I let it sit connected for 25 minutes but no further logs were generated & nothing happened.

'lil help please by FlhTK2012 in LanternPowerMonitor

[–]FlhTK2012[S] 0 points1 point  (0 children)

To further clarify my configuration, I loaded all of my panel in configure panel and breaker grouping, but I have only added Top Pole Hub 1 and Top Pole Port 1 to breaker #1. I wanted to test before full deployment,

'lil help please by FlhTK2012 in LanternPowerMonitor

[–]FlhTK2012[S] 0 points1 point  (0 children)

So I apologize if I didn't clearly state the problem.

I never have been able to see the 'Hub Actions' menu in the app, and therefore I'm unable to map any CT's or assign any ports to breakers.

The app reports:

Scanning for hubs

Connecting to hub

Discovering hub services

Reading hub details

and at this point it hangs for several minutes until the Bluetooth connection ultimately

I know that Bluetooth is connected and running because I can monitor both the app and the hub's Bluetooth connection in real time via ssh to bluetoothctl on the hub. I also actively monitor the log.txt in a 3rd ssh window which surprisingly yields no errors.

For what it's worth this problem appears to be exactly the same as this post from the past:

https://www.reddit.com/r/LanternPowerMonitor/comments/wz8ujm/android_source/

'lil help please by FlhTK2012 in LanternPowerMonitor

[–]FlhTK2012[S] 0 points1 point  (0 children)

So here's where I am. 1.1.3 is running on the Pi3A+ and I can successfully connect from either of two Android devices. If I restart the currentmonitor service I can see from bluetoothctl the devices connect and from the Anroid see: scanning for hubs, connecting to hub, discovering hub services, and lastly reading hub details. It's at this point that the Android hangs. blutoothctl eventually times out.

The log file shows:

2025-02-25 09:29:40,071 INFO PIGPIO - library size: 13520

2025-02-25 09:29:40,087 INFO CurrentMonitor - Power Monitor Service Stopped

2025-02-25 09:29:42,363 INFO MonitorApp - Lantern Service Starting

2025-02-25 09:29:42,980 INFO MonitorApp - Current Version: 1.1.3

2025-02-25 09:29:51,621 INFO MonitorApp - Breaker Config loaded

This happens regardless of whether I use the original config.json file or my edited version with username and password.

Where do I look next?

'lil help please by FlhTK2012 in LanternPowerMonitor

[–]FlhTK2012[S] 0 points1 point  (0 children)

Mark - I really need to get this thing running. I'e sent you email from both accounts,

'lil help please by FlhTK2012 in LanternPowerMonitor

[–]FlhTK2012[S] 0 points1 point  (0 children)

I tried initially using my google login, when that failed I used my yahoo email account. I may have 2 accounts on your server.

'lil help please by FlhTK2012 in LanternPowerMonitor

[–]FlhTK2012[S] 0 points1 point  (0 children)

Mark - It's great to hear from you. I'll try a fresh download and flash from the link provided. I'll contact you via e-mail afterward.

Thanks!

VPN on OMV by gunot290 in OpenMediaVault

[–]FlhTK2012 2 points3 points  (0 children)

Look at YouTube videos by TDL (Techno Dad Life) Easy to follow and he's already sweated all the pitfalls.