Go to advanced search

by R-A
Tue Nov 13, 2018 2:46 pm
Forum: Troubleshooting
Topic: Cannot connect to OpenVPN server
Replies: 2
Views: 672

Re: Cannot connect to OpenVPN server

epoch1970 wrote:
Tue Nov 13, 2018 2:17 pm
Fatal TLS error says the server.
Do you have a client side key/cert pair? Correct format and all that?
Yes, well, at least it should be. It works fine on Windows 10. I used the following script to generate everything: https://github.com/Nyr/openvpn-install/ ... install.sh
by R-A
Tue Nov 13, 2018 11:50 am
Forum: Troubleshooting
Topic: Cannot connect to OpenVPN server
Replies: 2
Views: 672

Cannot connect to OpenVPN server

Hi, I am trying to connect a Raspberry Pi 3 to an OpenVPN server but it keeps failing. A Windows machine with a similar config (just changed the name of the config) connects fine. I can telnet to port 1194 from the Raspberry Pi, so it's not a routing or firewall issue. Both server and client runs op...
by R-A
Sun Oct 14, 2018 5:02 pm
Forum: Python
Topic: "Error decoding JSON string (invalid or too deeply nested)
Replies: 7
Views: 488

Re: "Error decoding JSON string (invalid or too deeply nested)

When POST'ing data in the URL, the variables behind the '&' can be posted in any sequence, as long as it's in-tact. i.e. &fulljson={"power1":100,"power2":200,"power3":300}&apikey=xxxxxxxxxxxxxxxxxx But note the & are all outside the JSON {....} not within it. '{"field1":%s & "field2":%s}' % (temp, ...
by R-A
Sun Oct 14, 2018 3:39 pm
Forum: Python
Topic: "Error decoding JSON string (invalid or too deeply nested)
Replies: 7
Views: 488

Re: "Error decoding JSON string (invalid or too deeply nested)

This is the format to post the data: https://xxxxxxxxxxxxxxxxxx/emoncms2/input/post?node=emontx&fulljson={"power1":100,"power2":200,"power3":300}&apikey=xxxxxxxxxxxxxxxxxx When POST'ing data in the URL, the variables behind the '&' can be posted in any sequence, as long as it's in-tact. i.e. &fulljs...
by R-A
Sun Oct 14, 2018 3:33 pm
Forum: Python
Topic: "Error decoding JSON string (invalid or too deeply nested)
Replies: 7
Views: 488

Re: "Error decoding JSON string (invalid or too deeply nested)

Thanx, I made the changes as follows, if isinstance(humi, float) and isinstance(temp, float): # Formatting to two decimal places humi = '%.2f' % humi temp = '%.2f' % temp # Sending the data to thingspeak # conn = urllib2.urlopen(baseURL + '&fulljson={"field1":%s&"field2":%s}' % (temp, humi)) data = ...
by R-A
Sun Oct 14, 2018 3:13 pm
Forum: Python
Topic: "Error decoding JSON string (invalid or too deeply nested)
Replies: 7
Views: 488

"Error decoding JSON string (invalid or too deeply nested)

Hi, I am trying to post DHT22 humidity data to emoncms but keep getting the following error: {"success": false, "message": "Error decoding JSON string (invalid or too deeply nested)"} Here's the code. I have modified sample code which posts humidity data to thingspeak. But since I already use emoncm...
by R-A
Tue Oct 09, 2018 1:03 pm
Forum: Networking and servers
Topic: cannot initiate VPN from cron
Replies: 0
Views: 221

cannot initiate VPN from cron

Hi, I am trying to initiate a VPN connection from cron, whenever it fails, but the script simply doesn't want to run. I have the following script: [email protected]:~# more /root/vpn-check.sh ping -c3 192.168.3.1 > pingreport result=`grep "0 received" pingreport` truncresult="`echo "$result" | sed 's/^...
by R-A
Sun Sep 30, 2018 2:30 pm
Forum: General discussion
Topic: RPI 3 B+ No wireless interfaces found
Replies: 21
Views: 38501

Re: RPI 3 B+ No wireless interfaces found

What OS? If it's Raspbian Jessie you should start over with the latest version of Raspbian Stretch 2018-04-18 or newer. Jessie predates the 3B+ and is not compatible (loading the possibly unstable testing firmware with rpi-update will get Jessie booting, but won't fix other problems). Is there any ...
by R-A
Fri Sep 28, 2018 9:06 am
Forum: Advanced users
Topic: batterry powered Pi in hot areas
Replies: 6
Views: 1025

