Go to advanced search

by buja
Wed Dec 13, 2017 11:51 am
Forum: Python
Topic: SDS021 sleep/wake with python
Replies: 3
Views: 96

Re: SDS021 sleep/wake with python

I hope to receive my SDS021 soon, I am surprised the datasheet does not mention how to go to sleep mode. Maybe is the same as the SDS011 sensor for which I found this datasheet: https://www.google.nl/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&cad=rja&uact=8&ved=0ahUKEwij4azO9YbYAhUCI1AKHRdfA0IQFgg3MAI...
by buja
Mon Dec 11, 2017 7:53 pm
Forum: General discussion
Topic: Help! - I need to launch LXTerminal at startup on the desktop.
Replies: 3
Views: 141

Re: Help! - I need to launch LXTerminal at startup on the desktop.

To launch LXTerminal at startup on the desktop you must add a line to the autostart file, which is in your personal configuration directory. nano ~/.config/lxsession/LXDE-pi/autostart You should see a couple of lines starting with @, add a line with 'x-terminal-emulator': @lxpanel --profile LXDE-pi ...
by buja
Fri Dec 08, 2017 11:38 am
Forum: C/C++
Topic: how to update or reinstall wiringPi of either prior installation source
Replies: 33
Views: 1046

Re: how to update or reinstall wiringPi of either prior installation source

I understand what you mean, but you should not expect that. The examples you mention all have in common that they are easy to use as long as you stick to the use case the makers had in mind, the perfect regular consumer. This consumer should stay inside the box and use the package manager to install...
by buja
Fri Dec 08, 2017 10:03 am
Forum: C/C++
Topic: how to update or reinstall wiringPi of either prior installation source
Replies: 33
Views: 1046

Re: how to update or reinstall wiringPi of either prior installation source

System stuff in system folders, user stuff in local folders. wiringPi is wiringPi (analogously similar programs and libs), so why have 2 different install root dirs and 1 extra in a home dir? But after all that wouldn't matter if there was a system GUI dashboard for overview and uninstall functions...
by buja
Sat Dec 02, 2017 9:27 am
Forum: C/C++
Topic: Undefined reference to main / Undefined reference to 'some_function'
Replies: 5
Views: 234

Re: Undefined reference to main / Undefined reference to 'some_function'

What happens if you give this command (fill in your own filenames here): gcc -o main main.c module.c This should produce an executable file with the main , which you can run. Building (=making an executable file) only main.c fails because it contains functions that are defined in module.c, and the c...
by buja
Fri Dec 01, 2017 7:05 pm
Forum: C/C++
Topic: A simple weather/environmental data collector in C
Replies: 10
Views: 341

Re: A simple weather/environmental data collector in C

