Go to advanced search

by mfa298
Sat Oct 15, 2016 9:28 am
Forum: Beginners
Topic: Take the function output into a variable
Replies: 13
Views: 1679

Re: Take the function output into a variable

Thank you for the link. It will be a big help. I'm trying to work out how long I puzzle over something before I acccept I'm going round in circles! Still I'm enjoying it and winter is round the corner so it will be something to do. There's nothing wrong with asking for pointers to a solution (or ev...
by mfa298
Sat Oct 15, 2016 9:13 am
Forum: General discussion
Topic: Raspberry Pi Server
Replies: 12
Views: 2194

Re: Raspberry Pi Server

Thank you for the reply but I`m new to raspberry pi so I follow the steps mentioned in http://www.instructables.com/id/Raspberry-PI-and-DHT22-temperature-and-humidity-lo/?ALLSTEPS as I`m using DHT22 sensor too. Instead of using localhost of raspberry pi, I want to store the sensor readings in my la...
by mfa298
Sat Oct 15, 2016 8:59 am
Forum: General discussion
Topic: What I really want.
Replies: 41
Views: 6056

Re: What I really want.

First it will power down a port of a system with a non allowed MAC, has nothing to do with the DHCP server (I do not use DHCP, static on local network). ... I would like to see you connect to a network that dissables the physical port to the switch as soon as you connect, that would be impressive. ...
by mfa298
Fri Oct 14, 2016 11:14 pm
Forum: General discussion
Topic: What I really want.
Replies: 41
Views: 6056

Re: What I really want.

Great, and if multiple non allowed devices had connected to the wired network with in a short time (you plug in and boot the RPi while some one attempts to steel internet by plugging in on your porch CAT5 outlet), then what, how do you know for sure which one to allow, without potentially giving th...
by mfa298
Fri Oct 14, 2016 12:02 pm
Forum: Beginners
Topic: Take the function output into a variable
Replies: 13
Views: 1679

Re: Take the function output into a variable

or the terminal option on the raspberry pi If you mean bash, you can return the output from stdio to a variable with WHATEVER=$( some_function_or_program ) echo "This is WHATEVER: |$WHATEVER|" So: #!/bin/bash THE_DATE=$( date ) echo "This is the date: $THE_DATE" When I first configured the system I...
by mfa298
Fri Oct 14, 2016 7:41 am
Forum: General discussion
Topic: Raspberry Pi Server
Replies: 12
Views: 2194

Re: Raspberry Pi Server

Does anyone know how to read sensor readings from raspberry pi and use laptop`s server (localhost) to access the database of the readings? Yes. But without some more information about what you're using or what to use, what database you have or want and what server is running on your laptop it's not...
by mfa298
Fri Oct 14, 2016 6:21 am
Forum: General discussion
Topic: Probelm on isc-dhcp-server, interfaces wlan0
Replies: 2
Views: 1085

Re: Probelm on isc-dhcp-server, interfaces wlan0

you may want to look in /var/log/syslog or /var/log/messages (or wherever you've specified the logs to go) as they should show the full output from dhcpd, the error message is probably around 20 lines before what journalctl is showing. My experience is that the error messages are usually informative...
by mfa298
Thu Oct 13, 2016 9:13 pm
Forum: General discussion
Topic: Why buy codecs? Isn't codec free?
Replies: 23
Views: 11667

Re: Why buy codecs? Isn't codec free?

I'm curious why the foundation hasn't included this in the price of purchase rather than charge separately? The foundation has for some codecs (h264), but not others (mpeg2 and vc-1). I think this was a tradeoff on costs and usefulness. Including all the codec licenses would have increased the cost...
by mfa298
Thu Oct 13, 2016 4:37 pm
Forum: General discussion
Topic: Utilise RAM
Replies: 10
Views: 1668

Re: Utilise RAM

Most of the time the rpi3 I use has nearly 900 out of 925 MiB of RAM free. There is 256mib associated to gpu That doesn't add up, If you had 256Mb given to the GPU then there'll only be 768Mb for the CPU (unless you've changed that since your first post). Unless you're actually using the GPU for st...
by mfa298
Thu Oct 13, 2016 2:37 pm
Forum: General discussion
Topic: Edit rc.local from Python
Replies: 9
Views: 1797

Re: Edit rc.local from Python

I have never worked with the systemd startup, but from what I can gather that is more like running a service? Using rc.local to start a program effectively means you're running a service as well if it's set to run in the background. With systemd you can have processes that run continuously (aka a s...
by mfa298
Thu Oct 13, 2016 11:31 am
Forum: General discussion
Topic: Edit rc.local from Python
Replies: 9
Views: 1797

Re: Edit rc.local from Python

If you want to change whats run on startup programatically possibly a better approach might be to use systemd rather than rc.local to control starting of your scripts. That way you could have a template version of the systemd config for your script and use that to put in a new version. reading and t...
by mfa298
Thu Oct 13, 2016 10:34 am
Forum: Beginners
Topic: Multiple Raspberry Pis writing one database over WiFi
Replies: 3
Views: 1014

Re: Multiple Raspberry Pis writing one database over WiFi

I have searched online but I can't find something allowing multiple Raspberry Pi to write a single database. Anyone to point me in the right direction? Thanks. With something like MySQL that shouldn't be too hard to achieve, You may need to update it's configuration to listen on all network connect...
by mfa298
Thu Oct 13, 2016 8:42 am
Forum: Troubleshooting
Topic: GBs of 3G data being consumed by Pi's system process!
Replies: 2
Views: 509

Re: GBs of 3G data being consumed by Pi's system process!

... I checked the process list and found ~300 processes running called " loop /pi/udevd"! Clearly something is spiraling out of control. The only device connected to the Pi is the SparqEE modem. There is a local Ethernet connection, but it sends only tiny info on the hour. Making an educated guess,...
by mfa298
Thu Oct 13, 2016 7:46 am
Forum: General discussion
Topic: What I really want.
Replies: 41
Views: 6056

Re: What I really want.

I install the Raspian the "old" way, copying it to the sd card, not using NOOBS. This means I have to "steal" a monitor and keyboard for a PC to get going. Not a big problem, but everything is a lot easier with this label. And it can not cost many cents. Most of my pis are headless and installed th...
by mfa298
Wed Oct 12, 2016 10:33 am
Forum: Advanced users
Topic: IR barrier
Replies: 7
Views: 2295

Re: IR barrier

As far as I know, the TSOP38238 uses 38kHz barrier frequency. So a 38kHz signal may be needed for the IR led also... Not sure how this can be done... Any suggestions? It should be fairly easy to generate the 38khz through something like pwm from the pi. Alternatively if you don't need to control it...
by mfa298
Tue Oct 11, 2016 12:45 pm
Forum: Troubleshooting
Topic: How to monitor threads activities
Replies: 4
Views: 3502

Re: How to monitor threads activities

Hi! Could you suggest me a method to analize what are the threads that are runnig (something like "task manager" in windows)? My python script launches simultaneously three thread every about five seconds. Each thread runs for about one second then he finishes his activities. The problem is that af...
by mfa298
Tue Oct 11, 2016 9:10 am
Forum: Advanced users
Topic: viewing running processes output from ssh
Replies: 8
Views: 3296

Re: viewing running processes output from ssh

To summarise what others have said and add another useful tool to the list. If the process is long lived and you don't need to interact with it other than to see what's happening setting it up to log is generally the preferred option, You can either send the output to a file or a better option might...
by mfa298
Sun Oct 09, 2016 2:37 pm
Forum: Troubleshooting
Topic: Issues Installing Gems through Ruby on Rails on Rpi 3
Replies: 1
Views: 1078

Re: Issues Installing Gems through Ruby on Rails on Rpi 3

I'm trying to install Huginn on a raspberry pi 3 running Debian Jesse (arm). Bundle install fails while trying to install unf_ext: ... I'm a beginner with all of this, so any help would be greatly appreciated. Thanks. This is something you probably need to raise with the gem author as it may not be...
by mfa298
Sat Oct 08, 2016 10:04 am
Forum: Advanced users
Topic: Problem on rpi3 with special bootcode.bin after upgrade
Replies: 6
Views: 1038

Re: Problem on rpi3 with special bootcode.bin after upgrade

I wonder if you could either remove the firmware and kernel packages or pin them so they don't get updated via an apt-get upgrade. I've not got a Pi setup with MSD to test so can't give much useful instruction, so backup anything important and experiment. Pinning might be the safer option as you're ...
by mfa298
Fri Oct 07, 2016 10:24 am
Forum: Advanced users
Topic: Compile ffmpeg on diffrent Pi's
Replies: 4
Views: 1560

Re: Compile ffmpeg on diffrent Pi's

tl;dr: compiling ffmpeg on RasPi Zero doesn't work, can i put card into RasPi 3? How do i check "that no RPi3 specific flags has snuck in"? You'll need to look at the flags being sent to gcc from the makefile (these might be displayed at the end of the configure script). Anything compiled on the Ze...
by mfa298
Thu Oct 06, 2016 7:22 am
Forum: Troubleshooting
Topic: Raspbian won't download
Replies: 2
Views: 598

Re: Raspbian won't download

I have just got my raspberry Pi 3 model b today, booted it up for the first time from an micro sd card preloaded with NOOBS and selected to install Raspbian after configuring the wifi on the Pi. The software installed at about 0.3MB/secs for a good amount of time. I checked on the Internet and foun...
by mfa298
Thu Oct 06, 2016 7:15 am
Forum: Beginners
Topic: Monitoring the status of Internet connection
Replies: 4
Views: 2798

Re: Monitoring the status of Internet connection

smokeping is good for ping results.

For getting stats from network devices via snmp I quite like RTG2 https://github.com/jalons/rtg2 which polls for stats on a regular basis and allows for flexible graphing of the stored stats.
by mfa298
Wed Oct 05, 2016 11:40 pm
Forum: Advanced users
Topic: Pi Zero as USB Memory Stick
Replies: 5
Views: 1498

Re: Pi Zero as USB Memory Stick

Thanks. Two comments there - "I tried g_mass_storage without luck", " can't seem to get g_mass_storage to work" - and similar elsewhere, is what made me question if it does actually work. I don't have a Zero ( nor A+ ) but I guess the best path will be to get one and try it. If you don't have a Zer...
by mfa298
Wed Oct 05, 2016 9:46 pm
Forum: Advanced users
Topic: Pi Zero as USB Memory Stick
Replies: 5
Views: 1498

Re: Pi Zero as USB Memory Stick

Thanks. Two comments there - "I tried g_mass_storage without luck", " can't seem to get g_mass_storage to work" - and similar elsewhere, is what made me question if it does actually work. I don't have a Zero ( nor A+ ) but I guess the best path will be to get one and try it. If you don't have a Zer...
by mfa298
Wed Oct 05, 2016 3:38 pm
Forum: General discussion
Topic: Which components of the Pi have writable firmware..?
Replies: 113
Views: 14180

Re: Which components of the Pi have writable firmware..?

I've heard you can change what results are obtained when trying to read the serial number from the Pi by the application of a moderately heavy blow on the SoC from the rounded end of a ball-peen hammer. This will prevent anyone from reading the serial number in the future. I believe you can also st...

Go to advanced search