Re: batterry powered Pi in hot areas

Do you get small enough SLA batteries for a Raspberry Pi? I don't need 12V/7A capacity, as this is the smallest I can see. Spill-proof Absorbed Glass Mat (AGM) type of SLA/VRLA 12v batteries come in every capacity, but minimally a 2.3 Ah or larger battery should be used. The shipping cost is usuall...
by R-A
Fri Sep 28, 2018 7:20 am
Forum: Advanced users
Topic: batterry powered Pi in hot areas
Replies: 6
Views: 1025

Re: batterry powered Pi in hot areas

The safe operating range for the different LiIon/LiPol cells is usually 4'C to 52'C. Using or changing outside this zone is extremely unwise, as lipol are also exothermic during discharge. Some sites regurgitate manufacturer specified limits as the range limits, but decent charge managers will faul...
by R-A
Thu Sep 20, 2018 10:32 am
Forum: Advanced users
Topic: batterry powered Pi in hot areas
Replies: 6
Views: 1025

batterry powered Pi in hot areas

Hi,

I want to install a Raspberry Pi in a hot location (ambient temperature can reach 50-55 degrees celsius) and have a form of backup, for at least 3 hours. Lithium would be the way to go, but I don't trust them in the heat.

Any other suggestions?
by R-A
Sun Sep 16, 2018 5:39 pm
Forum: Troubleshooting
Topic: unstable power with Meanwell DINrail power supply
Replies: 7
Views: 539

Re: unstable power with Meanwell DINrail power supply

Maybe you problem is in you cable. When I use a calculation tool for the voltage drop, you will lose around 412mV. If your total wire is 0.5m at 5V and 3A. edit I think this is also confirms by the offical power supply for the Rpi. It used a 18AWG cable, and yours is 26AWG (what is smaller). If wha...
by R-A
Sun Sep 16, 2018 3:51 pm
Forum: Troubleshooting
Topic: unstable power with Meanwell DINrail power supply
Replies: 7
Views: 539

Re: unstable power with Meanwell DINrail power supply

And are your sure that your total load is less than the maximal current that the power supply can deliver. Because, when the power supply has a over current. It will limit the current and will cause the voltage to drop. I only have the Raspberry Pi 3+ Model B connected, which then connects to an HD...
by R-A
Sun Sep 16, 2018 3:47 pm
Forum: Troubleshooting
Topic: unstable power with Meanwell DINrail power supply
Replies: 7
Views: 539

Re: unstable power with Meanwell DINrail power supply

What's the no-load output of the 5 V line? Looks like you can adjust it, and ISTR the Adafruit and official PSUs put out 5¼ V. How long/thick is the power cable to your Raspberry Pi from the PSU? That might be causing your voltage drop. I have tried various values. Right now it's resting at 5.78V, ...
by R-A
Sun Sep 16, 2018 1:37 pm
Forum: Beginners
Topic: Power for multiple PI's
Replies: 9
Views: 1216

Re: Power for multiple PI's

I use an Anker 6 port 60w USB charger. Typically three or four pis running off it, with assorted HATS or doohickeys on a breadboard sucking power as well. Which Pi's do you run off this? Will it work fine with the Raspbery Pi 3+ Model B? Seeing as you are replying to a post that was made about two ...
by R-A
Sun Sep 16, 2018 1:16 pm
Forum: Troubleshooting
Topic: unstable power with Meanwell DINrail power supply
Replies: 7
Views: 539

unstable power with Meanwell DINrail power supply

