Go to advanced search

by SurferTim
Wed Feb 28, 2018 2:00 pm
Forum: Networking and servers
Topic: WiFi Client + AP
Replies: 7
Views: 4829

Re: WiFi Client + AP

I've tested this and it might work for your application. Add this to /etc/network/interfaces auto wlan0 iface wlan0 inet dhcp wpa-ssid "MySSID" wpa-psk "MyPassphrase" Reboot. This will cause the dhcpcd service to fail. Insure your OS is up to date. sudo apt-get update sudo apt-get upgrade Install th...
by SurferTim
Tue Feb 27, 2018 5:13 pm
Forum: Networking and servers
Topic: My ISP Blocked Ports like 80,22 an all. Now how to i host a website over internet
Replies: 9
Views: 1679

Re: My ISP Blocked Ports like 80,22 an all. Now how to i host a website over internet

No-IP is a DDNS service. You still need to be able to get access through an IP/port to your router./RPi.
by SurferTim
Tue Feb 27, 2018 4:35 pm
Forum: Networking and servers
Topic: My ISP Blocked Ports like 80,22 an all. Now how to i host a website over internet
Replies: 9
Views: 1679

Re: My ISP Blocked Ports like 80,22 an all. Now hot to i host a website over internet

My ISP Blocked Ports like 80,22 and all. Now hot to i host a website over internet. I made a project home automation Using IOT. It works on Local network. But i want to control over internet anywhere in the world. Please Help me. Best way is get a commercial account through your ISP. Not free. Seco...
by SurferTim
Mon Feb 26, 2018 1:08 pm
Forum: Beginners
Topic: if x < y then x = y
Replies: 27
Views: 2049

Re: if x < y then x = y

Dangermoth wrote:
Mon Feb 26, 2018 1:07 pm
So if I type "wind_chill_max = 0" at the top of the code does this mean its a global value and not local?

Sorry for the stupid question, I'm still trying to get my head around Python after using C for many years.
Yes. That is what you want by the looks of your code.
by SurferTim
Mon Feb 26, 2018 1:03 pm
Forum: Beginners
Topic: if x < y then x = y
Replies: 27
Views: 2049

Re: if x < y then x = y

Or you can use a min / max function: wind_chill_max = max(wind_chill, wind_chill_max) No joy with that one either, I've just read the error again and it is saying; Unbound Local Error: Local Variable 'wind_chill_max' referenced before assignment No idea what it means but its trying to tell me somet...
by SurferTim
Mon Feb 26, 2018 12:42 pm
Forum: Beginners
Topic: if x < y then x = y
Replies: 27
Views: 2049

Re: if x < y then x = y

Code: Select all

wind_chill = 0
wind_chill_max = 1

if wind_chill < wind_chill_max: 
	wind_chill_max = wind_chill;
by SurferTim
Mon Feb 26, 2018 12:35 pm
Forum: Beginners
Topic: if x < y then x = y
Replies: 27
Views: 2049

Re: if x < y then x = y

Add this to the top of your code.

Code: Select all

wind_chill_max = 0
Edit: ...or whatever default value you want that to be.
by SurferTim
Mon Feb 26, 2018 11:54 am
Forum: Troubleshooting
Topic: 90% packet loss over local-link
Replies: 4
Views: 710

Re: 90% packet loss over local-link

I'm trying to connect my raspberry pi3 to my laptop using an ethernet cable. I've got both computers on the same ip subnet (169.254.109.1), but with ping I get an 80-100% packet loss and most of the packet that do return take several hundred milliseconds (a few take less than 2ms). The packet loss ...
by SurferTim
Mon Feb 26, 2018 12:15 am
Forum: Troubleshooting
Topic: Hosting a website - connection times out
Replies: 5
Views: 831

Re: Hosting a website - connection times out

Maybe they don't allow hosting websites on residential connections? I haven't seen anything explicitly stating this. Any ideas? Yes. Check your ISP's terms of service agreement. Normally residential customers are blocked from hosting websites. Your ISP may consider that commercial. You might want t...
by SurferTim
Sat Feb 24, 2018 11:03 pm
Forum: Troubleshooting
Topic: WF Connected No Internet
Replies: 12
Views: 1048

Re: WF Connected No Internet

Open /etc/dhcpcd.conf with a text editor. Look for a section that starts with
interface wlan0
If it is there, post that section here.
by SurferTim
Sat Feb 24, 2018 9:32 pm
Forum: Troubleshooting
Topic: WF Connected No Internet
Replies: 12
Views: 1048

