Go to advanced search

by Silversonic
Mon Jan 04, 2016 4:43 pm
Forum: Beginners
Topic: Leaving PiCam/Motion sensor plugged in when swapping distros
Replies: 0
Views: 335

Leaving PiCam/Motion sensor plugged in when swapping distros

I only have one raspberry pi and I'd like to leave my PiCamera/motion sensor plugged in to it permanently because it's a burden to constantly connect and disconnect the things especially when it's enclosed in a case. Although I also use this RPi with OSMC as a media server, where I watch movies off ...
by Silversonic
Sat Jan 02, 2016 10:07 pm
Forum: Beginners
Topic: Setting spibox to use smtp with hotmail?
Replies: 6
Views: 1166

Setting spibox to use smtp with hotmail?

I've been following this guide on setting up the spibox (raspberry pi + camera + motion sensor) to send an email using gmail smtp outgoing mail server. http://www.spi-box.co.uk/media/1087/spiboxmanual_1.pdf I've managed to be successful in doing this for gmail, but now I want to use smtp with hotmai...
by Silversonic
Wed Nov 04, 2015 2:14 am
Forum: Beginners
Topic: Powering external HDD with Raspberry Pi B.
Replies: 4
Views: 740

Re: Powering external HDD with Raspberry Pi B.

Guess I'll install OSMC on my RP2 then.

Kind of annoying but I found out the 5V 2A power supply that came with my RP2 doesn't work...guess I'll have to wait for a replacement before I can try this out.
by Silversonic
Tue Nov 03, 2015 11:46 pm
Forum: Beginners
Topic: Powering external HDD with Raspberry Pi B.
Replies: 4
Views: 740

Powering external HDD with Raspberry Pi B.

I have an ordinary Raspberry Pi B with OSMC installed. I was hoping to be able to plug in an external HDD and play some movies off it, however I'd really like to do this with just one power slot rather than two (one for a powered USB hub and the other for the raspberry pi). One solution is to power ...
by Silversonic
Sun Mar 08, 2015 3:56 pm
Forum: Beginners
Topic: Auto-starting a cpp program that uses ncurses?
Replies: 3
Views: 544

Re: Auto-starting a cpp program that uses ncurses?

Thanks for the help guys. ~/.bashrc did the trick.


One last additional thing. Is it possible while SSHing to make a script to output to the Pi's connected screen (rather than outputting on to Putty?)

Edit: Yes, sorry. It was in dougie's post. /home/pi/program > /dev/tty1
by Silversonic
Sun Mar 08, 2015 3:48 am
Forum: Beginners
Topic: Auto-starting a cpp program that uses ncurses?
Replies: 3
Views: 544

Auto-starting a cpp program that uses ncurses?

My cpp program uses ncurses to display stuff in the center of the screen. Is it possible to make such a program auto-load on Pi start? Because I tried shoving home/pi/program In to /etc/rc.local, but unfortunately when starting up my Pi the ncurses output doesn't act normal, instead my output is shi...
by Silversonic
Wed Mar 04, 2015 7:06 pm
Forum: C/C++
Topic: Making output (e.g. "Hello World") center display.
Replies: 2
Views: 619

Re: Making output (e.g. "Hello World") center display.

Good package. Thanks.
by Silversonic
Wed Mar 04, 2015 4:11 am
Forum: C/C++
Topic: Making output (e.g. "Hello World") center display.
Replies: 2
Views: 619

Making output (e.g. "Hello World") center display.

I'm looking to develop a C++ Program that removes what's currently on my PiTFT display and places the output (cout) at the centre of the screen. For instance, a simple "Hello World" program called main which, when I type ./main in to the command line, removes all previous command line data and simpl...
by Silversonic
Wed Mar 04, 2015 2:29 am
Forum: Beginners
Topic: Running executables made on windows?
Replies: 6
Views: 872

Re: Running executables made on windows?

Thanks for the replies. Installed libcurl via the .tar package on their website and

Code: Select all

g++ -std=c++0x -o main -I/usr/local/include -L/usr/local/lib -lcurl CurrentGameLoopPi.cpp CurrentGameFunctions.cpp

did the trick. Wasn't as bad as I thought it'd be.
by Silversonic
Tue Mar 03, 2015 10:01 pm
Forum: Beginners
Topic: Running executables made on windows?
Replies: 6
Views: 872

Re: Running executables made on windows?

Hmm, that's kind of what I was afraid of. I had a hard time installing the libcurl library (which my file uses) on my windows system, imagine it's going to be just as bad on my Pi.
by Silversonic
Tue Mar 03, 2015 6:10 pm
Forum: Beginners
Topic: Running executables made on windows?
Replies: 6
Views: 872

Running executables made on windows?

Is this possible? I made a c++ program with MinGW on windows and I ported this to my Pi, but it didn't seem to run.

Would I have to recompile using cygwin for this to work with my Pi?
by Silversonic
Mon Feb 23, 2015 12:33 am
Forum: Beginners
Topic: Swapping between PiTFT and HDMI display.
Replies: 8
Views: 4477

Re: Swapping between PiTFT and HDMI display.

And 'con2fbmap 1 0' actually does the same as 'the fbcon=map:10' in config.txt, albeit at a later stadium. Last thing really. Everything would be perfect except con2fbmap 1 0 stops fbcon=map:10, but it does not stop the fbcon=font:VGA8x8 in /boot/cmdline.txt. Thus when the console swaps over the re...
by Silversonic
Sun Feb 22, 2015 11:47 pm
Forum: Beginners
Topic: Swapping between PiTFT and HDMI display.
Replies: 8
Views: 4477

Re: Swapping between PiTFT and HDMI display.

