Go to advanced search

by CharlesGodwin
Tue Apr 02, 2019 6:46 pm
Forum: General discussion
Topic: Question on a code design
Replies: 2
Views: 125

Re: Question on a code design

<deleted by author>
by CharlesGodwin
Wed Mar 27, 2019 9:14 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 115
Views: 41236

Re: Using a Pi to Log Data in a Magnum Energy System

It's not as complicated as it sounds. I have a small function that does all the fiddly calculations and it's also code that's forgotten once it works.
by CharlesGodwin
Tue Mar 26, 2019 6:35 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 115
Views: 41236

Re: Using a Pi to Log Data in a Magnum Energy System

I'm going to try to explain getting battery voltage from MorningStar. It's not simple and I fear my language skills will get in the way. Voltages, as I mentioned in a prior post, are based on several values. Referring to page 3 of the document you referenced. A voltage value( adc_vb_f_med) is the va...
by CharlesGodwin
Mon Mar 25, 2019 12:35 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 115
Views: 41236

Re: Using a Pi to Log Data in a Magnum Energy System

The Morningstar code is not on Gitlab - yet. I hadn't considered it as no one asked. But I can share if you send an email to magnum-at-godwin-dot-ca. I'll look for your email. The code is a bit different that what I would have sent you before. The difference is not in reading the ModBus information ...
by CharlesGodwin
Sun Mar 10, 2019 3:51 pm
Forum: General discussion
Topic: Is there a cheap and reliable UPS for raspberry pi 3b+?
Replies: 52
Views: 1956

Re: Is there a cheap and reliable UPS for raspberry pi 3b+?

If it's a cheap and reliable UPS you want, I think cheap OR reliable is your only choice. I think you can find some for under a $US 100 but unless you buy one that includes a communications interface so the Pi can know the power is about to go away as the UPS batteries are failing then the UPS has l...
by CharlesGodwin
Fri Mar 01, 2019 9:51 pm
Forum: Automation, sensing and robotics
Topic: Water Depth Sensing
Replies: 10
Views: 575

Re: Water Depth Sensing

I have a friend who uses a laser based device to measure distance from the laser to the surface of the water, which he reads in a vertical pipe to reduce wave action. Once calibrated the water level change it is easily tracked. Measuring the depth of a natural body of water is problematic as the bot...
by CharlesGodwin
Sun Feb 24, 2019 4:22 pm
Forum: Networking and servers
Topic: autoSSH
Replies: 16
Views: 1751

Re: autoSSH

I've used reverse tunnelling for a few years but recently came upon this solution. https://blog.kylemanna.com/linux/ssh-reverse-tunnel-on-linux-with-systemd/ I like it because: It's easy to setup It's easy to manage systemd takes care of the monitoring, restarts, logging, etc. it works ;) When I swi...
by CharlesGodwin
Sun Feb 24, 2019 1:56 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 115
Views: 41236

Re: Using a Pi to Log Data in a Magnum Energy System

Hi I hope my system can help. The software as published will handle all your Magnum Energy (ME) components but, alas, not the Outback Energy ASX-Port. I presume, since you have managed to deal with the ME magweb device, that you have programming skills. I don't think it would be hard to extend the r...
by CharlesGodwin
Thu Jan 10, 2019 10:07 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 115
Views: 41236

Re: Using a Pi to Log Data in a Magnum Energy System

This is addressed to anyone using my software. I haven’t published any changes to my software but I plan a cleanup. More like pruning dead branches. Take a look at this https://gitlab.com/Magnum_Energy/distribution/blob/master/CHANGES_FOR_2.0.md and tell me if there are any problems. I’m trying to m...
by CharlesGodwin
Thu Dec 27, 2018 7:37 pm
Forum: Raspbian
Topic: Mirror director directing to broken repository mirror
Replies: 5
Views: 608

Re: Mirror director directing to broken repository mirror

raspbian.mirror.colo-serv.net is still not responding
by CharlesGodwin
Thu Nov 29, 2018 1:07 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 115
Views: 41236

Re: Using a Pi to Log Data in a Magnum Energy System

I hope its' something simple.
Before you rebuild and replace I suggest you delete all your magnum*.jar files in the lib directory so there are no old rogue versions getting in the way.

Code: Select all

rm lib/magnum*.jar
If you hit glitches please email me as my responses can be quicker and more specific. Thanks
by CharlesGodwin
Mon Nov 19, 2018 4:54 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 115
Views: 41236

