John Bostwick
TVWBB Wizard
only after the bigger fan
Oh whew. Man I was really worried that I had an unchecked memory leak again. I've put a compiled version of what I think was the release 1 heatermeter code (git tree 7ab9e9de3a67a38f7154345fed0e485db6ef4e4b). It is hard to nail down exactly when R1 was so I'm not sure if this is the right git revision.Originally posted by Ed Pinnell:
EDIT: [snip] And yeah, this is the one with the 32MB chip, but again the router seems to be working great...
It may or may not work of you mix the firmwares between revisions, I think the only difference in the serial protocol involved how the "RF last update time" was conveyed. So in this case it may look like it works perfectly because the R1 router image didn't tell you the last update time. I could be wrong about the difference though, I don't want to have to dig through git to figure out what's actually different. The point is though that the HM and LM revisions are meant to be the same.Originally posted by Ed Pinnell:
So if I'm using the latest version or Arduino code from Github...dated Aug. 21, 2011...commit f885a3dae...which I am...it shouldn't be working with the R1 build found here that I am also using? They seem to be compatible, but did I miss the memo prior to this that said not to mix and match?
Alternatively, would it bend the rules too much to add the appropriate pre-built image to the corresponding HeaterMeter package down the road so that some other lazy hapless idiot who doesn't want to compile his own firmware doesn't make the same mistake?
The degrees per hour is calculated in the web browser and requires the graph data to have at least 1 hour of data for that probe, and have increased at least 1 degree from the start of that hour. It isn't very smart though because it bases the dph on the first point an hour ago versus the current point. So regardless of what happened in between, if it is at least one degree hotter than it was an hour ago, it considers that positive.Originally posted by Ed Pinnell:
A question I have for you: the deg/hr notes that seem to come and go in the probe boxes...what triggers those? Why do they appear and disappear, seemingly at random? Is that caused by my mismatch?
Yeah the LuCI maintainer screwed me by taking /most/ of my patches which means that some of the patches don't apply to trunk, the apply to the version they were made for. I'm actually checking this forum as I wait for my build of the latest trunk to compile so this will be fixed later today.Originally posted by Brian Hilgert:
I'm trying to build from the trunk... i can get the revision number if you need it.
Originally posted by Bryan Mayland:
Yeah the LuCI maintainer screwed me by taking /most/ of my patches which means that some of the patches don't apply to trunk, the apply to the version they were made for. I'm actually checking this forum as I wait for my build of the latest trunk to compile so this will be fixed later today.
Ed managed to find a pretty big bug in the linkmeterd process so I've now resolved
Yeah try pulling it now. Re-run the (heatermeter)/openwrt/install.sh (it should be able to run against a directory where it has already been run) to update the patches in the OpenWrt build directory. Ignore the last error about the patch not applying (for it has already been applied)Originally posted by Brian Hilgert:
So basically I should try and grab a fresh copy of Heatmeter from GitHub later today or tommorrow?
The web server and linkmeterd can crash if there's a problem that delays the writing of the rrd file for 1 second. The fix isn't in github yet though, waiting to test it first when I get home tonight.Originally posted by John Bostwick:
So, we should upgrade then, what was the bug
Fix is now in github. Also it appears there's something going wrong with the default configuration. The changes aren't being properly merged into the lucid configuration in the base image. If you fire up your web browser and get a blank page, check your /etc/config/lucid and make sure it contains:Originally posted by Bryan Mayland:
The web server and linkmeterd can crash if there's a problem that delays the writing of the rrd file for 1 second. The fix isn't in github yet though, waiting to test it first when I get home tonight.
I do a lot of the HeaterMeter stuff on breadboard version (using a Boardino), sort of "unit testing" things out then uploading it to my LinkMeter's HeaterMeter. I also have a standalone HeaterMeter with an XBee serial connection on it for backup.Originally posted by D Peart:
Do you do your development work in a separate environment or do you do it all on your linkmeter itself?
He was thinking of creating a VM image and doing the work there. Maybe modeling the heatermeter and plugging that into the VM. Something like that. I'll have him get an account for more details because I'm already out of my comfort zone
Yeah the error message is actually just a warning. There's no TLS provider installed in the standard system because of the size requirements so LuCId can't do HTTPs.Originally posted by Brian Hilgert:
Lucid isn't running once the unit finishes it's initial boot. I can login via serial/ssh and start it with "/etc/init.d/lucid start", and she runs solid (has for the last 14 hours anyway). when I do start it I get an error:
"Starting LuCId superserver: lucidlucid[1787]: Failed to initialize daemon https: Encryption requested, but no TLS context given"
Originally posted by Bryan Mayland:
I don't know why it doesn't start on startup. Are you using the latest git from yesterday? It may be the "double update in one second" problem crashing it on startup? You can turn on debug logging at the top of the /etc/config/lucid file and reboot. Use `logread` once you're booted to see if has an error message. You can see if it is running with `ps` and look for the lua process.