Yeah, totally impossible to find something :?: Oh wait, I just ordered a BME 680 from Pimoroni (link: https://shop.pimoroni.com/products/bme680). The description has two links to Github sites, one with a Python library and one with a C library ;) (C library by Bosch, the manufacturer of the sensor)
by buja
Thu Nov 30, 2017 7:03 pm
Forum: Beginners
Topic: Connect to laptop
Replies: 5
Views: 169

Re: Connect to laptop

If with "connect to laptop" you mean controlling the Pi from the laptop: yes that is possible. Here are some useful links: 1. https://www.raspberrypi.org/documentation/remote-access/ 2. https://www.raspberrypi.org/documentation/remote-access/vnc/README.md Link 2 is about VNC. In short: connect your ...
by buja
Thu Nov 30, 2017 7:17 am
Forum: C/C++
Topic: A simple weather/environmental data collector in C
Replies: 10
Views: 341

Re: A simple weather/environmental data collector in C

Interesting stuff! On your Github page on the CS811 sensor you mention it is not working flawlessly with the Raspberry Pi. The Pi Hut sells this sensor and on their website ( https://thepihut.com/products/adafruit-ccs811-air-quality-sensor-breakout-voc-and-eco2 ) they say: Finally, this chip (CS811)...
by buja
Wed Nov 29, 2017 9:09 pm
Forum: Beginners
Topic: pygame in geany (c) possible?
Replies: 4
Views: 174

Re: pygame in geany (c) possible?

It's really simple (example in Python 2): # Just giving sensorValue some number to work with sensorValue = 105 voltage = sensorValue * 5.0 / 1023.0 print voltage # Or for Python 3: print(voltage) It's not that much different from C. By the way, Geany is just an editor, a nice editor with some handy ...
by buja
Wed Nov 29, 2017 6:09 pm
Forum: Raspbian
Topic: sudo apt-get update fails
Replies: 4
Views: 218

Re: sudo apt-get update fails

Welcome :lol:
by buja
Tue Nov 21, 2017 7:30 am
Forum: General discussion
Topic: Raspberry PI official wireless dongle
Replies: 4
Views: 188

Re: Raspberry PI official wireless dongle

I have a Pi 2B with an official RPi WiFi dongle running Raspbian Stretch. It works without any problems.
In fact, when I upgraded from Jessie to Stretch I did not pay any attention to it, worked right out of the box.

This is my weather station, so it runs 24/7.
by buja
Sat Nov 18, 2017 3:18 pm
Forum: C/C++
Topic: how to update or reinstall wiringPi of either prior installation source
Replies: 33
Views: 1046

Re: how to update or reinstall wiringPi of either prior installation source

If wiringPi was installed from the package manager, APT knows about it. apt list wiringpi Listing... Done wiringpi/stable,now 2.44+1 armhf [installed] This shows wiringPi was installed through APT, and any updates will be automatically handled by APT. But this is with Raspbian Stretch, if you are st...
by buja
Sun Oct 29, 2017 7:02 pm
Forum: Python
Topic: Graphic window for python GTK compiler Geany
Replies: 6
Views: 298

Re: Graphic window for python GTK compiler Geany

I am afraid the Geany part is the only thing I can help you with, I hope someone else can help you with the graphical part of your question.
by buja
Sun Oct 29, 2017 4:46 pm
Forum: Python
Topic: Graphic window for python GTK compiler Geany
Replies: 6
Views: 298

Re: Graphic window for python GTK compiler Geany

I think you will find this useful: https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=191818#p1203549 With the upgrade to Raspbian Stretch something has changed in the behaviour of either Geany or lxterminal, and because of that the terminal dow does not work properly anymore. But it's an easy ...
by buja
Sat Oct 28, 2017 10:37 am
Forum: C/C++
Topic: Problem with Geany - 'execute' command displays blank terminal window
Replies: 6
Views: 580

Re: Problem with Geany - 'execute' command displays blank terminal window

I think you will find the solution here: https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=191818#p1203549 buja, the link you posted is about Python. No, it's not. While the original poster had this problem with Python, I had the same problem with C after upgrading to Raspbian Stretch. The so...
by buja
Thu Oct 05, 2017 4:48 pm
Forum: Raspbian
Topic: HTML Editor.
Replies: 6
Views: 6755

Re: HTML Editor.

Bluefish is in the repository, so you install it easily:

Code: Select all

sudo apt install bluefish
(or sudo apt-get install bluefish if you like old style better)
by buja
Wed Sep 20, 2017 5:21 am
Forum: Raspbian
Topic: Change your default password.
Replies: 4
Views: 5771

Re: Change your default password.

I found this link: https://www.modmypi.com/blog/how-to-change-the-default-account-username-and-password It is an easy way to change the default user name and I have used it on a Pi after upgrading to Raspbian Stretch, so on a clean system. So far it seems to work well. When using sudo it will ask fo...
by buja
Sun Sep 03, 2017 5:28 am
Forum: Nederlands
Topic: Ik wil een programma headless opstarten
Replies: 5
Views: 795

Re: Ik wil een programma headless opstarten

Misschien helpt het een ampersand (&) toe te voegen aan het command.

Zie ook: https://www.raspberrypi.org/documentati ... c-local.md
by buja
Sun Aug 27, 2017 9:15 pm
Forum: Raspbian
Topic: Geany broken in Stretch ?
Replies: 7
Views: 1020

Re: Geany broken in Stretch ?

I found another solution (to my own problem !) after much searching and some experimentation : Change the first line after [tools] in ~/.config/geany/geany.conf to terminal_cmd=x-terminal-emulator --command="/bin/sh %c" and reboot Great! So it seems the x-terminal-emulator command has changed a bit...
by buja
Sun Aug 27, 2017 6:46 pm
Forum: Raspbian
Topic: Geany broken in Stretch ?
Replies: 7
Views: 1020

Re: Geany broken in Stretch ?

I have not solved the problem, but I did found a work-around. Under Edit / Preferences / Terminal check "Execute programs in the VTE". Geany will run your program in its own terminal at the bottom of the window. It's not really an alternative for a full terminal window, but it might help a bit. Any ...
by buja
Sun Aug 27, 2017 5:56 am
Forum: Raspbian
Topic: Geany broken in Stretch ?
Replies: 7
Views: 1020

Re: Geany broken in Stretch ?

I am having the same problem, both on my Pi and a laptop running Debian Stretch, previous versions (Wheezy, Jessie) worked fine.
by buja
Fri Aug 11, 2017 5:24 am
Forum: Beginners
Topic: Setup FileZilla
Replies: 6
Views: 1212

Re: Setup FileZilla

Delete it (the bz2-file) and install FileZilla in the usual way from the standard repository:

Code: Select all

sudo apt-get install filezilla
Easy and it just works.
by buja
Sun Aug 06, 2017 9:19 pm
Forum: General discussion
Topic: Sharing projects??
Replies: 7
Views: 543

Re: Sharing projects??

If you go to the Board Index you will find almost 60 subforums to choose from, 8 of which are under "Projects". You may have some difficulty in deciding which is the right one for your particular project, but unless you file a flight simulator project under Magazines and Books you should be fine. An...

Go to advanced search