A Forum run by Enthusiasts of MidNite Solar

MidNite Solar Monitoring software and hardware => Local App software => Topic started by: ChrisOlson on March 11, 2023, 06:52:23 PM

Title: iPad app
Post by: ChrisOlson on March 11, 2023, 06:52:23 PM
The only internet we have is cellular so we use iPad Air tablets for most things. After all these years, is there a Local Status Panel app for the iPad? I can create a local network with my iPhone and connect to my Classic with my Mac mini. But I'd like to use the iPad, if it's possible.

Thanks!
Title: Re: iPad app
Post by: ClassicCrazy on March 11, 2023, 07:03:02 PM
Do you just want to monitor the Classic , or be able to change settings too ?
I believe Midnite gave up on working with the Adobe Air platform which is what the Local Status app uses. The intitial idea was I think that Adobe Air would work with anything.
But if you just want to be able to monitor - there is a side shoot of Classic Monitoring app for apple . I don't know how far that got in development but here it is if you want to investigate.
https://github.com/ClassicDIY/ClassicMonitor-iOS

Larry 
Title: Re: iPad app
Post by: ChrisOlson on March 11, 2023, 07:41:35 PM
I just want to be able to monitor it. It looks like those two developers jumped thru a bunch of hoops to use Test Flight. I'll just clone the git repo on my Mac and build it with Xcode for the iPad to try it out.

Thanks!
Title: Re: iPad app
Post by: ChrisOlson on March 11, 2023, 08:11:25 PM
I did not realize that Midnite stopped development of the Local Status Panel. On their website there is another third party app, but it's for Windows. Nobody uses Windows anymore, that we know of. And then they have the My Midnite cloud service. But many off-grid people are not going to have the type of internet connection required to use that. We have controllers out in the utility room and we just want to be able to look at what they are doing from the house so it's more convenient.

Thanks for pointing out the monitoring app for iOS/iPadOS. Once I get it built and loaded on the iPad I believe this will meet the needs of what I was looking for.
Title: Re: iPad app
Post by: boB on March 12, 2023, 01:49:31 AM
Hey Chris !!  Long time no hear !!

If you can add Adobe AIR on the Ipod, then you should be able to use the local app.

Adobe AIR was/is a multi OS platform for running the same software on those systems.

It was really Adobe that stopped updating AIR and so we didn't continue.  Besides, the engineer that wrote the "Local App" retired except for basic questions once in a while.

AIR seemed like the almost perfect platform for this kind of stuff.  However there is Java in its different forms that would work.  Wish there were engineers out there that knew all of the different ins and outs of these systems including embedded design, but they are far and few between.  At least they aren't out of work anyway.

Give it a try.  Adobe AIR that is.  I don't think that Adobe has pulled it ?  They just aren't supporting it anymore.

boB



Title: Re: iPad app
Post by: ClassicCrazy on March 12, 2023, 10:47:22 AM
The company Harman has taken over keeping Adobe Air going
https://blog.adobe.com/en/publish/2019/05/30/the-future-of-adobe-air
Title: Re: iPad app
Post by: ClassicCrazy on March 12, 2023, 10:49:32 AM
Quote from: ChrisOlson on March 11, 2023, 07:41:35 PMI just want to be able to monitor it. It looks like those two developers jumped thru a bunch of hoops to use Test Flight. I'll just clone the git repo on my Mac and build it with Xcode for the iPad to try it out.

Thanks!
Graham helps with his apps when he can , so ask him if you run into any issues .
Larry
Title: Re: iPad app
Post by: ChrisOlson on March 12, 2023, 11:26:41 AM
Quote from: boB on March 12, 2023, 01:49:31 AMHey Chris !!  Long time no hear !!

If you can add Adobe AIR on the Ipod, then you should be able to use the local app.

Hi boB! Yeah, I guess since we retired we haven't been on the internet very much.

Adobe Air for iOS is built into an application image and bundled with it as a runtime library instead of being a standalone runtime library like it is on desktop applications.

I cloned the Classic Monitor code from github and tried to build it. Got a couple errors from the compiler because I'm using a newer version of Xcode than that project was built on. I'll either update the code so it will build on Xcode 14 with Swift 5.5 or download the older version of Xcode that project was built on and build it with that. It looks like the project was abandoned at a working beta version 1.0, which will be plenty fine for what I need.
Title: Re: iPad app
Post by: ChrisOlson on March 12, 2023, 01:41:17 PM
I built the Classic Monitor that Graham Ross wrote for my iPhone SE 3rd gen. This is AFTER I straightened out the problem with the signing certificates in the Xcode project. Anyway, I got it to build, set my iPhone up in developer mode and loaded it, it works great. The app is fairly simplistic and probably better suited to iPhone than the iPad's larger screen. But it does what I was hoping it would do.

