Raspberry Pi playfulness

From: Chris (CHRISSS)20 Jul 2016 19:41
To: ANT_THOMAS 831 of 853
Thanks Ant. Got a VM with some Linux distro on it so I'll give that a go when I get a chance.
From: Chris (CHRISSS)20 Jul 2016 21:34
To: Chris (CHRISSS) 832 of 853
I've got it trying to compile but it says it can't find lsqlite3, lrf24-bcm and others :(

I assume it's missing some libraries from the Pi. How do I fix that?
EDITED: 20 Jul 2016 21:49 by CHRISSS
From: Chris (CHRISSS)20 Jul 2016 22:34
To: Chris (CHRISSS) 833 of 853
I didn't compile anything on the Pi emulator but I did a benchmark and it runs slower than the Pi so doubt it'll be quicker for compiling.
From: Chris (CHRISSS)20 Jul 2016 23:46
To: Chris (CHRISSS) 834 of 853
Gonna try the 

Windows toolchain for Raspberry/PI instead

From: Chris (CHRISSS)20 Jul 2016 23:46
To: Chris (CHRISSS) 835 of 853
Woah! Big text :O
From: Chris (CHRISSS)21 Jul 2016 00:32
To: ALL836 of 853
Fuck yeah! Got it working :D :D :D Had to jiggle come of the command line options around to get it working.

Compile time on the Pi: 42 seconds.
Compile time on Windows: 2 seconds.

MUCH quicker. Need to work out a way to quickly copy it and make it executable on the Pi now.
EDITED: 21 Jul 2016 00:33 by CHRISSS
From: CHYRON (DSMITHHFX)21 Jul 2016 01:22
To: Chris (CHRISSS) 837 of 853
Yeah I wondered about that. Android emulator is horribly slow on a 3G x4 athon with 8G of ram doing really trivial html5 app stuff.
EDITED: 21 Jul 2016 01:23 by DSMITHHFX
From: ANT_THOMAS21 Jul 2016 07:31
To: Chris (CHRISSS) 838 of 853
Sftp
From: Chris (CHRISSS)21 Jul 2016 08:16
To: ANT_THOMAS 839 of 853
I mapped a network drive on Windows to the Pi and got the compiler to save it there. It's not marked at executable but I can still run it.

It must be executable cos it's showing up as the other executables, not just a file.
EDITED: 21 Jul 2016 09:23 by CHRISSS
From: Chris (CHRISSS)21 Jul 2016 09:03
To: CHYRON (DSMITHHFX) 840 of 853
The newer emulator is much faster than the old one. I've not run anything particularly taxing on it but it runs pretty well.
From: CHYRON (DSMITHHFX)21 Jul 2016 15:39
To: Chris (CHRISSS) 841 of 853
Must try it in the highly unlikely event we ever essay app development again.
From: Chris (CHRISSS)23 Jul 2016 00:34
To: ALL842 of 853
Right. I now have an app for my phone that I use to control my heating. It doesn't (yet?) have a graph but that makes it work much quicker - getting that graph info from the DB on the Pi is SLOW.

I've added some JSON stuff to my server on the Pi so it returns Jason to the app. And so far it all seems to be working ok.

Only problem is the HTTPUrlConnection class in Android doesn't do digest authentication so if I want to use the app I need to disable the password on the Pi or find another HTTP implementation that supports digest.
From: Chris (CHRISSS)23 Jul 2016 00:36
To: Chris (CHRISSS) 843 of 853
And it's sooooooo much better compiling on here than the Pi doing it. Much quicker to test small changes.
From: Chris (CHRISSS)23 Jul 2016 00:36
To: Chris (CHRISSS) 844 of 853
And I think I need a quieter keyboard for late night coding *CLICK! CLICK! CLICK!*
From: Chris (CHRISSS)25 Jul 2016 23:10
To: Chris (CHRISSS) 845 of 853
Built my timer system now. It will turn on the water/heating for X minutes at a certain time, so not on at 1pm off at 4pm, instead on at 1pm for 4 hours.

Now need to integrate that into my boiler controller and get the app interface working to set the timers.
From: ANT_THOMAS25 Jul 2016 23:47
To: Chris (CHRISSS) 846 of 853
I'm so glad I've got a combi boiler and didn't have to mess about with hot water timers.
From: Chris (CHRISSS)25 Jul 2016 23:58
To: ANT_THOMAS 847 of 853
Yeah, that would definitely be better. Probably get it all set up then the boiler will blow up (hopefully not actually blow up) and we'll need to get a combi boiler.

Been fun making it, even though I hate C++.
From: Chris (CHRISSS)31 Jul 2016 23:55
To: ALL848 of 853
Yaaaaaay! Timer is working with my boiler controller now :D :D I can have a daily event or a one time event.

Only problem is at the mo I need to do http://192.168.1.70:8081/addtimer?hour=23&minute=52&duration=1 manually. Need a UI for it.
From: Chris (CHRISSS) 4 Aug 2016 07:42
To: ALL849 of 853
New feature: Ajax loading of the graph. Gosh it takes a long time for the Pi to load that data. The other bits work quickly.
From: Chris (CHRISSS) 9 Sep 2016 18:34
To: ANT_THOMAS 850 of 853
How many of the 10 million Raspberry Pis that have been sold did you buy? :)