Go to advanced search

by bertlea
Thu Jul 18, 2019 7:50 am
Forum: Beginners
Topic: web server on raspberry pi
Replies: 2
Views: 100

Re: web server on raspberry pi

I am running a web server which got some http/https services and also got some customized services I wrote myself. I am not using any specific platform such as tomcat, ngix, etc. I use only the node.js running in REPL mode on tmux session. This gives me the most flexibility I want. I guess I have th...
by bertlea
Wed Jul 17, 2019 8:10 am
Forum: General discussion
Topic: Raspberry PI Web Server
Replies: 19
Views: 750

Re: Raspberry PI Web Server

If you only expose the web services (e.g. http, https), just Keep your OS up-to-date, especially when there is an security alert issued then it is pretty safe. But if you also expose ssh, then you better take more measures to protect from attackers. use a long and secure password don't use default p...
by bertlea
Tue Jul 16, 2019 7:26 am
Forum: Beginners
Topic: IP connection by key
Replies: 3
Views: 80

Re: IP connection by key

How far is your mailbox from your home? If it can still access you home wifi, then you don’t need “public service” with fixed IP. You just assign a fixed “internal” IP address to your RPi and all communication can be done using that fixed IP.
by bertlea
Tue Jul 16, 2019 6:53 am
Forum: Beginners
Topic: [SOLVED] Asynchronously send email in python?
Replies: 8
Views: 211

Re: Asynchronously send email in python?

Is there a better way to watch a variable for changes? You can try adding a "sleep" function call inside your while loop. You need to import time for that. You can adjust the sleep time (such as 0.5) to suit your need, the number is in seconds. Example: import time def sendQueue(): #left always run...
by bertlea
Fri Jul 12, 2019 3:59 am
Forum: Beginners
Topic: Using pi to show images on connected HDMI
Replies: 6
Views: 209

Re: Using pi to show images on connected HDMI

I believe that there is at least one video player program that doesn't require X, but since I've never needed to do that, I don't know what it is.
omxplayer?
by bertlea
Fri Jul 05, 2019 4:26 am
Forum: Troubleshooting
Topic: Help with log files and seeing what is/was going on.
Replies: 10
Views: 202

Re: Help with log files and seeing what is/was going on.

You can try journalctl -n 1000 This will give you the last 1,000 log entries. You can change the number after "-n" to suit your needs. If you have some keywords you can filter to log such as "carrier", you can pipe the output and use grep to filter it. I used that method to trouble shoot my pi's wif...
by bertlea
Fri Jul 05, 2019 3:50 am
Forum: Beginners
Topic: Something I want to try
Replies: 2
Views: 152

Re: Something I want to try

I guess it is feasible. I think what you described is making the Pi as an wifi access point that allows your tablet to access it and then you run Kodi on that Pi to allow your tablet to watch files the media from it. For access point, I think that is the tutorial you can try: https://www.raspberrypi...
by bertlea
Thu Jul 04, 2019 8:34 am
Forum: General discussion
Topic: Can I use Pi4's dual HDMI capability on Raspbian Lite?
Replies: 0
Views: 62

Can I use Pi4's dual HDMI capability on Raspbian Lite?

Is it feasible to use the dual monitor capability of Pi4 in terminal only mode? i.e. I would like to install the Raspbian Lite and have 2 monitor connected to the Pi4 using the two micro-HDMI port. If that is possible, how can I switch the control (keyboard/mouse) between the 2 terminal on different...
by bertlea
Wed Jun 26, 2019 3:57 am
Forum: Troubleshooting
Topic: Noobs and Resbian saying low power but power supply is fine
Replies: 13
Views: 408

Re: Noobs and Resbian saying low power but power supply is fine

I had some "low voltage" issues before, but later found out it was not caused by the charger, but the USB cable in between. After I changed to a cable advertised as 20AWG, the issue is gone.
by bertlea
Mon Jun 24, 2019 8:20 am
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 753
Views: 65030

Re: Raspberry Pi 4 Thread - general discussion

Thank you @jdb! I just found out the process is based on 28nm process too from the web. Nice to know it is not having soft-throttle as the P3B+.
by bertlea
Mon Jun 24, 2019 7:56 am
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 753
Views: 65030

Re: Raspberry Pi 4 Thread - general discussion

Before the complaints come in, that's a preliminary datasheet, a much more detailed ones is on its way. Yes, It will be nice to know more about the CPU, I cannot find the CPU model number. The document says the system will prevent SOC's temperature go above 85C degree, but when will it start thrott...
by bertlea
Mon Jun 24, 2019 6:53 am
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 753
Views: 65030

Re: Raspberry Pi 4 Thread - general discussion

@jamesh Thanks for your confirmation on Raspbian Buster is needed for Pi4. I just ordered one wth 4G RAM :D I hope by the time it arrives, I can see the Raspbian Buster link ready for me to download.
by bertlea
Mon Jun 24, 2019 6:16 am
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 753
Views: 65030

Re: Pi4 Thread - general discussion