Re: WF Connected No Internet

You have no default gateway. How does your RPi get its network settings?
by SurferTim
Sat Feb 24, 2018 9:07 pm
Forum: Troubleshooting
Topic: WF Connected No Internet
Replies: 12
Views: 1048

Re: WF Connected No Internet

And the output of route is...?
by SurferTim
Sat Feb 24, 2018 8:34 pm
Forum: Troubleshooting
Topic: WF Connected No Internet
Replies: 12
Views: 1048

Re: WF Connected No Internet

You must have a routing problem then. Post the output of these:

Code: Select all

ifconfig
route
by SurferTim
Sat Feb 24, 2018 7:41 pm
Forum: Troubleshooting
Topic: WF Connected No Internet
Replies: 12
Views: 1048

Re: WF Connected No Internet

This should not generate a permission error.

Code: Select all

cat /etc/resolv.conf
by SurferTim
Sat Feb 24, 2018 6:53 pm
Forum: Troubleshooting
Topic: WF Connected No Internet
Replies: 12
Views: 1048

Re: WF Connected No Internet

That is a dns resolution error. Check the /etc/resolv.conf file.
by SurferTim
Sat Feb 24, 2018 6:52 pm
Forum: Troubleshooting
Topic: daemon/service failure how to troubleshoot.
Replies: 6
Views: 3483

Re: daemon/service failure how to troubleshoot.

In addition to DougieLawson's suggestion, run top to see if you have a memory leak.

Code: Select all

top
by SurferTim
Sat Feb 24, 2018 3:53 pm
Forum: Troubleshooting
Topic: Help with complex port forward
Replies: 2
Views: 307

Re: Help with complex port forward

You might try a masquerade on eth0. I don't have your PLC to test with, so I haven't tried this.

Code: Select all

sudo iptables -t nat -A  POSTROUTING -o eth0 -j MASQUERADE
by SurferTim
Wed Feb 21, 2018 2:11 am
Forum: Advanced users
Topic: Wiress Access Point - automatically pick best Wifi Channel
Replies: 2
Views: 4308

Re: Wiress Access Point - automatically pick best Wifi Channel

I'm not using the onboard wifi, but mine seems to work if in /etc/hostapd/hostapd.conf, set

Code: Select all

channel=acs_survey
by SurferTim
Wed Feb 21, 2018 1:55 am
Forum: Troubleshooting
Topic: wifi AP w/ openvpn eth0
Replies: 3
Views: 496

Re: wifi AP w/ openvpn eth0

Check the status of the dnsmasq service.

Code: Select all

sudo service dnsmasq status

If it shows active (running), then it should also show the IP assignments issued.
by SurferTim
Mon Feb 19, 2018 1:59 pm
Forum: Networking and servers
Topic: Raspberry Pi 3 WiFI hotspot?
Replies: 29
Views: 95906

Re: Raspberry Pi 3 WiFI hotspot?

Opening a browser and entering any domain name, for example, wwww.xyzzy.net, should then bring up the web page which the Pi's local web server delivers. If this is the case, your install/setup failed. Edit: ...unless you are using this as a captive localnet (no internet access). I presume this reso...
by SurferTim
Mon Feb 19, 2018 12:37 pm
Forum: Troubleshooting
Topic: Update Python Software?
Replies: 13
Views: 58744

Re: Update Python Software?

For python3, use idle3.

Code: Select all

idle3
by SurferTim
Mon Feb 19, 2018 12:20 pm
Forum: Troubleshooting
Topic: Update Python Software?
Replies: 13
Views: 58744

Re: Update Python Software?

Use python3.

Code: Select all

python3 --version
by SurferTim
Sun Feb 18, 2018 7:36 pm
Forum: Networking and servers
Topic: How to use NTP to sync two pi's clocks (don't care about accuracy)?
Replies: 12
Views: 3331

Re: How to use NTP to sync two pi's clocks (don't care about accuracy)?

Then what is your question? At even 20ms accuracy, you should be able to time 50fps.
by SurferTim
Sun Feb 18, 2018 1:19 pm
Forum: Networking and servers
Topic: GPS module with serial interface to Raspberry Pi with an USB-Serial Port
Replies: 5
Views: 981

Re: Raspberry Pi to a Serial Port

Hi.. I m trying to connect a gps module to raspberry pi 3.. but the gps module has RS232 12V DB9 port and I have a USB-rs232 adapter. So I have a doubt if I can connect the module directly to pi's USB port using the adapter. Or do I require a voltage level shifter or something because the power sup...

Go to advanced search