Permalink
Browse files

adding poorly-named test files for a different weather console

  • Loading branch information...
mhenstell committed Oct 6, 2012
1 parent bf16479 commit 8c93b78b56742c76dff057eca32644689c180a3a
Showing with 25 additions and 0 deletions.
  1. +9 −0 server/test.py
  2. +8 −0 server/test.sh
  3. +8 −0 server/test.svg
View
@@ -0,0 +1,9 @@
+import codecs
+import random
+import math
+
+output = codecs.open('test.svg', 'r', encoding='utf-8').read()
+
+output = output.replace("WIND_DEGREES", str(random.randrange(0, 360)))
+
+codecs.open('test-output.svg', 'w', encoding='utf-8').write(output)
View
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+cd "$(dirname "$0")"
+
+python2 test.py
+rsvg-convert --background-color=white -o test-output.png test-output.svg
+pngcrush -c 0 -ow test-output.png
+cp -f test-output.png /Users/max/Sites/test-output.png
View
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 14.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 43363) -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+ x="0px" y="0px" width="600px" height="800px" viewBox="0 0 600 800" xml:space="preserve">
+<circle fill="#FFFFFF" stroke="#000000" stroke-width="3" cx="133.887" cy="163.27" r="68.539"/>
+
+<line fill="none" stroke="#000000" stroke-width="3" x1="133.96" y1="95" x2="133.96" y2="166.005" transform="rotate(WIND_DEGREES 133.96 164.005)"/>
+</svg>

0 comments on commit 8c93b78

Please sign in to comment.