The issue I'm having is when you remove /usr/share/X11/xorg.conf.d/99-fbdev.conf, when loading startx it seems like look for a file in /usr/share/X11/xorg.conf.d/ which no longer exists. That only means that it's looking for files there. If nothing is there it will use the defaults. Aye but at that...
by Silversonic
Sun Feb 22, 2015 7:48 pm
Forum: Beginners
Topic: Swapping between PiTFT and HDMI display.
Replies: 8
Views: 4477

Re: Swapping between PiTFT and HDMI display.

I have been working with another user on something like this (http://www.raspberrypi.org/forums/viewtopic.php?f=44&t=91764) In the end I came to the conclusion that it's much simpler to change display settings instead of trying to manipulate modules. AFAICT this should also work on the new 3.18 ker...
by Silversonic
Sun Feb 22, 2015 5:48 pm
Forum: Beginners
Topic: Swapping between PiTFT and HDMI display.
Replies: 8
Views: 4477

Re: Swapping between PiTFT and HDMI display.

Using expandable's advice the following bash script, does the trick; #!/bin/bash tvservice -m CEA > /home/pi/tvservice/tvservice2.sh tvservice=$(cat /home/pi/tvservice/tvservice2.sh | awk '/(prefer)/ {print $4}' | tail -c 10) state=$(cat /home/pi/tvservice/state.txt) if [[ $tvservice != "" ]] && [[ ...
by Silversonic
Sun Feb 22, 2015 12:30 am
Forum: Beginners
Topic: Swapping between PiTFT and HDMI display.
Replies: 8
Views: 4477

Re: Swapping between PiTFT and HDMI display.

Hi i made a script that swaps the config file that has the monitor resolution in this case 1080p and 720p. So if my pi connects to a tv that has 720p the script will detect the resolution is not 1080p and reboot the pi to 720p. So in your case you can mod the script to detect the pitft display if i...
by Silversonic
Fri Feb 20, 2015 2:21 pm
Forum: Beginners
Topic: Swapping between PiTFT and HDMI display.
Replies: 8
Views: 4477

Swapping between PiTFT and HDMI display.

Hi, I've got my PiTFT display working on my Pi and it's great (using the capacitive image: https://learn.adafruit.com/adafruit-2-8-pitft-capacitive-touch/overview). I have two Raspberry Pi's, one connected to a HDMI monitor and the other working with this TFT display. What I would desire is to be ab...
by Silversonic
Sun Dec 28, 2014 10:37 pm
Forum: Beginners
Topic: Using wireless with domoticz?
Replies: 5
Views: 3597

Re: Using wireless with domoticz?

Why are you still using WEP it was cracked many years ago and takes about five minutes to open your network? If you can convert to WPA or WPA2 you will gain some security. If you insist on using WEP remove the psk line and replace it with a WEP_KEY0 line. I understand WEP sucks, but for the moment ...
by Silversonic
Sun Dec 28, 2014 9:41 pm
Forum: Beginners
Topic: Using wireless with domoticz?
Replies: 5
Views: 3597

Re: Using wireless with domoticz?

DirkS wrote:Can you also post your /etc/network/interfaces?

Gr
Dirk.

Code: Select all

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

by Silversonic
Sun Dec 28, 2014 4:58 pm
Forum: Beginners
Topic: Using wireless with domoticz?
Replies: 5
Views: 3597

Re: Using wireless with domoticz?

Bump?
by Silversonic
Sat Dec 27, 2014 11:20 pm
Forum: Beginners
Topic: Using wireless with domoticz?
Replies: 5
Views: 3597

Using wireless with domoticz?

Does the domoticz distribution prevent use of a wifi adapter? I've been trying and researching and I've been unable to get wireless to work. My most recent method was to follow this guide: http://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md , this is what I do; pi@domotic...
by Silversonic
Wed Dec 24, 2014 6:59 pm
Forum: Beginners
Topic: Looking to make a portable media server..ideal external HDD?
Replies: 5
Views: 1064

Looking to make a portable media server..ideal external HDD?

Currently I'm streaming films on my computer on to a TV from my Pi (model B) using xbmc. I'd like to buy an external HDD and eliminate the need for a computer and also make this portable. But I had a couple questions: 1) Can the Pi solo-power external hard-drives, or am I most likely going to have t...
by Silversonic
Fri Oct 31, 2014 2:23 pm
Forum: Python
Topic: Getting the clutter module?
Replies: 4
Views: 1149

Re: Getting the clutter module?

There's a lot of clutter on the web ;) Do you have a link to the main page for clutter? Maybe that can give some clues. Gr. Dirk. I've prowled all around the site; http://blogs.gnome.org/clutter/get-it/ I've tried multiple tar files from the get-it section. Every time I download a tar, unzip, I rec...
by Silversonic
Thu Oct 30, 2014 4:31 pm
Forum: Python
Topic: Getting the clutter module?
Replies: 4
Views: 1149

Getting the clutter module?

I'm trying to follow a guide about running a very simple clutter-bases program in Python import clutter stage=clutter.stage stage.set_size(500,300) red=clutter.Color(255,0,0,255) black=clutter.Color(0,0,0,255) stage.set_color(black) stage.show_all() But of course I need the clutter module first, I k...
by Silversonic
Sun Oct 05, 2014 12:13 am
Forum: Troubleshooting
Topic: Setting up wlan0 to static IP isn't happening automatically.
Replies: 2
Views: 848

Re: Setting up wlan0 to static IP isn't happening automatica

Final update for anyone who has this issue; I just added a script to run on start-up which just does; sudo ifconfig wlan0 192.168.42.1 this conveniently runs before the dhcp server and tor are started, and so my issues are fixed. It's obviously not the correct way but it's a work around for whatever...

Go to advanced search