HardwareRaspberry Pi playfulness

 

Press Ctrl+Enter to quickly submit your post
Quick Reply  
 
 
  
 From:  ANT_THOMAS  
 To:  ALL
39808.821 
Well it's that time of year where I give in and put the heating on, and apart from forgetting about an IP address change my RPi/Arduino central heating system is working perfectly again!

One thing I want to improve is the awful timer/temp interface:


They are just stored in a MySQL database with each day and hour defined (24x7 = 168 entries) with the target temperature being reset every hour with the appropriate value.

It works, it's functional, but it's awful to look at. Any suggestions of how to make it a bit more user friendly?
 

Attachments:

0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  ANT_THOMAS     
39808.822 In reply to 39808.821 
Colour?

Remove the input borders except on hover.

Also, a less shit font.

+1/1
 Reply   Quote More 

 From:  ANT_THOMAS  
 To:  Peter (BOUGHTONP)     
39808.823 In reply to 39808.822 
Thanks! Colour based on temp/number would be good.
0/0
 Reply   Quote More 

 From:  ANT_THOMAS  
 To:  ANT_THOMAS     
39808.824 In reply to 39808.823 
Well that's instantly easier to understand what's going on

Attachments:

0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  ANT_THOMAS     
39808.825 In reply to 39808.824 
Yep, much better, though I'd probably go more pastelly for the green/blues.

Depending how often you'll change it, you could hook up some JS to make left/right click increment/decrement the temps?

Is there a reason you only drop to 16 during the day (instead of 15)?

0/0
 Reply   Quote More 

 From:  ANT_THOMAS  
 To:  Peter (BOUGHTONP)     
39808.826 In reply to 39808.825 
No real reason. I think it was because there's a chance I could be in during the day so I didn't want it at 15, but it's not like 16 is at all comfortable though, may as well be 18 during the day.

On Auto the heating will only turn on when I'm in the house.
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ALL
39808.827 
Anyone know how to cross compile stuff for the Pi on a desktop computer? I am working on my boiler program and it's getting annoying changing one character and waiting so long for it to compile on the Pi. Be nice if I could do it on here to speed things up.

Me
0/0
 Reply   Quote More 

 From:  CHYRON (DSMITHHFX)  
 To:  Chris (CHRISSS)     
39808.828 In reply to 39808.827 
Emulator?

http://www.makeuseof.com/tag/emulate-raspberry-pi-pc/
Hostess Saves Twinkies By Automating, Fires 94% Of Their Workforce
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  CHYRON (DSMITHHFX)     
39808.829 In reply to 39808.828 
Worth a try. Thanks.

Me
0/0
 Reply   Quote More 

 From:  ANT_THOMAS  
 To:  Chris (CHRISSS)     
39808.830 In reply to 39808.827 
It is possible

Under ubuntu/debian install gcc-arm-linux-gnueabi

Then rather than running something like this on the Pi

gcc -o program source.c

You'd do something like

arm-unknown-linux-gnueabi-gcc -o program source.c

https://www.raspberrypi.org/forums/viewtopic.php?f=31&t=7493

For the kernel but will give you what to install - http://elinux.org/Raspberry_Pi_Kernel_Compilation#Ubuntu


Though after a bit more reading that forum post is quite old, and other instructions look more complex. Worth a go though.

This could be more usefulhttp://blog.felipe.rs/2015/01/20/how-to-build-a-gcc-cross-compiler-for-the-raspberrypi/
 
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ANT_THOMAS     
39808.831 In reply to 39808.830 
Thanks Ant. Got a VM with some Linux distro on it so I'll give that a go when I get a chance.

Me
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  Chris (CHRISSS)     
39808.832 In reply to 39808.831 
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?

Me
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  Chris (CHRISSS)     
39808.833 In reply to 39808.832 
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.

Me
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  Chris (CHRISSS)     
39808.834 In reply to 39808.833 
Gonna try the 

Windows toolchain for Raspberry/PI instead


Me
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  Chris (CHRISSS)     
39808.835 In reply to 39808.834 
Woah! Big text :O

Me
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ALL
39808.836 
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.

Me
0/0
 Reply   Quote More 

 From:  CHYRON (DSMITHHFX)  
 To:  Chris (CHRISSS)     
39808.837 In reply to 39808.833 
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.
Hostess Saves Twinkies By Automating, Fires 94% Of Their Workforce
0/0
 Reply   Quote More 

 From:  ANT_THOMAS  
 To:  Chris (CHRISSS)     
39808.838 In reply to 39808.836 
Sftp
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ANT_THOMAS     
39808.839 In reply to 39808.838 
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.

Me
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  CHYRON (DSMITHHFX)     
39808.840 In reply to 39808.837 
The newer emulator is much faster than the old one. I've not run anything particularly taxing on it but it runs pretty well.

Me
0/0
 Reply   Quote More 

Reply to All  
 

1–20  …  781–800  801–820  821–840  841–853

Rate my interest:

Adjust text size : Smaller 10 Larger

Beehive Forum 1.5.2 |  FAQ |  Docs |  Support |  Donate! ©2002 - 2024 Project Beehive Forum

Forum Stats