Thanks again!
Title: Re: iPad app
Post by: ClassicCrazy on March 12, 2023, 02:26:58 PM
Quote from: ChrisOlson on March 12, 2023, 01:41:17 PMI built the Classic Monitor that Graham Ross wrote for my iPhone SE 3rd gen. This is AFTER I straightened out the problem with the signing certificates in the Xcode project. Anyway, I got it to build, set my iPhone up in developer mode and loaded it, it works great. The app is fairly simplistic and probably better suited to iPhone than the iPad's larger screen. But it does what I was hoping it would do.

Thanks again!
Glad you got it working.
The other approach is to get an inexpensive ( or free) android phone or tablet and use it just for monitoring.
There are so many unwanted phones out there that would work just fine for that- no phone service needed just wifi.
Larry
Title: Re: iPad app
Post by: ChrisOlson on March 12, 2023, 07:55:49 PM
Quote from: ClassicCrazy on March 12, 2023, 02:26:58 PMGlad you got it working.
The other approach is to get an inexpensive ( or free) android phone or tablet and use it just for monitoring.
There are so many unwanted phones out there that would work just fine for that- no phone service needed just wifi.

Well, kind of the problem with that is that we don't have wifi here. The Classics are hooked to an old wifi router that's set up as a wifi client. We used to have a Schneider Combox hooked to that too, but that Combox quit years ago. So the wifi is created by an iPhone or iPad becoming a router and DHCP server and we suddenly have a LAN for things that need it. Our Apple devices don't need a LAN otherwise. They can print to our AirPrint printer, share files with AirDrop, even our AppleTV 4K can just use AirPlay and connect thru one of our iPhones or iPads to get TV.

The only time we need a LAN is to use our Mac mini or access things like the Classics that still use IP networking.

When Schneider quit making and supporting the Combox, they went to a new gateway device with "cloud" data. Absolutely fabulous idea except it assumes people that live off-grid have the same broadband internet as people that live in the big city. Except we don't. And don't even mention StarLink - been there, done that, tried it, it was an expensive joke.
Title: Re: iPad app
Post by: ralph day on March 19, 2023, 09:20:43 AM
Hi Chris
Good to see you posting again.
I keep getting Starlink ads and info because I espressed an interest years ago.  Not any more.   Ma Bell has been installed an functioning very well.  27Mbps download speeds, no interruptions, generally great service compared to what I''ve put up with before.

Xplornet (the other big player in my area) would upgrade/build a tower, things would be great until they oversubscribed it and service would tank.  Seems to be their business model.  Internet via space polluting billionaire product doesn't appeal to me.  Did you have lousy service or what?

Ralph
Title: Re: iPad app
Post by: ChrisOlson on March 19, 2023, 11:20:20 AM
Hi Ralph,

We got it, it worked for two months and then quit working. That's when we found out there is no customer service. There's no email address, no phone number, the only way to contact them is to submit a support ticket on their phone app. A year later they still haven't responded to that and the only way to stop them from charging us the monthly charge was to put a stop payment on the credit card.

So it did not work for us and we have $600 worth of equipment we bought that is totally useless. Meanwhile, Verizon did some upgrades to the tower at Birchwood, which is about 20 miles away, and we get 2 bars of signal in the house on our iPhones or iPads. Which gives us about 24 Mbps, but that's plenty fast enough if we want to watch Discovery+ or something on the TV. My FlexRadio does not work from remote on cellular because of too much latency. But I connect the Flex-6300 to the Mac with a Cat5 cable, the Mac connects to my iPad with wifi and I can still use the Flex from the iPad anywhere in the house, or run digital modes on the Flex with the Mac. Marcus, DL8MRE, wrote a quite nice SDR client for the FlexRadio on the iPad

iPhoto-Export - 1.jpeg

This is the main reason I wanted StarLink - I thought it would be possible to use the ham radio from the iPad if we're out in the boat or something. Or if I go on a field day with the club I can use my iPad from remote and connect to the Flex at home where I got the big antennas. And it DID work when StarLink worked because StarLink had very low latency, even though part of the connection to the remote iPad was over cellular. But with cellular for both the uplink and downlink, I get a lot of drop-outs on the audio from the Flex.