Do the Pi4 need to run Raspbian Buster? I do not see the Raspbian Buster in Raspbian download page yet. The blog got a download link, but that just pointing to the existing Raspbian Stretch download page.
by bertlea
Mon Jun 24, 2019 3:37 am
Forum: Python
Topic: Sense Hat: using joy stick to call script?
Replies: 3
Views: 265

Re: Sense Hat: using joy stick to call script?

I tried to understand the logic of the code, but not successful as I don't have any experience of SenseHat. However, there is one thing I have some doubt if that is correct: Your array variable: "timer". Your code seems keep append "color codes" to this array in the function: time(), but it never be...
by bertlea
Mon Jun 24, 2019 1:40 am
Forum: Python
Topic: Pythonanywhere
Replies: 4
Views: 823

Re: Pythonanywhere

@Jadro, https://repl.it should allow you to run some kind of HTTP server code there and it exposes that to the public Internet. I have not tried Python with Flask, but I tried using Node.js in this way and it works. But your code should be visible to the public as well (using free account). I also f...
by bertlea
Tue Jun 04, 2019 5:03 am
Forum: General discussion
Topic: Good News for the Raspberry Pi!
Replies: 32
Views: 1875

Re: Good News for the Raspberry Pi!

Not sure if the foundation willing to let the future of Pi depends on gLinux instead of Raspbian. I guess it is not hard to think about what Android meant to Huawei.
by bertlea
Thu May 30, 2019 1:34 am
Forum: General discussion
Topic: FTDI USB Serial Device converter disconnects
Replies: 4
Views: 633

Re: FTDI USB Serial Device converter disconnects

Hi, I remember there were posts saying the default kernel (Raspbian?) only can take care 6 active USB devices at the same time. How many USB devices your system is connected and try to be active at the same time? Someone seems to able to build a customised kernel to resolve the problem. Not sure if ...
by bertlea
Wed May 29, 2019 7:40 am
Forum: Off topic discussion
Topic: Idea purposal for a safer ssh
Replies: 6
Views: 887

Re: Idea purposal for a safer ssh

I think that is a workable solution if you want to reduce the “brute force” login attempts. But the downside of this approach is you added an extra dependency of your ability to access your system remotely when you really needed. This is an “external dependency” that has more factors (more likely) t...
by bertlea
Thu May 23, 2019 3:06 am
Forum: Camera board
Topic: help with Picamera Module
Replies: 1
Views: 231

Re: help with Picamera Module

Code: Select all

import picamera
camera = picamera.PiCamera()
camera.capture('imageCaptured.jpg')
by bertlea
Tue May 21, 2019 8:25 am
Forum: Beginners
Topic: trying to build a raspberry pi 3b web server with nginx on Raspbian Stretch Lite
Replies: 1
Views: 90

Re: trying to build a raspberry pi 3b web server with nginx on Raspbian Stretch Lite

Lightweight is good, but Pi Pi3B is pretty powerful already for a web server, so you don’t need to worry too much on that at this stage. If you prefer Python as your programming language, try Flask, which is much lightweight than Django. If you want to use only one language, then consider Node.js as...
by bertlea
Tue May 21, 2019 1:42 am
Forum: General discussion
Topic: Combine Rpi with other low cost device for massive computing power
Replies: 5
Views: 434

Re: Combine Rpi with other low cost device for massive computing power

Current Raspberry Pi models only have USB2 and the article in your link mentioned why Pi didn’t work well with Coral Edge USB as the performance bottleneck is more about data rate. If you want to have many low-cost devices that can effectively use Coral Edge USB, then you should consider SBCs with U...
by bertlea
Tue May 14, 2019 6:29 am
Forum: General discussion
Topic: cool-retro-term issues
Replies: 1
Views: 119

Re: cool-retro-term issues

If you are trying to do it on Raspbian Stretch, then the PDF in the below link should work (at least on Pi-3B or 3B+).

https://github.com/rricharz/pidp11-2.11 ... r/Cool.pdf
by bertlea
Tue May 07, 2019 5:33 am
Forum: Beginners
Topic: will this adapter work
Replies: 8
Views: 362

Re: will this adapter work

If you want to have something proved to be working, then I suggest you consider the one below. It is already in micro-USB (so no extra converter needed) and it also got extra USB ports that I found useful for Pi-Zero/W. https://shop.pimoroni.com/products/three-port-usb-hub-with-ethernet-and-microb-c...
by bertlea
Thu May 02, 2019 8:51 am
Forum: Python
Topic: How to play audio file (Mp3) after start up using python script
Replies: 4
Views: 1115

Re: How to play audio file (Mp3) after start up using python script

...no display, keyboards attached
So what is your audio device? headphone connected to audio jack or a blue-tooth speaker?
by bertlea
Thu May 02, 2019 8:26 am
Forum: General discussion
Topic: Raspberry Pi 0 W and armv6
Replies: 33
Views: 5810

Re: Raspberry Pi 0 W and armv6

Hum.... node.js seems to have the same fate as Java now... Hope Python have better luck. For developing software that can last decades, we shall go back to use trusted C I guess.

Go to advanced search