summaryrefslogtreecommitdiffstats
path: root/ship
diff options
context:
space:
mode:
authorroot <root@ka-ata-killa.ourano.james.local>2021-03-21 11:49:11 +0000
committerroot <root@ka-ata-killa.ourano.james.local>2021-03-21 11:49:11 +0000
commit101b4fbc19a6813ee212afdafc46b652b430c2ba (patch)
tree7af69d8c3a4bb5f3b14f38fff4efba08d1152f25 /ship
parentac7e8b2318a0e118d4cb7ced49d109c40908cb85 (diff)
downloadclock-101b4fbc19a6813ee212afdafc46b652b430c2ba.tar.gz
clock-101b4fbc19a6813ee212afdafc46b652b430c2ba.tar.bz2
clock-101b4fbc19a6813ee212afdafc46b652b430c2ba.zip
add code for fetching and decrypting the the DCF77 weather data, and the ship script
Diffstat (limited to 'ship')
-rwxr-xr-xship11
1 files changed, 11 insertions, 0 deletions
diff --git a/ship b/ship
new file mode 100755
index 0000000..9f79674
--- /dev/null
+++ b/ship
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+D=$(date +%Y-%m-%d)
+
+
+make -C boot bootloader.bin bootloader.hex bootloader.elf
+make -C app clockv2.bin clockv2.elf clockv2.dfu clockv2.hex
+
+ssh global mkdir -p /var/www/clockv2/${D}/
+
+scp boot/bootloader.bin boot/bootloader.hex boot/bootloader.elf app/clockv2.bin app/clockv2.elf app/clockv2.dfu app/clockv2.hex global:/var/www/clockv2/${D}/