If I create a wifi network with my iPhone and place it by the sliding glass doors that go out to the patio, then we can get up to 54 Mbps on the cellular. So it works fine for us and maybe costs a bit more than StarLink for four devices with unlimited data plans, but we would have those anyway even if our StarLink would've stayed working.
Title: Re: iPad app
Post by: boB on March 19, 2023, 03:05:37 PM
I just found that Star Link is one of those  GC-NAT ISPs that does not allow port forwarding if you needed that.

There are ways around this evidently so we will have to figure that out for our in-progress com box that can serve up web pages.

IPV6 needs to come of age I guess.

Did someone say  HF net ?  Maybe 20 meters some day ?  I have working ham radio in Arizona when I am here.

boB
Title: Re: iPad app
Post by: ChrisOlson on March 19, 2023, 05:39:03 PM
Quote from: boB on March 19, 2023, 03:05:37 PMI just found that Star Link is one of those  GC-NAT ISPs that does not allow port forwarding if you needed that

That's because StarLink controls the router and NAT is done on their end, not at your router. You need to make your own VPN server with a Mac or Linux computer behind the router to access your network with VPN. This is not ideal because, once again, the latency is 300+ ms.
Title: Re: iPad app
Post by: ChrisOlson on March 19, 2023, 08:16:08 PM
While I don't think StarLink is all that great because I think it's over-hyped and won't be a viable long-term solution, I can't really complain on our cell service. While not fast by modern standards, it's plenty fast enough for streaming TV. This is what I get on my iPad sitting in the kitchen with the iPad on the kitchen table, testing to the closest internet backbone connection.

iPhoto-Export - 1.jpeg

Verizon also uses CG-NAT and their network just connects to the closest telecom, everybody on that cell tower will have the same IP address, but I think that's what StarLink does too thru their ground stations.
Title: Re: iPad app
Post by: ralph day on March 20, 2023, 08:13:05 AM
Since it's been so long (since I've seen you on the Greenpowertalk forum) I have a couple of questions when you've got the time.

How has the induction cooktop worked long term?  What battery system have you evolved to by now?  Is the little diesel generator still working, the one for A/C?

I had to retire my big Surrette batteries after 15 years.  Treated badly early on which reduced their lifetime.  By 2019 on absorb the electrolyte would reach 40deg C, quite sulfated.  I replaced with Surrette S550's, half the capacity, but with utility power available they are fine.  Only in the summer do I truly cycle them fully...overnight discharge instead of having utility carry loads in HBX mode (also replaced Xantrex 4048 with Outback 3648 and a Mate).
Title: Re: iPad app
Post by: LilMT on March 20, 2023, 09:25:17 AM
One possible solution to work around the CGNAT is in this post:

https://midniteftp.com/forum/index.php?topic=5988.0

Quote from: boB on March 19, 2023, 03:05:37 PMI just found that Star Link is one of those  GC-NAT ISPs that does not allow port forwarding if you needed that.

There are ways around this evidently so we will have to figure that out for our in-progress com box that can serve up web pages.

IPV6 needs to come of age I guess.

Did someone say  HF net ?  Maybe 20 meters some day ?  I have working ham radio in Arizona when I am here.

boB

Title: Re: iPad app
Post by: boB on March 20, 2023, 12:50:16 PM
Thanks LiMit

What I want is a complete peer to peer system rather than having to go through a centralized server if possible.   I just came up with a name for the CGNAT system with a system talking to a user off site.
A "Don't call us, we'll call you" system  since a MM2 type system acts like a web "browser" to connect to the centralized server and transfer its data.

If we can't, then the My Midnite method may have to be dealt with... But I think that that the VPN tunnel may also do the job.  Our com box already has a small version of Linux in it and SSH, etc to it can be done.

But for me, and many others, port forwarding can be done.

Chris, you said that your Star Link latency is somewhere around 300 milliseconds ?   You must be at the end of some line or something because other friends of mine with SL are seeing less than 100 ms latency.  80 ms was one of them I think.  And that makes sense for a satellite that is only a couple or three hundred miles away from the earth station.   Maybe you are just seeing the latency when the satellite is near the horizon ?    You may know exactly why that is and I would love to hear the reason why.

boB



Title: Re: iPad app
Post by: LilMT on March 20, 2023, 01:20:10 PM
bOB,

A VPN would definitely be a cleaner solution.  But I wonder how your comm box, could be attached to when there is essentially no public facing IP.  This could definitely be done with a VPN service where your comm box "calls" into it and the user "calls" into to it to be combined on a "single network".  Fair warning though.  Most VPN services add a lot of overhead to the traffic. 

