Automation of bGeigie imports from MacOSX platform
With safecast_upload configured on your Mac, you need only to mount your bGeigie SD card, wait a moment for it to signal that it is done processing, and remove your SD card. The program will then open api.safecast.org in your default browser in order for you to review your uploads for submission. This is not a earth shattering tool, but it does automate the data import workflow enough that it is practically plug-n-play.
- Mount your bGeigie SD card and move all processed logs to ARCHIVE. Unmount the card when you are finished.
- Run the following from the command-line:
cp org.safecast.upload_safecast.plist ~/Library/LaunchAgentsmkdir -p ~/Safecast/binmkdir -p ~/Safecast/configcp upload_safecast ~/Safecast/bincp upload_safecast.ini ~/Safecast/config
- Edit
~/Safecast/config/upload_safecast.iniwith your custom settings. - Clone the Databot repo and copy export_safecast.py from it:
git clone https://github.com/bidouilles/Databotcp Databot/export_safecast.py ~/Safecast/binchmod +x ~/Safecast/bin/export_safecast.py
- Check that you have all the required python modules installed. If not,
fetch them manually or with
pip. - Load the launchd configuration:
launchctl load ~/Library/LaunchAgents/org.safecast.upload_safecast.plist
Enjoy and feel free to leave suggestions. https://github.com/StephenLasseter/safecast_upload