-
• #977
For finding an open ssh port on your network
for i in {1,10,20,30,40}; do sudo nmap 192.168.$i.* -p 22 --open; done
(Change the 1, 10 etc... to reflect what subnets you have)
For ports in use on localhost:
lsof -Pn +M -i4
also this, which I use to track down ports that are open & blocking something else :
netstat -anlp | grep -w "Proto\|LISTEN"
-
• #978
Cheers, that will definitely come in useful.
-
• #979
I downloaded your file and uploaded it fine with twython, so it's pointing towards a connection issue, but I would expect to see different error messages if your connection was dropping out. So it's a bit confusing.
-
• #980
So it's a bit confusing.
Definitely!
I've got one in progress now. The last couple worked fine when I kept phone (connection) close to the camera all the way through. It's been upto 10ft away on this one so might fail. If it does it's definitely maybe something to do with the connection.
-
• #981
How is the pi connecting to the phone?
-
• #982
WiFi hotspot using my mobile data when out n about.
This one worked OK, albeit too straight at the sun so no cloud drifting which is what I wanted. Will do another on way home.
-
• #983
Gah. It should have been a nice video too.
Different error message. Json.decoder error. Ironically I was messaging my buddy Jason during the photo taking part of this one. #allhisfault
3 Attachments
-
• #984
Assuming it's an intermittent connection issue, I'd probably build some automatic retry around the steps that involve external connections, with plenty of logging
-
• #985
I was thinking similar - both on the Pi (I think dmesg might show wifi connections going uo and down, and wpa_supplicant has logging) and the phone (more difficult - you may need to root it and use something like acatlog).
I've always found hotspot tethering to be pretty nonpersistent - there may be a develooer mode setting that helps.
Didn't rhb mention juicessh? I'm guessing there's a keepalive config settling somewhere for that too.
It might even be an idea to jsut have a wrapper script that opens a connection before of the real work starts.
-
• #986
Thanks both. Sounds like a huge Rabbit warren of learning for me to climb into, will get googling!
-
• #987
Not pi related but thought quite a few people here solder and play with circit boards so might be able to help with my AQA here:https://www.lfgss.com/comments/15951751/
Basically what are my odds of fixing a broken off micro USB A port? Happy for it to also live outside.
Cheers and sorry for the derail.
1 Attachment
-
• #989
Doable, but fiddly as anything. Is it surface or through mounted?
-
• #990
So much quicker!
The 3B+ gets much warmer, so I added a cpu temp report, it goes up 5deg when working.
1 Attachment
-
• #991
^p.s. does anyone here know how i can include # in the printed text without the apostrophe beforehand? Without it the # functions as an ignore character in python.
-
• #992
Total guess but have you tried ##?
-
• #993
A backslash should escape it.
Can you post up your code?
-
• #994
Nice! Thanks for the beer, had the yellow one, it was tasty!
-
• #995
Yep, not solved, ta though.
1 Attachment
-
• #996
Testing this line now, ta. Hoping I understood backslash the correct way...
Edit: no joy...
2 Attachments
-
• #997
Glad you enjoyed, hope you're feeling better now. This really has made a huge difference to getting this towards where I want to be.
-
• #998
Csb: One of the twitter api staff has replied to one of my timelapse tweets asking if I'd written it up anywhere. I didn't dare send them here for my brain shart diary of posts but have said I could write it up properly if it'd be of interest to the wider pi community but that it's all very new to me too. Will see what they say. /csb
-
• #999
I don't think you need to escape the hash at all. It looks like you're using Pico, and Pico's syntax highlighting is a bit wonky. The code is fine but Pico makes it appear like you've commented out half the line.
Open the file in something else like VS Code, VIm or Sublime, and you'll see it's ok.
-
• #1000
Using nano in the screenshot, I had set it to appear green matrixy in juicessh.
Opened it in Thonny on desktop and you're right it doesn't change to appear commented out. I'll do a test later. Thanks!
Connected it to a different SSID and now can see it fine (even from machines on other SSIDs and everything should be visible over all SSIDs). Basically, God knows what was going on.