Maybe the comm box could be set up to announce its route so that a remote app could "find its way back".  But I believe CGNAT does all of that at the router level by wrapping the packets.  I would tend to think that "pre-wrapping" the return trip packets might cause routes to see them as intrusion attempts and drop them.

If you all get the peer to peer working, that would be great.  I will continue to give it some thought and toss you some rabbit holes as I think of them.  :)

Regarding SL latency, my average latency id around 70ms and I am in what is considered a poor service area.  I often see readings around the 40ms level.

Thanks, and can't wait to see the comm box.
Title: Re: iPad app
Post by: ChrisOlson on March 20, 2023, 01:21:22 PM
Quote from: boB on March 20, 2023, 12:50:16 PMChris, you said that your Star Link latency is somewhere around 300 milliseconds ?  You must be at the end of some line or something because other friends of mine with SL are seeing less than 100 ms latency.  80 ms was one of them I think.  And that makes sense for a satellite that is only a couple or three hundred miles away from the earth station.  Maybe you are just seeing the latency when the satellite is near the horizon ?    You may know exactly why that is and I would love to hear the reason why.

boB, it's 300+ if you go thru a VPN to connect to your FlexRadio. I don't remember what it was from behind the StarLink router, but 80ms seems about right. We only had it for about four months.
Title: Re: iPad app
Post by: boB on March 20, 2023, 01:42:44 PM

Oh, OK.  Maybe that was one of those commercial VPNs ?

The VPN I would most likely use might be something like  Open VPN that is a peer to peer type of VPN and would be tunneled through the SSH.

BUT I do  NOT  understand how you get SSH to run in the first place without port forwarding unless it is done through port 80.

boB
Title: Re: iPad app
Post by: ChrisOlson on March 20, 2023, 02:00:15 PM
Quote from: ralph day on March 20, 2023, 08:13:05 AMHow has the induction cooktop worked long term?  What battery system have you evolved to by now?  Is the little diesel generator still working, the one for A/C?

Hi Ralph, We have a completely different system because we retired in 2019. We bought a 3,200 sq ft lake home on 1,000 acres. It was built by a doctor and we bought it from the estate. We brought all our furnishings and appliances, since those did not come with the house. But my wife loves the induction cooktop - that's the same as we always had.

We're supposed to get utility power this coming summer. When we bought the place the only way to it was across the lake, either by boat in the summer or ice road in the winter. Last fall I built a new private road with my track loader, 1/2 mile thru the woods to the township road, so now they have a "right of way" where they can bury HV cables from the power line on the town road. Since it crosses private land they charge $400/ft for that. But since there's another off-grid home on this side of the lake, also owned by another doctor, if I give them an easement along our private road and they can service more than one home, they will foot the bill on running the HV cables. That's still up in the air, but my wife is president of the Lake Assn so she's taking care of the business dealings on that.

The system the doctor put here has 10kW of installed solar, a Caterpillar D30 generator, and twin XW6048's. The house was originally a seasonal lake home, so we installed 5kW more solar when we bought it and I got my two Classic 150's on that. The other 10kW has four MPPT 60 150's. The battery for the system is a 1700ah forklift battery that's about 10 years old. The battery weighs 2 1/2 tons and it's still good - it will power the house for three days with no other power. So I'm not going to do anything with that when we eventually get our grid-tie put in.

They put the equipment in a separate utility room that has to be semi-heated in the winter, and put a regular 200A service in the house. These two doctors had this wild dream to make a development out of the property we bought, and utility was supposed to be run in here for their development, so the off-grid system was temporary. But then the one of 'em died and it all fell thru. So we bought it lock, stock and barrel except for the seasonal home that's still owned by the other doctor that sits on 5 acres, that's about 1/2 mile north of us.
Title: Re: iPad app
Post by: ChrisOlson on March 20, 2023, 02:00:55 PM
Quote from: boB on March 20, 2023, 01:42:44 PMOh, OK.  Maybe that was one of those commercial VPNs ?

