My system did it’s automatic update a couple of days ago and I just checked a coupe of things that indicate that it did not go smoothly. The system is running V0.18 ok but other things don’t look right.
When I try to download the updated copy of SWARM I get a 404 error (page not found). The URL is: http://rs.local/download/SWARM.zip. I assume the old copy, which was there before, was deleted and the new version never made it. The update log indicates that a download of SWARM 3.0.1 was started but the message (below) says that something went wrong:
" End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive."
sorry for the troubles. turns out that the USGS updated the lastest version of SWARM for download from 3.0.1 to 3.1.0 and removed the previous version, so the updater finds nothing to download and fails the rest of the process.
please find attached a helper program which will download the latest version for you. copy this to the /tmp directory on your shake and execute the following sequence of commands:
Hello, I just received and got my unit online today. I need to use this solution so that I may download swarm but I don’t know how to access and copy files onto the Shake from my mac either using Chrome or terminal (I’m terminal/bash illiterate, sorry). Is there another way I can download swarm so that it is pre-configured to my unit? Or is there a list of instructions to help me copy the appropriate files onto the Shake?
You can use FTP. I use FTP to archive my files each day as the SD card has a limited capacity. There is a Filezilla client for Mac’s (https://filezilla-project.org/download.php?platform=osx). To enable FTP on your Pi you will need to install an FTP server. I cannot remember if the standard image already has one installed so check first. (run “apt list --installed” from a terminal to check). I use vsftpd which is fairly easy to set-up. The popular alternative is “proftpd” - https://howtoraspberrypi.com/setup-ftp-server-raspberry-pi/
Thanks. I still haven’t quite figured out how to get the script onto the Shake without physically pulling the card out, which I don’t really want to do. Connecting with filezilla, even with ssh protocol isn’t working for me, and putting an ftp server onto it is more than I need at the moment. I’ve downloaded the new SWARM from the USGS website and the newest javasdk, but running either it isn’t working - no surprise, as I’m sure there is a set-up factor I’m missing. If filezilla will work - in manual mode to upload the swarm-fetch script - I could sure use exact instructions to get it to work.
Let’s start here, because running Swarm should “just work”. On your Mac, open up a Terminal window. If you unzipped Swarm to your Downloads folder, type this:
It opened Swarm! Yay! (It was in my Applications folder, but the "cd ~/Applications/swarm* didn’t get me there. For some reason I had to take out the tilda.
Ok, I see where I need to add the new data source (red star) and now I just need the information, I think.