Raspberry π

Posted on
Page
of 53
  • 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.

  • 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"
    
  • Cheers, that will definitely come in useful.

  • 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.

  • 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.

  • How is the pi connecting to the phone?

  • 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.

  • 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

    • 20210417_195115.jpg
    • 20210417_195128.jpg
    • Screenshot_20210417-203115_JuiceSSH.jpg
  • 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

  • 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.

  • Thanks both. Sounds like a huge Rabbit warren of learning for me to climb into, will get googling!

  • 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

    • IMG_20210422_194014359.jpg
  • ^ not a clue sorry.

    Massive #rep to @atk for giving my 5into15 project the 3b+ grunt it needs. Testing out later.


    1 Attachment

    • 20210424_141449.jpg
  • Doable, but fiddly as anything. Is it surface or through mounted?

  • So much quicker!

    The 3B+ gets much warmer, so I added a cpu temp report, it goes up 5deg when working.


    1 Attachment

    • Screenshot_20210425-125551_JuiceSSH.jpg
  • ^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.

  • Total guess but have you tried ##?

  • A backslash should escape it.

    Can you post up your code?

  • Nice! Thanks for the beer, had the yellow one, it was tasty!

  • Yep, not solved, ta though.


    1 Attachment

    • Screenshot_20210425-231410_JuiceSSH.jpg
  • Testing this line now, ta. Hoping I understood backslash the correct way...

    Edit: no joy...


    2 Attachments

    • Screenshot_20210425-231542_JuiceSSH.jpg
    • Screenshot_20210425-232925_Twitter.jpg
  • 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.

  • 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

  • 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.

  • 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!

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Raspberry π

Posted by Avatar for photoben @photoben

Actions