Yep. Can't remember the name of the one I used, but it was a subscription service.
Title: Re: iPad app
Post by: LilMT on March 20, 2023, 05:46:05 PM
Did a little browsing today in regard to overcoming issues with CGnat(carrier grade network address translation).  I found a methodology that might work for those of us that are behind CGnat.  It is called UDP hole punching.  It still requires a "server in the middle" but the overhead on that server is minimal.  Basically, Client A (com box) occasionally sends a packet to the server.  The server unwraps the packet and determines the entire path back to client A.  When Client B reaches out to the server, it too get its packet unwrapped and the complete return address is stored.  The address from client A is handed to Client B and vis versa.  The two clients can then communicate directly with the know addresses.  Unlike TCP, UDP does not have as many timing and security checks and balance in place to a packet that has been built on the fly with the entire addressing information should not be dropped as a security risk.

Benefits:
Both clients can be behind CGnats
Sever overhead is minimal
UDP can serve webpages or application streams

Downside:
My understanding is that encryption does not occur on a UDP stream so encryption should be handled at each client.  (This could be considered a plus as it would allow individual encryption keys maybe good maybe not)
Does require a server in the middle

There is a nice article describing UDP hole punch here:

https://en.wikipedia.org/wiki/UDP_hole_punching

IMHO as CGnat continues to grow and IP6 continues to flounder, I believe that more and more ISP's are going to implement CGnat.  It is too inexpensive for them not to.  Regrettably there simply has not been industrial acceptance of IP6 and probably won't be for some time (why "retool" a bunch of programing when they can simply turn on CGnat and get almost unlimited IP's).

I did say I would send you rabbit holes.  :)
Title: Re: iPad app
Post by: boB on March 20, 2023, 09:29:02 PM

LiMiT,  A client device could also use HTTPS so it would be encrypted if you wanted to.

Yeah, that could work but is pretty much the same thing as My Midnte EXCEPT that MM has to keep all of the data where the hole punch just acts as an in-between.

Still requires a non-cgnat server in the middle as I understand it.

It's all just a big pain in the butt as far as I'm concerned but I suppose something has to be done.

boB
Title: Re: iPad app
Post by: LilMT on March 21, 2023, 09:25:48 AM
Completely agree.  I would really like to see more advancement on IP6.

Maybe someday.  :)

Fingers crossed for now though.
Title: Re: iPad app
Post by: ralph day on March 22, 2023, 08:09:09 AM
Thanks for the update Chris.  Sounds like you'll be all set when the utility power comes in.
When I first got utility power in the company sent a meter tech out to check the install (to see if I'd hot wired it maybe?) since there was no consumption for the first couple of months.  Jokes on them!

Having our system on HBX (low battery transfer) we can cycle through the day and have the utility carry just loads overnight or when there's not enough sun and wind to live on.  Very handy.  And it sounds like you have a very accomodating utility company.  Are they going to let you net meter?

Ralph
Title: Re: iPad app
Post by: ChrisOlson on March 22, 2023, 08:53:09 AM
Quote from: ralph day on March 22, 2023, 08:09:09 AMAnd it sounds like you have a very accomodating utility company.  Are they going to let you net meter?

From what we know so far they will allow us to build a credit but we can never get paid for it. I don't think that will be a problem because we have burned about 1,000 gallons of diesel fuel per year. We have excess solar capacity in summer, but not enough for winter. And they get some sort of credit or subsidy for hooking a solar system to their utility system so they seem quite receptive to it. And we will be allowed to island our system if the utility power goes down as long as they have access to a disconnect that they can lock out during an outage.

So we are looking forward to getting it, they said that once they come to put in the line it will only take one day to trench it in with their machine, they provide a pre-fab concrete pad to set the transformer on, and it is our cost to put in a CT box for the meter and an outdoor disconnect which must pass a state inspection.
Title: Re: iPad app
Post by: ralph day on March 24, 2023, 08:10:54 AM
And being underground will save a lot of hassle with clearing trees, trees falling on lines etc etc
Title: Re: iPad app
Post by: LilMT on June 27, 2023, 01:07:00 PM
Quote from: boB on March 20, 2023, 09:29:02 PMLiMiT,  A client device could also use HTTPS so it would be encrypted if you wanted to.

Yeah, that could work but is pretty much the same thing as My Midnte EXCEPT that MM has to keep all of the data where the hole punch just acts as an in-between.

Still requires a non-cgnat server in the middle as I understand it.

It's all just a big pain in the butt as far as I'm concerned but I suppose something has to be done.

boB


I have continued to do more reading on this topic of remote access through CGNAT and I think I am on the path of something.  WebRTC - basically designed to allow for P2P video and audio, but it does a channel for data only.  I will continue reading up on it.  If I get an opportunity, I may try to set up a stun and turn server and just check out the viability.  Won't be any time soon, but maybe I will get some down time.