Re: Using a Pi to Log Data in a Magnum Energy System

@scott I notice that building extra plugins can be complicated if you need to checkout the entire source, add your code and then build a private version. That's a lot of work. My method is to have a separate project for just compiling the extra plugin code. I then build a jar file with a different n...
by CharlesGodwin
Mon Nov 19, 2018 2:53 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 115
Views: 41236

Re: Using a Pi to Log Data in a Magnum Energy System

@scott I am confused as all my tests with release 1.0.6 supports the Z. This morning I did the following: Note : There are some changes to prior build instructions. I will list them at the bottom. I am also attaching a log of all these activities. I created a new directory on a Pi I installed ant an...
by CharlesGodwin
Sun Nov 18, 2018 11:35 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 115
Views: 41236

Re: Using a Pi to Log Data in a Magnum Energy System

Strange. I did that earlier and it worked. The old code worked by just dropping the Z.

I'm still not near my PC
by CharlesGodwin
Sun Nov 18, 2018 11:10 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 115
Views: 41236

Re: Using a Pi to Log Data in a Magnum Energy System

I have not tested that way for a while. I use eclipse which is slightly different. I'll look at it later. I'm not near my PC.
by CharlesGodwin
Sun Nov 18, 2018 11:02 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 115
Views: 41236

Re: Using a Pi to Log Data in a Magnum Energy System

You said "rebuild" are you really building from source or downloading the files and running setup_1.0.6 or...?
by CharlesGodwin
Sun Nov 18, 2018 7:46 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 115
Views: 41236

Re: Using a Pi to Log Data in a Magnum Energy System

@scott

I may have a fix. Please try it and if it is working, I will officially release it.

for now, go to this branch page, read the instructions titled Update without internet, restore older version or install pre-release version, download the two Release_1.0.6 files, run setup, and test.
by CharlesGodwin
Sun Nov 18, 2018 5:05 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 115
Views: 41236

Re: Using a Pi to Log Data in a Magnum Energy System

I have tested and the problem is the 'Z'. It works, in a test setup, without the Z. This code, same as that in the server, works. DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSS"); String now = LocalDateTime.now().format(formatter); System.out.println(now); If yo...
by CharlesGodwin
Sun Nov 18, 2018 2:03 am
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 115
Views: 41236

Re: Using a Pi to Log Data in a Magnum Energy System

Thoughts

1 does the server work if you don't override dateformat
2 are there any messages in the server log file
3 have you considered reformating the date downstream

I'll test tomorrow when I'm near my system
by CharlesGodwin
Mon Oct 22, 2018 1:37 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 115
Views: 41236

Re: Using a Pi to Log Data in a Magnum Energy System

@scott Yes, I can send you the Morningstar java. Just send me an email and I forward it to you. I do not want to publish it. But.... I think that code will be overkill as it deals in painful detail with extracting data from a ModBus interface. If you're looking for an example of inserting some extra...
by CharlesGodwin
Tue Oct 02, 2018 8:53 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 115
Views: 41236

Re: Using a Pi to Log Data in a Magnum Energy System

I have release a revised version of the server software. There was a bug that caused it to fail when processing PT-100 packets. It is available here: Take the newest version https://gitlab.com/Magnum_Energy/distribution/tags If you have an RSS news reader, add this to get updates of any new release....
by CharlesGodwin
Mon Oct 01, 2018 7:11 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 115
Views: 41236

Re: Using a Pi to Log Data in a Magnum Energy System

Standby. It's an access control problem. i'm new to Gitlab so I'm learning.
by CharlesGodwin
Mon Oct 01, 2018 12:01 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 115
Views: 41236

Re: Using a Pi to Log Data in a Magnum Energy System

__The deed is done!__ The software has been significantly simplified since earlier versions. It is now just a REST website. Going to the server's URL (i.e. http://localhost:19450) will return a JSON file of all the data points in the Magnum Energy network. All of the value added processing is now ha...
by CharlesGodwin
Sun Sep 23, 2018 3:40 pm
Forum: Automation, sensing and robotics
Topic: Using a Pi to Log Data in a Magnum Energy System
Replies: 115
Views: 41236

Re: Using a Pi to Log Data in a Magnum Energy System

I am ready to publish release 1.0.0 but I am asking for input before I do so. If anyone has installed and tested this software and has NOT contacted me I'd like to know of any problems or requests. I plan to publish this week. The only changes since my last test release are: Allow override of text f...

Go to advanced search