Go to advanced search

by emgi
Sat May 20, 2017 7:42 pm
Forum: Beginners
Topic: Networking
Replies: 23
Views: 3534

Re: Networking

Actually there is something else: You also need to edit /etc/nsswitch.conf. Remove the text “[NOTFOUND=return]” as follows: hosts: files dns mdns4_minimal and comment the original line out (or just change it) #hosts: files mdns4_minimal [NOTFOUND=return] dns That should fix your problem
by emgi
Sat May 20, 2017 5:59 pm
Forum: Beginners
Topic: Networking
Replies: 23
Views: 3534

Re: Networking

What happens if you try to ping to huttewksta001.hutte.local. ??
(please note the dot in the end, it is significant)
by emgi
Sat May 20, 2017 3:26 pm
Forum: Beginners
Topic: Networking
Replies: 23
Views: 3534

Re: Networking

No worries!
Can you post the output of:

Code: Select all

nslookup huttewksta001
by emgi
Sat May 20, 2017 3:12 pm
Forum: Automation, sensing and robotics
Topic: Home moisture sensing
Replies: 5
Views: 1183

Re: Home moisture sensing

I'm using two of these in my greenhouse: https://akizukidenshi.com/download/ds/aosong/AM2320.pdf
They work flawless with joan's pigpio library: http://abyz.co.uk/rpi/pigpio/index.html

/emgi
by emgi
Sat May 20, 2017 1:37 pm
Forum: Beginners
Topic: Networking
Replies: 23
Views: 3534

Re: Networking

Each time you make a change to a zone file, don't forget to update the serial number. According to the listing, this is still at 0. Increase the serial number, run rndc reload and try again. In my named.conf.local I preserved some of the initial comments. It says: // Consider adding the 1918 zones h...
by emgi
Fri May 19, 2017 8:04 pm
Forum: Beginners
Topic: Networking
Replies: 23
Views: 3534

Re: Networking

The objective of the search directive is to include additional domains to be checked when encountering an unqualified domain name, i.e a hostname without a domain. nslookup huttewksta001 should check the hutte.local domain and return the corresponding ip. However, nslookup hutte.local is pointing to...
by emgi
Fri May 19, 2017 3:47 pm
Forum: Beginners
Topic: Networking
Replies: 23
Views: 3534

Re: Networking

Add your entry to /etc/resolvconf.conf like this:
search_domains=hutte.local

Then reboot or run resolvconf -u (as root)

/leo
by emgi
Sat May 13, 2017 6:58 pm
Forum: General discussion
Topic: Controlling a 100 watt single output power supply?
Replies: 15
Views: 2233

Re: Controlling a 100 watt single output power supply?

Relays are old fashioned. You should look at using power mosfets.
Example: https://www.sparkfun.com/products/10213

/emgi
by emgi
Sat May 13, 2017 3:41 pm
Forum: Troubleshooting
Topic: Wired ssh issue
Replies: 2
Views: 714

Re: Wired ssh issue

This smells (again) like a power supply issue. :mrgreen:
by emgi
Sat May 13, 2017 3:29 pm
Forum: Beginners
Topic: Always request password when using sudo
Replies: 8
Views: 6617

Re: Always request password when using sudo

Probably not. :lol:
Should be tested.
by emgi
Sat May 13, 2017 10:38 am
Forum: Beginners
Topic: Always request password when using sudo
Replies: 8
Views: 6617

Re: Always request password when using sudo

This can also be used to give other users the privilege of not having to enter passwords over and over. Poorly documented but it works: #cat /etc/sudoers.d/020_leo-nopasswd leo ALL=(ALL) NOPASSWD: ALL This obviously allows nopassword for the user leo. I just put it in the directory with vi since I c...
by emgi
Sat May 13, 2017 8:46 am
Forum: Other programming languages
Topic: Arduino Serial with Perl
Replies: 0
Views: 891

Arduino Serial with Perl

Whenever you search for serial comms between the raspberry pi and Arduino, you are inescapably confronted with python As a longtime Perl-adept I was not satisfied with this. There is a serial port module for Perl but I found it difficult to work with. Nevertheless I managed to make something that wo...
by emgi
Sun May 07, 2017 8:05 am
Forum: C/C++
Topic: pigpio for pwm
Replies: 3
Views: 2341

Re: pigpio for pwm

Meanwhile the setup has been tested succesfully and I can confirm that PWM works.

Thnx Joan!
by emgi
Fri May 05, 2017 7:47 pm
Forum: Other programming languages
Topic: CPU temperature graphs
Replies: 0
Views: 1887