I have a Meanwel HDR-30-5 DIN Rail power supply for my Raspberry Pi 3+ Model B, but the power seems to be a bit unstable. According to the [ur=http://www.mantech.co.za/datasheets/products/HDR-30-SPEC.pdfl]datasheet,[/url] it can deliver 5.5V @ 3A, yet I'm seeing volt drops, down to about 4.7V. I hav...
by R-A
Sun Sep 16, 2018 1:16 pm
Forum: Beginners
Topic: Power for multiple PI's
Replies: 9
Views: 1216

Re: Power for multiple PI's

timrowledge wrote:
Sun Mar 20, 2016 7:26 pm
I use an Anker 6 port 60w USB charger. Typically three or four pis running off it, with assorted HATS or doohickeys on a breadboard sucking power as well.
Which Pi's do you run off this? Will it work fine with the Raspbery Pi 3+ Model B?
by R-A
Wed Jul 11, 2018 2:00 pm
Forum: Raspbian
Topic: pause between cron.daily jobs?
Replies: 1
Views: 268

pause between cron.daily jobs?

Hi, Is it possible to put a pause between the daily cron jobs, which run at 6:25am? i.e. 25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) [email protected] ~ $ ll /etc/cron.daily/ total 80K drwxr-xr-x 2 root root 4.0K May 13 21:59 . drwxr-xr-x 126 root root 12K Jul...
by R-A
Tue Jun 26, 2018 6:20 pm
Forum: Networking and servers
Topic: Connect more than eight USB drives?
Replies: 7
Views: 895

Re: Connect more than eight USB drives?

There seems to be an inherent limitation as to how many USB drives one can connect to a Raspberry Pi. Yes, there is. If I connect more than eight drives the Raspi will drop more or less randomly one drive at bootup. Regardless of what kinds of hubs I connect whether one or two or more, regardless t...
by R-A
Tue Jun 26, 2018 6:17 pm
Forum: Troubleshooting
Topic: Why Raspberry Pi is affected by USB KIller?
Replies: 26
Views: 1636

Re: Why Raspberry Pi is affected by USB KIller?

Under what circumstances would any USB connected device ever be exposed to 200V? Or even more than 5V for that matter?
by R-A
Mon Jun 25, 2018 8:24 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Raspberry Pi communicating with ARPI600
Replies: 6
Views: 733

Re: Raspberry Pi communicating with ARPI600

DougieLawson wrote:
Mon Jun 25, 2018 5:22 pm
Add this

Code: Select all

dtoverlay=i2c-rtc,pcf8563
enable_uart=1
to /boot/config.txt and reboot to get your RTC working and enable the serial.
Thanx,
Do you know how to get some analogue values from the ADC? Preferably in Python
by R-A
Mon Jun 25, 2018 4:42 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Raspberry Pi communicating with ARPI600
Replies: 6
Views: 733

Re: Raspberry Pi communicating with ARPI600

You should use sudo raspi-config to disable the serial console. It edits all the stuff for you. Ok, so I disabled the serial console this way, but that only allowed me to communicate with the Raspberry Pi using a Serial console from my PC, instead of using Putty. But I am simply not getting any inf...
by R-A
Mon Jun 25, 2018 2:04 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Raspberry Pi communicating with ARPI600
Replies: 6
Views: 733

Re: Raspberry Pi communicating with ARPI600

Can anyone help with this, please? Part of the problem, I guess, is that the instructions on the website are outdated (and I'm not getting any support from Waveshare). In the first section they say I need to disable the serial port from /etc/inittab - which doesn't exist anymore on Debian Jessie or ...
by R-A
Mon Jun 25, 2018 12:15 pm
Forum: Beginners
Topic: ADC with TLC1543: Raspberry Pi B+ to Arduino Adapter HAT for
Replies: 2
Views: 1024

Re: ADC with TLC1543: Raspberry Pi B+ to Arduino Adapter HAT for

I am struggling with this adapter as well, using a Raspberry Pi 3+
Can you please supply the correct libraries to use?
by R-A
Mon Jun 25, 2018 12:11 pm
Forum: Advanced users
Topic: Headless system - Post install script
Replies: 21
Views: 5125

Re: Headless system - Post install script

Just to add my vote quickly. I just setup a Raspberry Pi using the 2018-04-28-Stretch image. Generally I add the sssh and wpa_supplicant files, but in this case there is no DHCP running, and I had no spare HDMI monitor (only have my laptop with me). So it would be very helpful if there is such a pos...

Go to advanced search