CPU temperature graphs

For years I have been collecting data about my raspberry pi's cpu temperature with the objective to do something nice with it one day. Today appears to be that day! Recently I looked around for a decent graphing solution for my greenhouse and I ended up with Google Graphs. Immediately I realized thi...
by emgi
Wed Apr 26, 2017 4:42 pm
Forum: C/C++
Topic: pigpio for pwm
Replies: 3
Views: 2341

Re: pigpio for pwm

Hi Joan,

Thnx for your fast reply, I will give that a try.
by emgi
Wed Apr 26, 2017 2:32 pm
Forum: C/C++
Topic: pigpio for pwm
Replies: 3
Views: 2341

pigpio for pwm

Hello, I'm using Joan's great pigpio library to read two DHT sensors on a Pi to register in- and outside temperature of my greenhouse. The next step is to add some PWM outputs to operate a couple of fans. I've looked through the functions and I'm sure this is perfectly possible. (And of course I'm n...
by emgi
Thu Mar 16, 2017 6:32 pm
Forum: General discussion
Topic: Reverse ssh - ddns question
Replies: 9
Views: 2168

Re: Reverse ssh - ddns question

Sorry for putting you in the wrong direction with the use of the echo command. That was merely intended as an example. The expression $(between quotes) is a replacement for the awkward single quotes. A sample shell script perhaps illustrates this best: #!/bin/bash old_ssh=$(/bin/pidof ssh) echo $old...
by emgi
Wed Mar 15, 2017 3:26 pm
Forum: General discussion
Topic: Reverse ssh - ddns question
Replies: 9
Views: 2168

Re: Reverse ssh - ddns question

That could be something like:

Code: Select all

echo $(/bin/pidof ssh)
by emgi
Tue Mar 14, 2017 7:52 pm
Forum: General discussion
Topic: Reverse ssh - ddns question
Replies: 9
Views: 2168

Re: Reverse ssh - ddns question

It seems the ssh process does not terminate but keeps on running in a sort of stalled state. That would explain why the crontab check fails to detect a problem. Perhaps you can try a slightly different approach: Regularly check if the ip address has changed. (nslookup to a file, check if equal to pr...
by emgi
Sun Mar 12, 2017 6:55 pm
Forum: Networking and servers
Topic: shh hangs after a short time
Replies: 9
Views: 1834

Re: shh hangs after a short time

Crappy power supply?
by emgi
Sun Mar 12, 2017 6:12 pm
Forum: Troubleshooting
Topic: octoprint printing slow
Replies: 4
Views: 4131

Re: octoprint printing slow

I'm printing with an anet a8 btw. OK, you asked the question in multiple threads but at leastt here I can see the issue is exclusively when using Octoprint. The camera is the biggest resource eater. Is it a supported camera or did you need extensive tweaking to get it to work? Might be an idea to s...
by emgi
Sun Mar 12, 2017 5:52 pm
Forum: Other projects
Topic: 3d Printer host software?
Replies: 15
Views: 7762

Re: 3d Printer host software?

I'm also really happy with Octoprint. My printer is an Anet A8 so nothing like a professional device. I really can't imagine life before octoprint. How did you get your a8 to print smoothly, i have an a8 aswell, and a pi 3 b, but my prints are always printing really slow, like in bursts. :( Hi, I'm...
by emgi
Fri Mar 10, 2017 9:01 pm
Forum: Off topic discussion
Topic: Low Power.
Replies: 54
Views: 7740

Re: Low Power.

That is definitely a better price than I paid, how much do they want for 48 volt rated 5 farad capacitors? That doesn't seem to be available. The standard voltage seems to be 2.7V or multiples of that. Advertized capacity seems to range from 0.47F up to 500F (no typo) :!: . Prices in the 2.7V range...
by emgi
Fri Mar 10, 2017 6:49 pm
Forum: Off topic discussion
Topic: Low Power.
Replies: 54
Views: 7740

Re: Low Power.

I can't help thinking that if capacitors were a sensible and economic way to store electricity then we would not be using batteries all over the place. From torches and phones to Teslas. We don't. So I guess they are not. It was only a few years ago or so that I heard of super caps, this young man ...
by emgi
Wed Mar 08, 2017 8:11 pm
Forum: Beginners
Topic: Line command not working
Replies: 6
Views: 1316

Re: Line command not working

Give it a try with the letter that looks almost the same...
Otherwise, try

Code: Select all

man ls
/emgi

Go to advanced search